
MC1322x SMAC Primitives
MC1322x SMAC Reference Manual, Rev. 1.7
Freescale Semiconductor
3-27
3.5.5
SetPowerLevelLockMode
SetPowerLevelLockMode enables (argument equals TRUE) or disables (argument equals FALSE) the PA
lock mode to be used when using an external PA.
Prototype
uint8_t SetPowerLevelLockMode(bool_t state);
Arguments
state
Enable or disable the PA Lock Mode.
Returns
gSuccess_c
The requested mode was set.
0xff
The requested mode was NOT set, due to an invalid condition.
Usage
Call this function with TRUE or FALSE, depending on the desired mode.
...
SetPowerLevelLockMode(FALSE);
...
NOTE
When setting Lock Mode the following conditions must be true:
•
Current channel different than gChannel26_c
•
Current power level must be one of the available levels (when using
Lock Mode) as shown in
Table 3-1
.
3.5.6
RadioInit
This function initializes the radio and it is called inside of the MLMERadioInit function. It is also used at
the application level in the SMAC Low Power Bell Tx demonstration application as part of the procedure
to set the low power modes.
Prototype
void RadioInit(uint32_t u32ClockFreq, uint8_t u8PN, uint32_t u32LoopDiv);
Arguments
uint32_t u32ClockFreq
This is the platform clock frequency set to 24 MHz.
uint8_t u8PN
Integer value of the reference XTAL| loop divider for synthesizer.
uint32_t u32LoopDiv
Loop divider frequency.