|
ProtoCore v0.0.1
Deterministic, zero-heap network stack for embedded targets
|
LoRa radio codec + driver (PC_ENABLE_LORA) - Semtech SX127x / RFM95-96. More...
#include "protocore_config.h"Go to the source code of this file.
LoRa radio codec + driver (PC_ENABLE_LORA) - Semtech SX127x / RFM95-96.
A per-radio plugin for the gateway (PC_ENABLE_GATEWAY): the southbound-radio half of a LoRa-to-web bridge. Two layers:
to / from / id / flags) that virtually every hobby / sensor LoRa deployment uses on top of the header-less LoRa PHY. pc_lora_frame_parse() splits a received frame into that header and the payload; pc_lora_frame_build() prepends it. Pure, no hardware.Wiring to the gateway (see example LoRaGateway): poll pc_lora_recv(); on a frame, pc_lora_frame_parse() then pc_gateway_uplink(port, header.from, payload, len, rssi). A downlink builds a frame with pc_lora_frame_build() and pc_lora_send()s it. The codec + register protocol are verified on the host; the RF link itself needs the module.
Definition in file lora.h.