
MC1322x SMAC Reference Manual, Rev. 1.7
Freescale Semiconductor
3-1
Chapter 3
MC1322x SMAC Primitives
The following sections provide a detailed description of MC1322x SMAC primitives and common data
types associated with the three MC1322x SMAC APIs.
3.1
Common Data Types
This section highlights common data types used at MC1322x SMAC code.
3.1.1
callback_t
This is the type defined for general callbacks, that is a function that is that is passed as an argument to other
code. It allows the MC1322x SMAC API to call a subroutine (or function) defined in the application layer.
This type is defined for void functions that do not receive parameters.
typedef void(*callback_t)(void);
This type is used at MLMEHibernateRequest, MLMEDozeRequest, MLMEScanRequest functions and
also at objects of type message among others.
3.1.2
FuncReturn_t
This is the most common return type at the MC1322x SMAC functions. FuncReturn_t is an enumeration
defined as follows:
typedef enum FuncReturn_tag
{
gSuccess_c = 0,
gFailOutOfRange_c,
gFailNoResourcesAvailable_c,
gFailNoValidCondition_c,
gFailBusy_c,
gFailCorrupted_c,
gFailTest_c,
gAuthenticationFailed_c,
gAuthenticationPassed_c,
gFail_c
} FuncReturn_t;