/*******************************************************************************
|
* File Name : Power.h
|
* Description :
|
* Author : hido.ltd
|
*******************************************************************************/
|
|
#ifndef HAL_POWER_H_
|
#define HAL_POWER_H_
|
/*******************************************************************************
|
* Include Files *
|
*******************************************************************************/
|
#include "HIDO_TypeDef.h"
|
|
/*******************************************************************************
|
* Macro *
|
*******************************************************************************/
|
|
/*******************************************************************************
|
* Type Definition *
|
*******************************************************************************/
|
typedef enum
|
{
|
POWER_PIN_EN,
|
POWER_PIN_GPS_LORA,
|
|
POWER_PIN_MAX,
|
}E_PowerPin;
|
|
/*******************************************************************************
|
* Global Function *
|
*******************************************************************************/
|
|
/*******************************************************************************
|
* Function Name : Power_PinRegister
|
* Description :
|
* Input :
|
* Output :
|
* Return :
|
* Author : hido.ltd
|
*******************************************************************************/
|
HIDO_VOID Power_PinRegister(E_PowerPin _ePin, HIDO_VOID *_pGPIO, HIDO_UINT16 _u16Pin);
|
|
/*******************************************************************************
|
* Function Name : Power_On
|
* Description :
|
* Input :
|
* Output :
|
* Return :
|
* Author : hido.ltd
|
*******************************************************************************/
|
HIDO_VOID Power_On(HIDO_VOID);
|
|
/*******************************************************************************
|
* Function Name : Power_Off
|
* Description :
|
* Input :
|
* Output :
|
* Return :
|
* Author : hido.ltd
|
*******************************************************************************/
|
HIDO_VOID Power_Off(HIDO_VOID);
|
|
/*******************************************************************************
|
* Function Name : Power_GPS_LoraOn
|
* Description :
|
* Input :
|
* Output :
|
* Return :
|
* Author : hido.ltd
|
*******************************************************************************/
|
HIDO_VOID Power_GPS_LoraOn(HIDO_VOID);
|
|
/*******************************************************************************
|
* Function Name : Power_GPS_LoraOff
|
* Description :
|
* Input :
|
* Output :
|
* Return :
|
* Author : hido.ltd
|
*******************************************************************************/
|
HIDO_VOID Power_GPS_LoraOff(HIDO_VOID);
|
|
/*******************************************************************************
|
* Function Name : Power_Sleep
|
* Description :
|
* Input :
|
* Output :
|
* Return :
|
* Author : hido.ltd
|
*******************************************************************************/
|
void Power_Sleep(void);
|
|
/*******************************************************************************
|
* Function Name : Power_Init
|
* Description :
|
* Input :
|
* Output :
|
* Return :
|
* Author : hido.ltd
|
*******************************************************************************/
|
HIDO_INT32 Power_Init(void);
|
|
#endif /* HAL_POWER_H_ */
|