24 lines
484 B
C
24 lines
484 B
C
#ifndef LORA_H
|
|
#define LORA_H
|
|
|
|
#include <zephyr/device.h>
|
|
#include <zephyr/kernel.h>
|
|
#include <zephyr/drivers/lora.h>
|
|
|
|
void lora_init(void);
|
|
|
|
extern const struct device *lora_dev;
|
|
|
|
// Empfangssteuerung
|
|
int enable_lora_receive(void);
|
|
int disable_lora_receive(void);
|
|
void lora_check_fn(struct k_work *work);
|
|
|
|
// Buffer-Zugriff
|
|
const char *get_last_msg(void);
|
|
void clear_msg_buffer(void);
|
|
|
|
extern struct k_work_delayable lora_check_work;
|
|
#define ACTIVE_WINDOW_MS 10000
|
|
|
|
#endif // LORA_H_
|