const Byte* GetVortexSleepData(
Chip chip,
[out] int* pCount,
Bool powerDown
);
const Byte* GetApexSleepData(
Chip chip,
[out] int* pCount,
Bool powerDown
);
Description
Gets the configuration data required to put the chip into sleep mode.
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.
pCount
A pointer to a valid integer that will receive the number of bytes in the array returned by the function.
powerDown
If non-zero, all analogue functions will be turned off except the crystal oscillator.
If zero, all analogue functions will be turned on.
Return Value
A pointer to the configuration data that can be sent to the chip. The data begins with the synch byte and ends with the last error byte.
Example
/* Get a pointer to the sleep data */
int dataSize = 0;
const Byte* pData = GetSleepData(chipName, &dataSize);
/* Send the data to the chip*/
. . .