The API Encoder Module Encodes the MAC Api's into appropriate command byte stream.
static FLASH_DECLARE |
( |
uint8_t |
phy_pib_size[] | ) |
|
|
static |
uint8_t mac_get_pib_attribute_size |
( |
uint8_t |
pib_attribute_id | ) |
|
bool wpan_mcps_data_req |
( |
uint8_t |
SrcAddrMode, |
|
|
wpan_addr_spec_t * |
DstAddrSpec, |
|
|
uint8_t |
msduLength, |
|
|
uint8_t * |
msdu, |
|
|
uint8_t |
msduHandle, |
|
|
uint8_t |
TxOptions |
|
) |
| |
Initiate MCPS-DATA.request service and have it placed in the MCPS-SAP queue.
- Parameters
-
SrcAddrMode | Address Mode of the source address. |
DstAddrSpec | Pointer to wpan_addr_spec_t structure for destination. |
msduHandle | Handle (identification) of the MSDU. |
TxOptions | Bitmap for transmission options. Valid values:
|
msdu | Pointer to the data to be transmitted. |
msduLength | Length of the data to be transmitted. |
SecurityLevel | Used security level; this parameter is only available if MAC security is enabled via MAC_SECURITY_ZIP |
KeyIdMode | Used mode to identify the key; this parameter is only available if MAC security is enabled via MAC_SECURITY_ZIP |
KeyIndex | Used index of the key; this parameter is only available if MAC security is enabled via MAC_SECURITY_ZIP |
- Returns
- true - success; false - buffer not available or queue full.
References wpan_addr_spec_tag::Addr, wpan_addr_spec_tag::AddrMode, CMD_POS, EOT, LEN_POS, MCPS_DATA_REQUEST, wpan_addr_spec_tag::PANId, and sio2ncp_tx().
bool wpan_mlme_reset_req |
( |
bool |
SetDefaultPib | ) |
|
Initiate MLME-RESET.request service and have it placed in the MLME-SAP queue.
- Parameters
-
SetDefaultPib | Boolean to set all PIB values to their respective defaults. |
- Returns
- true - success; false - buffer not available or queue full.
References CMD_POS, EOT, LEN_POS, MLME_RESET_REQUEST, and sio2ncp_tx().
bool wpan_mlme_set_req |
( |
uint8_t |
PIBAttribute, |
|
|
void * |
PIBAttributeValue |
|
) |
| |
Initiate MLME-SET.request service and have it placed in MLME_SAP queue.
- Parameters
-
PIBAttribute | PIB attribute to be set. |
PIBAttributeIndex | Index of the PIB attribute to be set. |
PIBAttributeValue | Pointer to new PIB attribute value. |
- Returns
- true - success; false - buffer not available or queue full.
References CMD_POS, EOT, LEN_POS, mac_get_pib_attribute_size(), macBeaconPayload, and sio2ncp_tx().