yincheng.zhong
2024-01-22 5309726bb8a8b310304b88c84a8ae5dd76d8188a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#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 Lora_Init(void);
void OnRxDone( uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr );
void OnTxDone( void );
void LedToggle(void);
void SwitchLoraToSyncRec();
uint8_t GetFlagLoraWaitSync(void);
uint8_t GetLoraBufferAndLen(uint8_t* buffer,uint16_t* lp_count);
#endif