Zephyr Project API 3.7.0
A Scalable Open Source RTOS
|
Public LoRaWAN APIs. More...
Go to the source code of this file.
Data Structures | |
struct | lorawan_join_otaa |
LoRaWAN join parameters for over-the-Air activation (OTAA) More... | |
struct | lorawan_join_abp |
LoRaWAN join parameters for activation by personalization (ABP) More... | |
struct | lorawan_join_config |
LoRaWAN join parameters. More... | |
struct | lorawan_downlink_cb |
LoRaWAN downlink callback parameters. More... | |
Macros | |
#define | LW_RECV_PORT_ANY UINT16_MAX |
Flag to indicate receiving on any port. | |
Typedefs | |
typedef uint8_t(* | lorawan_battery_level_cb_t) (void) |
Defines the battery level callback handler function signature. | |
typedef void(* | lorawan_dr_changed_cb_t) (enum lorawan_datarate dr) |
Defines the datarate changed callback handler function signature. | |
Functions | |
void | lorawan_register_battery_level_callback (lorawan_battery_level_cb_t cb) |
Register a battery level callback function. | |
void | lorawan_register_downlink_callback (struct lorawan_downlink_cb *cb) |
Register a callback to be run on downlink packets. | |
void | lorawan_register_dr_changed_callback (lorawan_dr_changed_cb_t cb) |
Register a callback to be called when the datarate changes. | |
int | lorawan_join (const struct lorawan_join_config *config) |
Join the LoRaWAN network. | |
int | lorawan_start (void) |
Start the LoRaWAN stack. | |
int | lorawan_send (uint8_t port, uint8_t *data, uint8_t len, enum lorawan_message_type type) |
Send data to the LoRaWAN network. | |
int | lorawan_set_class (enum lorawan_class dev_class) |
Set the current device class. | |
int | lorawan_set_conf_msg_tries (uint8_t tries) |
Set the number of tries used for transmissions. | |
void | lorawan_enable_adr (bool enable) |
Enable Adaptive Data Rate (ADR) | |
int | lorawan_set_channels_mask (uint16_t *channels_mask, size_t channels_mask_size) |
Set the channels mask. | |
int | lorawan_set_datarate (enum lorawan_datarate dr) |
Set the default data rate. | |
enum lorawan_datarate | lorawan_get_min_datarate (void) |
Get the minimum possible datarate. | |
void | lorawan_get_payload_sizes (uint8_t *max_next_payload_size, uint8_t *max_payload_size) |
Get the current payload sizes. | |
int | lorawan_set_region (enum lorawan_region region) |
Set the region and frequency to be used. | |
Public LoRaWAN APIs.