
Primitives
Simple Media Access Controller (SMAC) for the HCS08 Reference Manual, Rev. 2.0
Freescale Semiconductor
3-11
Arguments
channels_t
An 8 bit value that represents the requested channels. Values gChannel11_c to gChannel26_c are expected.
Returns
gErrorNoError_c
The channel set has been performed
gErrorBusy_c
When SMAC is busy in other radio activity like transmitting/receiving data or
performing a channel scan, among others.
gErrorOutOfRange_c The requested channel is not valid
Usage
Simply call MLMESetChannelRequest (channel requested).
3.1.14
MLMESetClockRate
For the MC13202 and MC13213 families, the transceiver can provide clock output CLKO that can in turn
be used as the external clock source for the MCU. This function is called to set the desired CLKO output
frequency. The CLKO frequency is divided down from the reference oscillator frequency of 16 MHz.
NOTE
This primitive can be used only on the MC1320x and MC1321x platforms.
For the MC1323x platform it is invalid.
Prototype
smacErrors_t MLMESetClockRate(clkoFrequency_t );
Arguments
clkoFrequency_t
An 8-bit value that sets radio clock out frequency (CLKO).
Returns
gErrorNoError_c
If the action is performed
gErrorOutOfRange_c If frequency exceeds the maximum CLKO frequency value
Usage
Call MLMESetClockRate ([
gClko16MHz_c - gClko16p393kHz_c
]). The CLKO frequency can be set from
16 MHz down to 16.393 kHz. The enumeration
clkoFrequency_t
that is used as an argument for
MLMESetClockRate function is written to the Radio CLKO Control Register (0x0A). See specific device
Reference Manual.
typedef enum clkoFrequency_tag