yincheng.zhong
2024-02-25 d7f957eb56272e006de3dd404454cdf56de86655
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef __LORA_H__
#define __LORA_H__
 
#include <stdint.h>
#include <stdbool.h>
void OnTxTimeout( void );
   void OnRxTimeout( void );
void OnRxError( void );
void T_R_Init(uint8_t kind);
void Lora433rx_Init(void);
void OnRxDone( uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr );
void OnTxDone( void );
void LedToggle(void);
void SwitchLoraSettings(uint32_t freq,uint8_t sf,uint8_t power);
void LoraInit(void);
 
#define UWB_CHANNEL_FRQ 465
#define UWB_CHANNEL_SF 5
 
#define REPORT_MANGE_CHANNEL_FRQ 450
#define REPORT_CHANNEL_SF 7
 
#endif