This module describes all MAC Indication Callback's.
|
void | usr_mcps_data_ind (wpan_addr_spec_t *SrcAddrSpec, wpan_addr_spec_t *DstAddrSpec, uint8_t msduLength, uint8_t *msdu, uint8_t mpduLinkQuality, uint8_t DSN, uint32_t Timestamp, uint8_t SecurityLevel, uint8_t KeyIdMode, uint8_t KeyIndex) |
| Callback function that must be implemented by application (NHLE) for MAC service MCPS-DATA.indication. More...
|
|
void | usr_mlme_associate_ind (uint64_t DeviceAddress, uint8_t CapabilityInformation) |
| Callback function that must be implemented by application (NHLE) for MAC service MLME-ASSOCIATE.indication. More...
|
|
void | usr_mlme_beacon_notify_ind (uint8_t BSN, wpan_pandescriptor_t *PANDescriptor, uint8_t PendAddrSpec, uint8_t *AddrList, uint8_t sduLength, uint8_t *sdu) |
| Callback function that must be implemented by application (NHLE) for MAC service MLME-BEACON-NOTIFY.indication. More...
|
|
void | usr_mlme_comm_status_ind (wpan_addr_spec_t *SrcAddrSpec, wpan_addr_spec_t *DstAddrSpec, uint8_t status) |
| Callback function that must be implemented by application (NHLE) for MAC service MLME-COMM-STATUS.indication. More...
|
|
void | usr_mlme_disassociate_ind (uint64_t DeviceAddress, uint8_t DisassociateReason) |
| Callback function that must be implemented by application (NHLE) for MAC service MLME-DISASSOCIATE.indication. More...
|
|
void | usr_mlme_orphan_ind (uint64_t OrphanAddress) |
| Callback function that must be implemented by application (NHLE) for MAC service MLME-ORPHAN.indication. More...
|
|
void | usr_mlme_sync_loss_ind (uint8_t LossReason, uint16_t PANId, uint8_t LogicalChannel, uint8_t ChannelPage) |
| Callback function that must be implemented by application (NHLE) for MAC service MLME-SYNC-LOSS.indication. More...
|
|
void usr_mcps_data_ind |
( |
wpan_addr_spec_t * |
SrcAddrSpec, |
|
|
wpan_addr_spec_t * |
DstAddrSpec, |
|
|
uint8_t |
msduLength, |
|
|
uint8_t * |
msdu, |
|
|
uint8_t |
mpduLinkQuality, |
|
|
uint8_t |
DSN, |
|
|
uint32_t |
Timestamp, |
|
|
uint8_t |
SecurityLevel, |
|
|
uint8_t |
KeyIdMode, |
|
|
uint8_t |
KeyIndex |
|
) |
| |
Callback function that must be implemented by application (NHLE) for MAC service MCPS-DATA.indication.
- Parameters
-
SrcAddrSpec | Pointer to source address specification. |
DstAddrSpec | Pointer to destination address specification. |
msduLength | Number of octets contained in MSDU. |
msdu | Pointer to MSDU. |
mpduLinkQuality | LQI measured during reception of the MPDU. |
DSN | The DSN of the received data frame. |
Timestamp | The time, in symbols, at which the data were received; this parameter is only available if timestamping is enabled via compile switch ENABLE_TSTAMP. |
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
- void
void usr_mlme_associate_ind |
( |
uint64_t |
DeviceAddress, |
|
|
uint8_t |
CapabilityInformation |
|
) |
| |
Callback function that must be implemented by application (NHLE) for MAC service MLME-ASSOCIATE.indication.
- Parameters
-
- Returns
- void
void usr_mlme_beacon_notify_ind |
( |
uint8_t |
BSN, |
|
|
wpan_pandescriptor_t * |
PANDescriptor, |
|
|
uint8_t |
PendAddrSpec, |
|
|
uint8_t * |
AddrList, |
|
|
uint8_t |
sduLength, |
|
|
uint8_t * |
sdu |
|
) |
| |
Callback function that must be implemented by application (NHLE) for MAC service MLME-BEACON-NOTIFY.indication.
- Parameters
-
BSN | Beacon sequence number. |
PANDescriptor | Pointer to PAN descriptor for received beacon. |
PendAddrSpec | Pending address specification in received beacon. |
AddrList | List of addresses of devices the coordinator has pending data. |
sduLength | Length of beacon payload. |
sdu | Pointer to beacon payload. |
- Returns
- void
References APP_ASSOC_IN_PROGRESS, APP_DEVICE_RUNNING, APP_SCAN_DONE, app_state, current_channel, current_channel_page, msdu_payload, PAYLOAD_LEN, WPAN_ADDRMODE_SHORT, WPAN_CAP_ALLOCADDRESS, wpan_mcps_data_req(), wpan_mlme_associate_req(), and WPAN_TXOPT_ACK.
Referenced by mlme_beacon_notify_ind().
Callback function that must be implemented by application (NHLE) for MAC service MLME-COMM-STATUS.indication.
- Parameters
-
SrcAddrSpec | Pointer to source address specification. |
DstAddrSpec | Pointer to destination address specification. |
status | Result for related response operation. |
- Returns
- void
void usr_mlme_disassociate_ind |
( |
uint64_t |
DeviceAddress, |
|
|
uint8_t |
DisassociateReason |
|
) |
| |
Callback function that must be implemented by application (NHLE) for MAC service MLME-DISASSOCIATE.indication.
- Parameters
-
DeviceAddress | Extended address of device which initiated the disassociation request. |
DisassociateReason | Reason for the disassociation. Valid values:
|
- Returns
- void
Referenced by mlme_disassociate_ind().
void usr_mlme_orphan_ind |
( |
uint64_t |
OrphanAddress | ) |
|
Callback function that must be implemented by application (NHLE) for MAC service MLME-ORPHAN.indication.
- Parameters
-
OrphanAddress | Address of orphaned device. |
- Returns
- void
void usr_mlme_sync_loss_ind |
( |
uint8_t |
LossReason, |
|
|
uint16_t |
PANId, |
|
|
uint8_t |
LogicalChannel, |
|
|
uint8_t |
ChannelPage |
|
) |
| |
Callback function that must be implemented by application (NHLE) for MAC service MLME-SYNC-LOSS.indication.
- Parameters
-
LossReason | Reason for synchronization loss. |
PANId | The PAN identifier with which the device lost synchronization or to which it was realigned. |
LogicalChannel | The logical channel on which the device lost synchronization or to which it was realigned. |
ChannelPage | The channel page on which the device lost synchronization or to which it was realigned. |
- Returns
- void
References wpan_mlme_sync_req().
Referenced by mlme_sync_loss_ind().