void InitializeVortexReconfigData(
Chip chip
);
void InitializeApexReconfigData (
Chip chip
);
Description
Prepares the data buffer that will hold the reconfiguration data for the chip.
Parameters
chip
The ID the C Code generated for the chip. This will be something like chipName or an_chipName, depending on the name of the chip and the generation options.
Return Value
None
Remarks
This function must be called before calling any other reconfiguration functions for the chip. This function allocates memory. To deallocate the memory call ShutdownReconfigData. However, to simply clear the data in the buffer without memory deallocation call ClearReconfigData.
Example
/* Get a pointer to the primary configuration data */
int dataSize = 0;
const Byte* pData = GetPrimaryConfigData(an_chipName, &dataSize);
/* Send the data to the chip*/
. . .
/* Initialize reconfiguration data before using any CAM function */
InitializeReconfigData(an_chipName);
/* Calculate changes to CAM parameters then use CAM C Code */
. . .
/* Get a pointer to the reconfiguration data */
int dataSize = 0;
const Byte* pData = GetReconfigData(an_chipName, &dataSize);
/* Send the data to the chip */
. . .
/* OK. Data sent, now clear the buffer to get ready to call some more CAM functions. */
ClearReconfigData(an_chipName);
/* Calculate new changes to CAM parameters then use CAM C Code */
. . .
/* Get a pointer to the new reconfiguration data */
const Byte* pData = GetReconfigData(an_chipName, &dataSize);
/* Send the data to the chip */
. . .
/* End of program. Clean up reconfiguration data */
ShutdownReconfigData(an_chipName);