/******************************************************************************* * File Name : lora.h * Description : * Author : hido.ltd *******************************************************************************/ #ifndef _LORA_H_ #define _LORA_H_ /******************************************************************************* * Include Files * *******************************************************************************/ #include "HIDO_TypeDef.h" /******************************************************************************* * Macro * *******************************************************************************/ /******************************************************************************* * Type Definition * *******************************************************************************/ typedef enum { LORA_PIN_RESET, LORA_PIN_SLEEP, LORA_PIN_RUN, LORA_PIN_MAX, }E_LoraPin; /******************************************************************************* * Global Function * *******************************************************************************/ /******************************************************************************* * Function Name : Lora_Poll * Description : * Input : * Output : * Return : * Author : hido.ltd *******************************************************************************/ void Lora_Poll(void); /******************************************************************************* * Function Name : Lora_ResetH * Description : * Input : * Output : * Return : * Author : hido.ltd *******************************************************************************/ void Lora_ResetH(void); /******************************************************************************* * Function Name : Lora_ResetL * Description : * Input : * Output : * Return : * Author : hido.ltd *******************************************************************************/ void Lora_ResetL(void); /******************************************************************************* * Function Name : Lora_ResetH * Description : * Input : * Output : * Return : * Author : hido.ltd *******************************************************************************/ void Lora_Sleep(void); /******************************************************************************* * Function Name : Lora_WakeUp * Description : * Input : * Output : * Return : * Author : hido.ltd *******************************************************************************/ void Lora_WakeUp(void); /******************************************************************************* * Function Name : Lora_ResetL * Description : * Input : * Output : * Return : * Author : hido.ltd *******************************************************************************/ HIDO_BOOL Lora_IsRun(void); /******************************************************************************* * Function Name : Lora_ResetL * Description : * Input : * Output : * Return : * Author : hido.ltd *******************************************************************************/ HIDO_VOID Lora_Run(void); /******************************************************************************* * Function Name : Lora_PinRegister * Description : Lora¹Ü½Å×¢²á * Input : * Output : * Return : * Author : hido.ltd *******************************************************************************/ HIDO_INT32 Lora_PinRegister(E_LoraPin _ePin, void *_pGPIO, HIDO_UINT16 _u16Pin); /******************************************************************************* * Function Name : Lora_IsIdle * Description : * Input : * Output : * Return : * Author : hido.ltd *******************************************************************************/ HIDO_BOOL Lora_IsIdle(void); /******************************************************************************* * Function Name : Lora_SendData * Description : * Input : * Output : * Return : * Author : hido.ltd *******************************************************************************/ HIDO_INT32 Lora_SendData(HIDO_UINT8 *_pu8Data, HIDO_UINT32 _u32Len); /******************************************************************************* * Function Name : Lora_Init * Description : * Input : * Output : * Return : * Author : hido.ltd *******************************************************************************/ HIDO_INT32 Lora_Init(void); #endif /* _LORA_H_ */