Designing an application using the SimpleMAC Library APIs
assert(ST_RadioInit(ST_RADIO_POWER_MODE_RX_ON)==ST_SUCCESS);
while(1)
{
/* Simple MAC application specific steps */
}
}
5.2
Configuring the radio
5.2.1
Radio sleep and wakeup
Call ST_RadioSleep and ST_RadioWake APIs to turn the radio off and on,
respectively:
/* Turning off the radio */
ST_RadioSleep();
/* Turning on the radio */
ST_RadioWake();
5.2.2
Calibrating the radio
The radio needs to be recalibrated to ensure the same performance as environmental
conditions change (temperature, etc.).
The following pseudocode example illustrates the required calibration steps:
void main(void)
{
/* Initialization steps */
...
...
while(1)
{
/* Periodically check if radio calibration conditions
if (ST_RadioCheckRadio() == TRUE)
{
}
}
}
40/54
occur (due to temperature change)*/
/* Perform necessary recalibration to counteract the
effects of temperature changes since the last
calibration */
ST_RadioCalibrateCurrentChannel();
Doc ID 16995 Rev 10
UM0893
Need help?
Do you have a question about the SimpleMAC STM32W108 Series and is the answer not in the manual?
Questions and answers