
MC1322x SMAC Primitives
MC1322x SMAC Reference Manual, Rev. 1.7
Freescale Semiconductor
3-3
Usage
Call ConfigureBuckRegulator with the required parameters.
NOTE
Do not enable the buck regulator when the operating voltage is lower than
2.5 volts. See the MC1322x Reference Manual for more details.
3.2.2
DRVConfigureRTC
This primitive allows configuring the Real Time Clock (RTC) to call back a function with a rate defined
by the RTC using the indicated reference clock.
Prototype
FuncReturn_t DRVConfigureRTC(crm_rtc_timingReference_t mTimingRef, uint32_t mTimeout,
callback_t pfUserCallbackFn);
Arguments
mTimingRef
This argument indicates to reference clock to be used, it could be:
– gTimerRef_2Khz_c or
– gTimerRef_32Khz_c
mTimeout
Time out referenced to the main clock. The value is on RTC ticks.
pfUserCallbackFn
Is the pointer to the function that must be executed.
Returns
gFailOutOfRange_c
If mTimingRef is not a valid reference or pfUserCallbackFn is equal to
NULL.
gFailNoValidCondition_c
If the hardware does not get configured after some retries.
gSuccess_c
If pfUserCallbackFn was successfully associated with the RTC interrupt.
gFail_c
If it was not possible to associate pfUserCallbackFn with the RTC
interrupt.
Usage
Call DRVConfigureRTC with the required parameters.
3.2.3
MCPSDataRequest
This data primitive is used to send a packet.
Prototype
FuncReturn_t MCPSDataRequest (message_t *msg);