In order to test ANT RF power with Spectrum, the command : BOOL ANT_InitCWTestMode(void) must be called
before the CW test mode setting message: BOOL ANT_SetCWTMode(UCHAR ucTransmitPower, UCHAR ucRFChannel).
The command should be executed only directly after a Reset or a System Reset command, this is very important sequence;
failure to do so may result in unpredictable results.
//Example Usage:
BOOL ANT_ResetSystem(void);
Timer_DelayTime(50000) // delay for 500ms;
ANT_InitCWTestMode(void)
// Wait for RESPONSE_NO_ERROR
ANT_SetCWTMode(3, 57); // set RF power to 0dBm and CW 2457Mhz.
The RF power has listed in page 79 of “ ANT Message Protocol and Usageâ€; you may need to refer to the document for more detail.