![Texas TMS320C6000 Programmer'S Reference Manual Download Page 83](http://html.mh-extra.com/html/texas/tms320c6000/tms320c6000_programmers-reference-manual_1093844083.webp)
Configuration Manager
4-16
Get Configuration Entry Data
CfgEntryGetData
Syntax
int CfgEntryGetData( HANDLE hCfgEntry, int *pSize, UINT8 *pData );
Parameter(s)
hCfgEntry
Handle to configuration entry
pSize
Pointer to size of data buffer
pData
Pointer to data buffer
Return Value
Returns the number of bytes written, 0 on a “size error” (value at pSize set to
required size), or less than 0 on an operation error. The possible errors are:
CFGERROR_BADHANDLE
Invalid hCfgEntry handle
CFGERROR_BADPARAM
Invalid function parameter
Description
This function is used to get the entry data of the configuration entry specified
by the entry handle in hCfgEntry.
The value pointed to by pSize is set to the size of the supplied buffer, or zero
to get the required size (the pointer pSize must be valid, but the value at the
pointer can be zero). If the value at pSize is zero, or less than the number of
bytes required to hold the entry data, this function returns 0, and the number
of bytes required to hold the data is stored at pSize.
The pData parameter points to the data buffer to receive the configuration
entry data. This pointer can be null if *pSize is zero.
Get Information on a Configuration Entry
CfgEntryInfo
Syntax
int CfgEntryInfo( HANDLE hCfgEntry, int *pSize, UINT8 **ppData );
Parameter(s)
hCfgEntry
Handle to configuration entry
pSize
Location to receive the size of the configuration entry data
buffer
ppData
Location to receive the pointer to the configuration entry data
buffer
Return Value
Returns 0 on success, or less than 0 on an operation error. The possible errors
are:
CFGERROR_BADHANDLE
Invalid hCfgEntry handle
Description
This function is used to get the size and pointer to a configuration entry’s data
buffer.
The entry handle is supplied hCfgEntry. A pointer to receive the size of the
entry’s data buffer is supplied in pSize, and a pointer to receive a pointer to the
entry’s data buffer is supplied in ppData. Either pointer parameter can be left
NULL if the information is not required.