WXK
2023-09-08 00fc23c0b2c7b7dfd6df3e9fb9e385ec949cd8cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
/*******************************************************************************
 * 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_ */