Loading...
Searching...
No Matches
lora.h
Go to the documentation of this file.
1
7
8// ALLOW FORMATTING
9#ifndef LORA_H
10#define LORA_H
11
12#include "stdint.h"
13#include "stdbool.h"
14
20
24typedef enum {
25 LORA_MODE_TX, // Transmission mode
26 LORA_MODE_RX, // Continuous receive mode
27 LORA_MODE_OTHER // Driver defined operating mode
28} LoRa_Mode;
29
30typedef struct LoRa {
32 void (*transmit)(struct LoRa *, uint8_t *, uint8_t);
33 void (*startReceive)(struct LoRa *);
34 uint8_t (*readReceive)(struct LoRa *, uint8_t *, uint8_t);
35 void (*clearIRQ)(struct LoRa *, uint8_t);
36} LoRa_t;
37
39#endif
LoRa_Mode
LoRa base operating mode enum.
Definition lora.h:24
Definition lora.h:30
void(* transmit)(struct LoRa *, uint8_t *, uint8_t)
LoRa transmit method.
Definition lora.h:32
LoRa_Mode currentMode
Current operating mode.
Definition lora.h:31
uint8_t(* readReceive)(struct LoRa *, uint8_t *, uint8_t)
LoRa receive buffer read method.
Definition lora.h:34
void(* startReceive)(struct LoRa *)
LoRa continuous receive method.
Definition lora.h:33
void(* clearIRQ)(struct LoRa *, uint8_t)
LoRa IRQ clear method.
Definition lora.h:35