|
Ares LoRa Firmware
|
LoRa API. More...
#include <lora/packet.h>#include <zephyr/drivers/lora.h>#include <zephyr/kernel.h>#include <lora/lora_backend.h>

Go to the source code of this file.
Data Structures | |
| struct | ares_lora_transport_api |
| Unified LoRa transport interface. More... | |
| struct | ares_lora_transport |
| Transfer interface. More... | |
| struct | ares_lora_buf |
| Unified buffer structure for LoRa. More... | |
| struct | ares_lora_command |
| LoRa packet payload handler descriptor. More... | |
| struct | ares_lora_ctx |
| Ares LoRa instance context. More... | |
| struct | ares_lora |
| Ares LoRa internals. More... | |
Macros | |
| #define | ARES_LORA_TRX_BUF_SIZE 512 |
| #define | ARES_LORA_DEFINE(_name, _transport) |
| Macro for defining an ares_lora instance. | |
Typedefs | |
| typedef void(* | lora_transport_handler_t) (enum lora_transport_evt evt, void *ctx) |
| LoRa transport event handler prototype. | |
Enumerations | |
| enum | lora_transport_evt { LORA_TRANSPORT_EVT_RX_RDY , LORA_TRANSPORT_EVT_TX_RDY } |
| enum | ares_lora_signal { ARES_LORA_SIGNAL_RXRDY , ARES_LORA_SIGNAL_TXDONE , ARES_LORA_SIGNALS } |
| Signals for the LoRa interface. More... | |
Functions | |
| int | ares_lora_init (const struct ares_lora *lora, const void *transport_config) |
| Function for initializing a transport layer and internal lora state. | |
| int | ares_lora_register_command_callbacks (const struct ares_lora *lora, const struct ares_lora_command *commands, size_t num_commands) |
| Function for registering the lora packet handlers. | |
| int | ares_lora_write_packet (const struct ares_lora *lora, const struct ares_packet *packet) |
| Function to write a packet to the LoRa transfer layer. | |
| int | ares_lora_configure_lora (const struct ares_lora *lora, const struct lora_modem_config *config) |
| Function to send new configurations to the LoRa transfer layer. | |
| int | ares_lora_set_packet_id (const struct ares_lora *lora, struct ares_packet *packet) |
| Function to update the packet ID of the given packet from the lora instance. | |
LoRa API.
| #define ARES_LORA_DEFINE | ( | _name, | |
| _transport ) |
Macro for defining an ares_lora instance.
| [in] | _name | Instance name. |
| [in] | _transport | Pointer to the transport interface. |
| #define ARES_LORA_TRX_BUF_SIZE 512 |
Unified LoRa buffer size for transmitting and receiving.
| typedef void(* lora_transport_handler_t) (enum lora_transport_evt evt, void *ctx) |
LoRa transport event handler prototype.
| [in] | evt | The event that occurred. |
| [in] | ctx | Pointer to the event context. |
| enum ares_lora_signal |
| enum lora_transport_evt |
| int ares_lora_configure_lora | ( | const struct ares_lora * | lora, |
| const struct lora_modem_config * | config ) |
Function to send new configurations to the LoRa transfer layer.
| [in] | lora | Pointer to lora instance. |
| [in] | config | Pointer to new LoRa modem configurations. |
| int ares_lora_init | ( | const struct ares_lora * | lora, |
| const void * | transport_config ) |
Function for initializing a transport layer and internal lora state.
| [in] | lora | Pointer to lora instance. |
| [in] | transport_config | Transport configuration during initialization. |
| int ares_lora_register_command_callbacks | ( | const struct ares_lora * | lora, |
| const struct ares_lora_command * | commands, | ||
| size_t | num_commands ) |
Function for registering the lora packet handlers.
| [in] | lora | Pointer to lora instance. |
| [in] | commands | The array of lora packet handlers. |
| [in] | num_commands | The number of entries in the array. |
| int ares_lora_set_packet_id | ( | const struct ares_lora * | lora, |
| struct ares_packet * | packet ) |
Function to update the packet ID of the given packet from the lora instance.
| [in] | lora | Pointer to lora instance. |
| [in,out] | packet | Pointer to packet to update the packet ID for. |
| int ares_lora_write_packet | ( | const struct ares_lora * | lora, |
| const struct ares_packet * | packet ) |
Function to write a packet to the LoRa transfer layer.
| [in] | lora | Pointer to lora instance. |
| [in] | packet | Pointer to packet to send over LoRa. |