CAM Functions

Each CAM contains C Code functions that are specific to changing its parameters. The functions that get generated in the C Code are chosen using the CAM C Code Functions Window and Global C Code Functions Window.

See the CAM documentation for more details on the C Code functionality each CAM contains.

Example Usage

This example assumes we selected the setGain function of a GainInv CAM named MyGain.

/* Get a pointer to the primary configuration data */

int dataSize = 0;

const Byte* pData = GetVortexPrimaryConfigData(chipName, &dataSize);

/* Send the data to the chip*/

. . .

/* Get the reconfiguration buffer ready to go */

InitializeVortexReconfigData(chipName);

/* Change the Gain just a bit */

setGain(chipName_MyGain, 6.0);

/* Now get a pointer to the reconfiguration data */

int dataSize = 0;

const Byte* pData = GetVortexReconfigData(chipName, &dataSize);

/* Send the data to the chip */

. . .

/* OK. Data sent, now clear the buffer to get ready to call some more CAM functions. */

ClearVortexReconfigData(chipName);

/* Do some more changing of the gain */

. . .

/* We are all done doing C Code stuff. Destroy the reconfiguration buffer. */

ShutdownVortexReconfigData(chipName);