Zephyr API 3.6.99
Loading...
Searching...
No Matches
lora_modem_config Struct Reference

Structure containing the configuration of a LoRa modem. More...

#include <lora.h>

Data Fields

uint32_t frequency
 Frequency in Hz to use for transceiving.
 
enum lora_signal_bandwidth bandwidth
 The bandwidth to use for transceiving.
 
enum lora_datarate datarate
 The data-rate to use for transceiving.
 
enum lora_coding_rate coding_rate
 The coding rate to use for transceiving.
 
uint16_t preamble_len
 Length of the preamble.
 
int8_t tx_power
 TX-power in dBm to use for transmission.
 
bool tx
 Set to true for transmission, false for receiving.
 
bool iq_inverted
 Invert the In-Phase and Quadrature (IQ) signals.
 
bool public_network
 Sets the sync-byte to use:
 

Detailed Description

Structure containing the configuration of a LoRa modem.

Field Documentation

◆ bandwidth

enum lora_signal_bandwidth lora_modem_config::bandwidth

The bandwidth to use for transceiving.

◆ coding_rate

enum lora_coding_rate lora_modem_config::coding_rate

The coding rate to use for transceiving.

◆ datarate

enum lora_datarate lora_modem_config::datarate

The data-rate to use for transceiving.

◆ frequency

uint32_t lora_modem_config::frequency

Frequency in Hz to use for transceiving.

◆ iq_inverted

bool lora_modem_config::iq_inverted

Invert the In-Phase and Quadrature (IQ) signals.

Normally this should be set to false. In advanced use-cases where a differentation is needed between "uplink" and "downlink" traffic, the IQ can be inverted to create two different channels on the same frequency

◆ preamble_len

uint16_t lora_modem_config::preamble_len

Length of the preamble.

◆ public_network

bool lora_modem_config::public_network

Sets the sync-byte to use:

  • false: for using the private network sync-byte
  • true: for using the public network sync-byte The public network sync-byte is only intended for advanced usage. Normally the private network sync-byte should be used for peer to peer communications and the LoRaWAN APIs should be used for interacting with a public network.

◆ tx

bool lora_modem_config::tx

Set to true for transmission, false for receiving.

◆ tx_power

int8_t lora_modem_config::tx_power

TX-power in dBm to use for transmission.


The documentation for this struct was generated from the following file: