|
Zephyr API Documentation 4.4.0-rc1
A Scalable Open Source RTOS
|
Structure containing the configuration of a LoRa modem. More...
#include <zephyr/drivers/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: | |
| bool | packet_crc_disable |
| Set to true to disable the 16-bit payload CRC. | |
| struct { | |
| enum lora_cad_mode mode | |
| CAD mode. More... | |
| enum lora_cad_symbol_num symbol_num | |
| Number of symbols for CAD detection. More... | |
| uint8_t detection_peak | |
| Detection peak threshold (hardware-specific, dimensionless). More... | |
| uint8_t detection_minimum | |
| Minimum detection threshold (hardware-specific, dimensionless). More... | |
| } | cad |
| Channel Activity Detection parameters. | |
Structure containing the configuration of a LoRa modem.
| enum lora_signal_bandwidth lora_modem_config::bandwidth |
The bandwidth to use for transceiving.
| struct { ... } lora_modem_config::cad |
Channel Activity Detection parameters.
| enum lora_coding_rate lora_modem_config::coding_rate |
The coding rate to use for transceiving.
| enum lora_datarate lora_modem_config::datarate |
The data-rate to use for transceiving.
| uint8_t lora_modem_config::detection_minimum |
Minimum detection threshold (hardware-specific, dimensionless).
Passed directly to the radio. 0 = auto-derive from SF/BW.
| uint8_t lora_modem_config::detection_peak |
Detection peak threshold (hardware-specific, dimensionless).
Passed directly to the radio. 0 = auto-derive from SF/BW.
| uint32_t lora_modem_config::frequency |
Frequency in Hz to use for transceiving.
| 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
| enum lora_cad_mode lora_modem_config::mode |
CAD mode.
See lora_cad_mode for details.
| bool lora_modem_config::packet_crc_disable |
Set to true to disable the 16-bit payload CRC.
| uint16_t lora_modem_config::preamble_len |
Length of the preamble.
| bool lora_modem_config::public_network |
Sets the sync-byte to use:
| enum lora_cad_symbol_num lora_modem_config::symbol_num |
Number of symbols for CAD detection.
0 = driver default.
| bool lora_modem_config::tx |
Set to true for transmission, false for receiving.
| int8_t lora_modem_config::tx_power |
TX-power in dBm to use for transmission.