
Primitives
Simple Media Access Controller (SMAC) for the HCS08 Reference Manual, Rev. 2.0
3-12
Freescale Semiconductor
{
gClko16MHz_c,
gClko8MHz_c,
gClko4MHz_c,
gClko2MHz_c,
gClko1MHz_c,
gClko62p5kHz_c,
gClko32p786kHz_c,
gClko16p393kHz_c,
gClkoOutOfRange_c
} clkoFrequency_t
3.1.15
MLMESetTmrPrescale
The transceiver on all three families has a dedicated timer block. This function changes the input clock rate
to the timer counter and determines the base clock rate for all the timer comparators.
Prototype
smacErrors_t MLMESetTmrPrescale(timerTimeBase_t );
Arguments
timerTimeBase_t
Enumeration value that represents that represents timer prescale or timebase.
Returns
gErrorNoError_c
If the action is performed
gErrorOutOfRange_c If TimeBase exceeds the maximum valid value
Usage
Call MLMESetTmrPrescale ([
gTimeBase2MHz_c - gTimeBase16p625kHz_c
]).
NOTE
Valid values for this primitive depend on the platform been used. There are
two sets of primitives:
•
One set for the MC13202 and MC1321x families
•
Alternate set for the MC1323x family
MC13202 and MC1321x primitives:
#if gTargetXcvr_c == gXcvrMc1321x_c || gTargetXcvr_c == gXcvrMc1320x_c || gTargetXcvr_c ==
gXcvrMc1319x_c
typedef enum timerTimeBase_tag
{
gTimeBase2MHz_c = 0,
gTimeBase1MHz_c,
gTimeBase500kHz_c,
gTimeBase250kHz_c,
gTimeBase125kHz_c,