GetStateTransitionData

const an_Byte* an_GetStateTransitionData(

an_State stateID,

int* count);

Description

Gets the configuration data required to transition from one circuit state to another. The data begins with the synch byte and ends with the control byte.

Parameters

stateID

The ID generated for the circuit. This will be something like chipName_001 or an_chipName_001, depending on the name of the chip and the generation options.

count

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* pPrimaryData =

GetStatePrimaryData(chipNameA_001_Primary, &dataSize);

/* Send the data to the chip*/

. . .

/* Get a pointer to reconfiguration to change to another circuit */

const Byte* pTransData =

GetStateTransitionData(chipNameB_001, &dataSize);

/* Send the data to the chip*/

. . .