const an_Byte* an_GetStatePrimaryData(
an_State stateID,
int* count);
Description
Gets the configuration data required to perform a primary configuration. The data begins with the synch byte and ends with the last error byte.
Parameters
nCircuit
The ID generated for the circuit. This will be something like chipName_001_Primary or an_chipName_001_Primary, depending on the name of the chip and the generation options.
pCount
A pointer to a valid integer that will receive the number of bytes in the array returned by the function.
Return Value
A pointer to the configuration data that can be sent to the chip.
Example
/* Get a pointer to the primary configuration data */
int dataSize = 0;
const Byte* pData =
GetStatePrimaryData(chipName_001_Primary, &dataSize);
/* Send the data to the chip*/
. . .