|
void(* | mac_init )(mac_message_callbacks_t *cb, mac_battery_callback_t *battery_cb, mac_flash_callback_t *flash_cbs) |
| Initializes the MAC.
|
|
void(* | mac_deinit )(void) |
| Deinitializes the MAC.
|
|
void(* | mac_set_device_class )(device_class_t device_class) |
| Sets end-device class. (class A, B or C for LoRaWAN, A or C for PicoWAN) More...
|
|
void(* | mac_init_activation_personalization )(uint32_t netid, uint32_t devaddr, uint8_t *nwkskey, uint8_t *appskey) |
| Initializes the network IDs. The sessions keys must be provided.
|
|
mac_status_t(* | mac_init_activation_on_air )(uint8_t *dev_eui, uint8_t *app_eui, uint8_t *app_key) |
| Initiates the Over-the-Air activation. Sends a request with device and application EUI, and waits a response to compute sessions keys. More...
|
|
mac_status_t(* | mac_send_when_possible )(uint8_t port, uint8_t *payload, uint8_t payload_len, downlink_mode_t dl_mode) |
| Sends data without acknowledge. More...
|
|
mac_status_t(* | mac_send_when_possible_confirmed )(uint8_t port, uint8_t *payload, uint8_t payload_len, uint8_t nb_retries, downlink_mode_t dl_mode) |
| Sends data with acknowledge. More...
|
|
mac_status_t(* | mac_network_available )(void) |
| Reports network availability using callback. It corresponds to the lora mac command Link Check Req. More...
|
|
uint32_t(* | mac_get_device_address )(void) |
| Gets device address. More...
|
|
uint32_t(* mac_get_device_address) (void) |
Gets device address.
This function returns the device address of the current MAC. 0x00000000 is the default device address, before joining a network
- Return values
-
uint32_t | Current device address |
mac_status_t(* mac_init_activation_on_air) (uint8_t *dev_eui, uint8_t *app_eui, uint8_t *app_key) |
Initiates the Over-the-Air activation. Sends a request with device and application EUI, and waits a response to compute sessions keys.
- Return values
-
Reports network availability using callback. It corresponds to the lora mac command Link Check Req.
- Return values
-
Sends data without acknowledge.
- Return values
-
mac_status_t(* mac_send_when_possible_confirmed) (uint8_t port, uint8_t *payload, uint8_t payload_len, uint8_t nb_retries, downlink_mode_t dl_mode) |
Sends data with acknowledge.
- Return values
-
void(* mac_set_device_class) (device_class_t device_class) |
Sets end-device class. (class A, B or C for LoRaWAN, A or C for PicoWAN)
- Parameters
-
[in] | End-device | class to set. [CLASS_A, CLASS_B, CLASS_C] |
The documentation for this struct was generated from the following file: