
MC1322x SMAC Primitives
MC1322x SMAC Reference Manual, Rev. 1.7
Freescale Semiconductor
3-17
•
SMAC_TEST_MODE_CONTINUOUS_TX_NOMOD: Sets the radio into continuous
unmodulated TX.
•
SMAC_TEST_MODE_CONTINUOUS_TX_MOD: Sets the device to continuous modulated TX.
To stop continuous transmission simply call
MLMETestMode(SMAC_TEST_MODE_IDLE)
.This action will set the
transceiver to idle state.
If this function is called in the middle of a TX or RX operation the corresponding message will be aborted.
3.3
Security - Module API
This section describes the functions available for the application from the security module. The ciphering
process is base on AES-128 and supporting three operation modes:
•
CTR
•
CBC
•
CCM
For further details about MC1322x Advanced Security Module, refer to the MC1322x Reference Manual.
3.3.1
CipherConfigure
The CipherConfigure function sets the key, counter, and cipher mode.
Function
FuncReturn_t CipherConfigure(cipher_mode_t u8CipherMode, cipher_key_t * pCipherKey,
ctr_value_t * pCtrValue)
cipher_mode_t is an enumeration, cipher_key_t and ctr_value_t are structures defined at
SecurityMngmnt.h
as it is shown:
typedef enum cipher_mode_tag{
gCTRMode_c = 0,
gCBCMode_c ,
gCCMMode_c,
gMaxCipherMode
} cipher_mode_t;
typedef struct cipher_key_tag{
uint32_t key0;
uint32_t key1;
uint32_t key2;
uint32_t key3;
} cipher_key_t;
typedef struct ctr_value_tag{
uint32_t ctr0;
uint32_t ctr1;
uint32_t ctr2;
uint32_t ctr3;
}ctr_value_t;