
Primitives
MKW01 Simple Media Access Controller (SMAC) Reference Manual, Rev. 0.0
Freescale Semiconductor
3-27
gErrorNoValidCondition_c
The MKW01 SMAC is not initialized.
Usage
Call the function
MLMESetChannelRequest(newChannel);
NOTE
Be sure to enter a valid channel between 0 and
(gTotalChannels - 1).
3.8
MLMEGetChannelRequest
This function returns the current channel.
Prototype
channels_t MLMEGetChannelRequest(void);
Arguments
None
Returns
channels_t (uint8_t)
The current RF channel.
Usage
Call
MLMEGetChannelRequest();
3.9
MLMEPAOutputAdjust
This function adjusts the output power of the transmitter.
Prototype
smacErrors_t MLMEPAOutputAdjust(uint8_t u8PaValue);
Arguments
uint8_t u8PaValue
8-bit value for the output power desired. Values 1– 31 are required.
Returns
gErrorOutOfRange_c
u8Power exceeds the maximum power value gMaxOutputPower_c
(0x1F).
gErrorBusy_c
The MKW01 SMAC is busy or PHY is busy.
gErrorNoError_c
The action is performed.