31 #ifndef MBED_OS_LORA_PHY_DATASTRUCTURES_ 32 #define MBED_OS_LORA_PHY_DATASTRUCTURES_ 44 #define MIN( a, b ) ( ( ( a ) < ( b ) ) ? ( a ) : ( b ) ) 55 #define MAX( a, b ) ( ( ( a ) > ( b ) ) ? ( a ) : ( b ) ) 61 #define LORA_MAX_NB_CHANNELS 16 66 #define LC( channelIndex ) ( uint16_t )( 1 << ( channelIndex - 1 ) ) 245 #define TX_POWER_10 10 250 #define TX_POWER_11 11 255 #define TX_POWER_12 12 260 #define TX_POWER_13 13 265 #define TX_POWER_14 14 270 #define TX_POWER_15 15 496 uint8_t channel_list_size;
499 uint16_t *default_mask;
507 bool duty_cycle_enabled;
508 bool accept_tx_param_setup_req;
510 bool cflist_supported;
511 bool custom_channelplans_supported;
512 bool dl_channel_req_supported;
514 uint8_t default_channel_cnt;
515 uint8_t cflist_channel_cnt;
516 uint8_t max_channel_cnt;
517 uint8_t min_tx_power;
518 uint8_t max_tx_power;
519 uint8_t default_tx_power;
520 uint8_t adr_ack_limit;
521 uint8_t adr_ack_delay;
523 uint8_t min_tx_datarate;
524 uint8_t max_tx_datarate;
525 uint8_t min_rx_datarate;
526 uint8_t max_rx_datarate;
527 uint8_t default_datarate;
528 uint8_t default_max_datarate;
529 uint8_t min_rx1_dr_offset;
530 uint8_t max_rx1_dr_offset;
531 uint8_t default_rx1_dr_offset;
532 uint8_t dwell_limit_datarate;
534 uint16_t max_rx_window;
535 uint16_t recv_delay1;
536 uint16_t recv_delay2;
537 uint16_t join_accept_delay1;
538 uint16_t join_accept_delay2;
539 uint16_t join_channel_mask;
540 uint16_t max_fcnt_gap;
541 uint16_t ack_timeout;
542 uint16_t ack_timeout_rnd;
544 float default_max_eirp;
545 float default_antenna_gain;
547 uint8_t rx_window2_datarate;
548 uint32_t rx_window2_frequency;
559 unsigned ul_dwell_time_setting : 1;
560 unsigned dl_dwell_time_setting : 1;
TX configuration parameters.
uint16_t channel_mask
Channels mask field.
bool joined
Set to true, if the node has already joined a network, otherwise false.
struct continuous_wave_mode_params_s cw_mode_params_t
uint8_t ch_mask_ctrl
Channels mask control field.
int8_t dr_offset
The datarate offset.
struct link_adr_params_s link_adr_params_t
Structure containing data for local ADR settings.
float antenna_gain
The antenna gain, if applicable.
uint8_t nb_rep
The number of repetitions.
uint32_t lorawan_time_t
Timer time variable definition.
Structure used to store ADR values received from network for verification (legality) purposes...
lorawan_time_t last_aggregate_tx_time
The time of the last aggregated TX.
Structure containing data for local ADR settings.
int8_t datarate
The datarate to set up.
uint16_t pkt_len
The frame length to set up.
int8_t datarate
The TX datarate.
int8_t current_datarate
The current datarate.
uint32_t frequency
The frequency to set up.
struct channel_selection_params_s channel_selection_params_t
The parameter structure for the function RegionNextChannel.
bool dc_enabled
Set to true, if the duty cycle is enabled, otherwise false.
The parameter structure for the function RegionNextChannel.
Contains rx parameter setup request coming from network server.
struct verify_adr_params_s verify_adr_params_t
Structure used to store ADR values received from network for verification (legality) purposes...
Contains common data structures used by Mbed-OS LoRaWAN mplementation.
This structure contains parameters for ADR request coming from network server.
uint8_t channel
The TX channel.
lorawan_time_t aggregate_timeoff
The aggregated time-off time.
DO NOT MODIFY, WILL BREAK THE API!
float max_eirp
The Max EIRP, if applicable.
struct rx_param_setup_req_s rx_param_setup_req_t
Contains rx parameter setup request coming from network server.
int8_t tx_power
The TX power.