Ares LoRa Serial Driver Core
Loading...
Searching...
No Matches
AresLoraConfig Struct Reference

#include <ares_lora_serial.hpp>

Public Member Functions

 AresLoraConfig (const py::kwargs &kwargs)
AresFrame generate_frame () const

Public Attributes

uint32_t frequency = 0
uint16_t preamble_length = 0
uint8_t bandwidth = 0
uint8_t datarate = 0
uint8_t coding_rate = 0
int8_t tx_power = 0

Detailed Description

LoRa modem configurations.

Constructor & Destructor Documentation

◆ AresLoraConfig()

AresLoraConfig::AresLoraConfig ( const py::kwargs & kwargs)
explicit

Construct from Python kwargs.

Parameters
kwargsPython keyword arguments.

Member Function Documentation

◆ generate_frame()

AresFrame AresLoraConfig::generate_frame ( ) const
nodiscard

Generate an AresFrame from the object.

Returns
The frame object generated.

Member Data Documentation

◆ bandwidth

uint8_t AresLoraConfig::bandwidth = 0

The bandwidth to use for transceiving.

◆ coding_rate

uint8_t AresLoraConfig::coding_rate = 0

The coding rate to use for transceiving.

◆ datarate

uint8_t AresLoraConfig::datarate = 0

The data-rate to use for transceiving.

◆ frequency

uint32_t AresLoraConfig::frequency = 0

Frequency in Hz to use for transceiving

◆ preamble_length

uint16_t AresLoraConfig::preamble_length = 0

Length of the preamble.

◆ tx_power

int8_t AresLoraConfig::tx_power = 0

TX-power in dBm to use for transmission.


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