This module describes all MAC Confirmation Callback's.
Functions | |
void | usr_mcps_data_conf (uint8_t msduHandle, uint8_t status, uint32_t Timestamp) |
Callback function that must be implemented by application (NHLE) for MAC service MCPS-DATA.confirm. More... | |
void | usr_mcps_purge_conf (uint8_t msduHandle, uint8_t status) |
Callback function that must be implemented by application (NHLE) for MAC service MCPS-PURGE.confirm. More... | |
void | usr_mlme_associate_conf (uint16_t AssocShortAddress, uint8_t status) |
Callback function that must be implemented by application (NHLE) for MAC service MLME-ASSOCIATE.confirm. More... | |
void | usr_mlme_disassociate_conf (uint8_t status, wpan_addr_spec_t *DeviceAddrSpec) |
Callback function that must be implemented by application (NHLE) for MAC service MLME-DISASSOCIATE.confirm. More... | |
void | usr_mlme_get_conf (uint8_t status, uint8_t PIBAttribute, void *PIBAttributeValue) |
Callback function that must be implemented by application (NHLE) for MAC service MLME-GET.confirm. More... | |
void | usr_mlme_poll_conf (uint8_t status) |
Callback function that must be implemented by application (NHLE) for MAC service MLME-POLL.confirm. More... | |
void | usr_mlme_reset_conf (uint8_t status) |
Callback function that must be implemented by application (NHLE) for MAC service MLME-RESET.confirm. More... | |
void | usr_mlme_rx_enable_conf (uint8_t status) |
Callback function that must be implemented by application (NHLE) for MAC service MLME-RX-ENABLE.confirm. More... | |
void | usr_mlme_scan_conf (uint8_t status, uint8_t ScanType, uint8_t ChannelPage, uint32_t UnscannedChannels, uint8_t ResultListSize, void *ResultList) |
Callback function that must be implemented by application (NHLE) for MAC service MLME-SCAN.confirm. More... | |
void | usr_mlme_set_conf (uint8_t status, uint8_t PIBAttribute) |
Callback function that must be implemented by application (NHLE) for MAC service MLME-SET.confirm. More... | |
void | usr_mlme_start_conf (uint8_t status) |
Callback function that must be implemented by application (NHLE) for MAC service MLME-START.confirm. More... | |
void usr_mcps_data_conf | ( | uint8_t | msduHandle, |
uint8_t | status, | ||
uint32_t | Timestamp | ||
) |
Callback function that must be implemented by application (NHLE) for MAC service MCPS-DATA.confirm.
msduHandle | Handle of MSDU handed over to MAC earlier. |
status | Result for requested data transmission request. |
Timestamp | The time, in symbols, at which the data were transmitted; this parameter is only available if timestamping is enabled via compile switch ENABLE_TSTAMP. |
References Dispaly_Result_Frame, LED_DATA, LED_Off, MAC_CHANNEL_ACCESS_FAILURE, MAC_NO_ACK, MAC_SUCCESS, MAC_TRANSACTION_EXPIRED, and MAC_TRANSACTION_OVERFLOW.
Referenced by handle_rx_frame().
void usr_mcps_purge_conf | ( | uint8_t | msduHandle, |
uint8_t | status | ||
) |
Callback function that must be implemented by application (NHLE) for MAC service MCPS-PURGE.confirm.
msduHandle | Handle (id) of MSDU to be purged. |
status | Result of requested purge operation. |
Referenced by handle_rx_frame().
void usr_mlme_associate_conf | ( | uint16_t | AssocShortAddress, |
uint8_t | status | ||
) |
Callback function that must be implemented by application (NHLE) for MAC service MLME-ASSOCIATE.confirm.
AssocShortAddress | Short address allocated by the coordinator. |
status | Result of requested association operation. |
Referenced by handle_rx_frame().
void usr_mlme_disassociate_conf | ( | uint8_t | status, |
wpan_addr_spec_t * | DeviceAddrSpec | ||
) |
Callback function that must be implemented by application (NHLE) for MAC service MLME-DISASSOCIATE.confirm.
status | Result of requested disassociate operation. |
DeviceAddrSpec | Pointer to wpan_addr_spec_t structure for device that has either requested disassociation or been instructed to disassociate by its coordinator. |
Referenced by handle_rx_frame().
void usr_mlme_get_conf | ( | uint8_t | status, |
uint8_t | PIBAttribute, | ||
void * | PIBAttributeValue | ||
) |
Callback function that must be implemented by application (NHLE) for MAC service MLME-GET.confirm.
status | Result of requested PIB attribute get operation. |
PIBAttribute | Retrieved PIB attribute. |
PIBAttributeIndex | Index of the PIB attribute to be read. |
PIBAttributeValue | Pointer to data containing retrieved PIB attribute, |
References CHANNEL_OFFSET, channels_supported, convert_byte_array_to_32_bit(), COORD_SHORT_ADDR, current_channel, current_channel_page, default_key_source, MAC_SUCCESS, macShortAddress, NO_PIB_INDEX, phyChannelsSupported, phyCurrentPage, wpan_mlme_get_req(), and wpan_mlme_set_req().
Referenced by handle_rx_frame().
void usr_mlme_poll_conf | ( | uint8_t | status | ) |
Callback function that must be implemented by application (NHLE) for MAC service MLME-POLL.confirm.
status | Result of requested poll operation. |
Referenced by handle_rx_frame().
void usr_mlme_reset_conf | ( | uint8_t | status | ) |
Callback function that must be implemented by application (NHLE) for MAC service MLME-RESET.confirm.
status | Result of requested reset operation. |
References MAC_SUCCESS, phyCurrentPage, wpan_mlme_get_req(), and wpan_mlme_reset_req().
Referenced by handle_rx_frame().
void usr_mlme_rx_enable_conf | ( | uint8_t | status | ) |
Callback function that must be implemented by application (NHLE) for MAC service MLME-RX-ENABLE.confirm.
status | Result of requested receiver enable operation. |
Referenced by handle_rx_frame().
void usr_mlme_scan_conf | ( | uint8_t | status, |
uint8_t | ScanType, | ||
uint8_t | ChannelPage, | ||
uint32_t | UnscannedChannels, | ||
uint8_t | ResultListSize, | ||
void * | ResultList | ||
) |
Callback function that must be implemented by application (NHLE) for MAC service MLME-SCAN.confirm.
status | Result of requested scan operation. |
ScanType | Type of scan performed. |
ChannelPage | The channel page on which the scan was performed. |
UnscannedChannels | Bitmap of unscanned channels |
ResultListSize | Number of elements in ResultList. |
ResultList | Pointer to array of scan results . |
References current_channel, current_channel_page, DEFAULT_BEACON_KEY_INDEX, DEFAULT_BEACON_KEY_SRC, DEFAULT_BEACON_KEYID_MODE, DEFAULT_BEACON_SEC_LVL, DEFAULT_BO, DEFAULT_COORDREALIGN_KEY_INDEX, DEFAULT_COORDREALIGN_KEY_SRC, DEFAULT_COORDREALIGN_KEYID_MODE, DEFAULT_COORDREALIGN_SEC_LVL, DEFAULT_COORDREALIGNMENT, DEFAULT_PAN_ID, DEFAULT_SO, and wpan_mlme_start_req().
Referenced by handle_rx_frame().
void usr_mlme_set_conf | ( | uint8_t | status, |
uint8_t | PIBAttribute | ||
) |
Callback function that must be implemented by application (NHLE) for MAC service MLME-SET.confirm.
status | Result of requested PIB attribute set operation. |
PIBAttribute | Updated PIB attribute. |
PIBAttributeIndex | Index of updated PIB attribute. |
References beacon_payload, BEACON_PAYLOAD_LEN, COORD_STARTING, coord_state, current_channel, current_channel_page, MAC_SUCCESS, macAssociationPermit, macBeaconPayload, macBeaconPayloadLength, macRxOnWhenIdle, macShortAddress, MLME_SCAN_TYPE_ACTIVE, SCAN_CHANNEL, SCAN_DURATION_COORDINATOR, wpan_mlme_reset_req(), wpan_mlme_scan_req(), and wpan_mlme_set_req().
Referenced by handle_rx_frame().
void usr_mlme_start_conf | ( | uint8_t | status | ) |
Callback function that must be implemented by application (NHLE) for MAC service MLME-START.confirm.
status | Result of requested start operation. |
References APP_BC_DATA_DURATION_MS, APP_BCN_PAYLOAD_DURATION_MS, APP_TIMER_BC_DATA, APP_TIMER_BCN_PAYLOAD_UPDATE, bc_data_cb(), bcn_payload_update_cb(), COORD_RUNNING, coord_state, current_channel, FUNC_PTR, LED_NWK_SETUP, LED_On, MAC_SUCCESS, SW_TIMEOUT_RELATIVE, sw_timer_start(), and wpan_mlme_reset_req().
Referenced by handle_rx_frame().