
Primitives
Simple Media Access Controller (SMAC) for the HCS08 Reference Manual, Rev. 2.0
Freescale Semiconductor
3-7
•
Either in the software initialization or via the MLMEFEGainAdjust
function, it is recommended that this parameter be set to 0x9B. See
appropriate family Reference Manual.
•
The offset value must be INCREMENTED to LOWER the reported
value. An increment of 4 to the offset value will affect a -1 dB change,
and vice versa.
Prototype
smacErrors_t MLMEFEGainAdjust(uint8_t);
Arguments
uint8_t
8 bit binary value for the offset adjust.
Returns
gErrorNoError_c
The power compensation value have been set on the radio.
Usage
Use a standard offset value of 0x9B. Use MLMEFEGainAdjust to increase or decrease the offset.
3.1.8
MLMEGetChannelRequest
The IEEE 802.15.4 Standard supports 16 set channels/frequencies. This function returns the current active
channel. If the current frequency setting does not match a standard channel setting, an error is returned as
gChannelOutOfRange_c
Prototype
channels_t MLMEGetChannelRequest(void);
Arguments
None.
Returns
{gChannel11_c to gChannel26_c}The current RF channel..
gChannelOutOfRange_cIf current channel could not be detected.
Usage
Simply call MLMEGetChannelRequest().