32 #ifndef MBED_OS_LORAPHYUS_915_H_ 33 #define MBED_OS_LORAPHYUS_915_H_ 42 #define US915_MAX_NB_CHANNELS 72 47 #define US915_MAX_NB_BANDS 1 49 #define US915_CHANNEL_MASK_SIZE 5 52 class LoRaPHYUS915 :
public LoRaPHY {
57 virtual ~LoRaPHYUS915();
67 int8_t *dr_out, int8_t *tx_power_out,
69 uint8_t *nb_bytes_parsed);
79 uint32_t frequency = 0);
89 void intersect_channel_mask(
const uint16_t *source, uint16_t *destination,
95 void fill_channel_mask_with_fsb(
const uint16_t *expectation,
96 const uint16_t *fsb_mask,
97 uint16_t *channel_mask, uint8_t size);
102 void fill_channel_mask_with_value(uint16_t *channel_mask,
103 uint16_t value, uint8_t size);
105 int8_t limit_tx_power(int8_t tx_power, int8_t max_band_tx_power,
116 band_t bands[US915_MAX_NB_BANDS];
121 uint16_t channel_mask[US915_CHANNEL_MASK_SIZE];
126 uint16_t current_channel_mask[US915_CHANNEL_MASK_SIZE];
131 uint16_t default_channel_mask[US915_CHANNEL_MASK_SIZE];
TX configuration parameters.
An abstract class providing radio object to children and provide base for implementing LoRa PHY layer...
virtual void set_tx_cont_mode(cw_mode_params_t *continuous_wave, uint32_t frequency=0)
Puts the radio into continuous wave mode.
virtual int8_t get_alternate_DR(uint8_t nb_trials)
Alternates the datarate of the channel for the join request.
virtual bool tx_config(tx_config_params_t *tx_config, int8_t *tx_power, lorawan_time_t *tx_toa)
Configure radio transmission.
virtual uint8_t link_ADR_request(adr_req_params_t *params, int8_t *dr_out, int8_t *tx_power_out, uint8_t *nb_rep_out, uint8_t *nb_bytes_parsed)
Processes a Link ADR Request.
uint32_t lorawan_time_t
Timer time variable definition.
virtual lorawan_status_t set_next_channel(channel_selection_params_t *nextChanParams, uint8_t *channel, lorawan_time_t *time, lorawan_time_t *aggregatedTimeOff)
Searches and sets the next available channel.
LoRaPHY Class Parent class for LoRa regional PHY implementations.
enum lorawan_status lorawan_status_t
lorawan_status_t contains status codes in response to stack operations
virtual void restore_default_channels()
Enables default channels only.
The parameter structure for the function RegionNextChannel.
Contains rx parameter setup request coming from network server.
virtual bool rx_config(rx_config_params_t *config)
Configure radio reception.
virtual uint8_t apply_DR_offset(int8_t dr, int8_t dr_offset)
Computes new data rate according to the given offset.
virtual uint8_t accept_rx_param_setup_req(rx_param_setup_req_t *params)
Accept or rejects RxParamSetupReq MAC command.
This structure contains parameters for ADR request coming from network server.
DO NOT MODIFY, WILL BREAK THE API!
Default user application maximum data size for transmission.