Module to declare MAC MLME Scan API. More...
Data Structures | |
struct | mlme_scan_conf_t |
MLME-SCAN.confirm. More... | |
struct | mlme_scan_req_t |
MLME-SCAN.request. More... | |
Typedefs | |
typedef void(* | mlme_scan_conf_cb_t )(mlme_scan_conf_t *) |
User callback to scan request. More... | |
Enumerations | |
enum | mac_scan_type_t { ED_SCAN = 0, ACTIVE_SCAN, PASSIVE_SCAN, ORPHAN_SCAN } |
Type of scan. More... | |
Functions | |
void | mlme_scan_req (mlme_scan_req_t *req, mlme_scan_conf_cb_t conf_cb) |
MLME-SCAN request. More... | |
Module to declare MAC MLME Scan API.
The MAC Scan module declares MLME Scan primitives and necessary types according to the MAC specification. More specifically, MLME Scan request aka mlme_scan_req(), and MLME Scan confirm callback typedef aka mlme_scan_conf_cb_t primitives are declared.
typedef void(* mlme_scan_conf_cb_t)(mlme_scan_conf_t *) |
User callback to scan request.
The MLME-SCAN.confirm primitive is generated by the MLME and issued to its next higher layer when the channel scan initiated with the MLME-SCAN.request primitive has completed.
In accordance with IEEE Std 802.15.4-2006, section 7.1.11.2
enum mac_scan_type_t |
void mlme_scan_req | ( | mlme_scan_req_t * | req, |
mlme_scan_conf_cb_t | conf_cb | ||
) |
MLME-SCAN request.
The MLME-SCAN.request primitive is generated by the next higher layer and issued to its MLME to initiate a channel scan to search for activity within the POS of the device. This primitive can be used to perform an ED scan to determine channel usage, an active or passive scan to locate beacon frames containing any PAN identifier, or an orphan scan to locate a PAN to which the device is currently associated.
[in] | req | MLME-SCAN request structure. |
[in] | conf_cb | pointer to user callback. |
In accordance with IEEE Std 802.15.4-2006, section 7.1.11.1