-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPAC1720.h
128 lines (106 loc) · 3.22 KB
/
PAC1720.h
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
///-------------------------------------------------------------------------------------------------
/// @file POC\PAC1720.h.
///
/// @brief Declares the pac 1720 class
#pragma once
#include "I2CComponent.h"
#include <list>
#include "BasicPOCModule.h"
///-------------------------------------------------------------------------------------------------
/// @class PAC1720
///
/// @brief A pac 1720.
///
/// @author Benjamin
/// @date 28.09.2020
class PAC1720 :
public I2CComponent {
public:
///-------------------------------------------------------------------------------------------------
/// @fn PAC1720::PAC1720(BasicPOCModule* itsPOCModule, list<Component*>& componentList);
///
/// @brief Constructor
///
/// @author Benjamin
/// @date 28.09.2020
///
/// @param [in,out] itsPOCModule If non-null, its poc module.
/// @param [in,out] componentList [in,out] If non-null, list of components.
PAC1720(BasicPOCModule* itsPOCModule, list<Component*>& componentList);
///-------------------------------------------------------------------------------------------------
/// @fn void PAC1720::init() final;
///
/// @brief Initializes this object
///
/// @author Benjamin
/// @date 28.09.2020
void init() final;
///-------------------------------------------------------------------------------------------------
/// @fn void PAC1720::selfTest() final;
///
/// @brief Tests self
///
/// @author Benjamin
/// @date 28.09.2020
void selfTest() final;
///-------------------------------------------------------------------------------------------------
/// @fn unsigned int PAC1720::getCurrentDrawHS();
///
/// @brief Gets current draw hs
///
/// @author Benjamin
/// @date 28.09.2020
///
/// @returns The current draw hs.
unsigned int getCurrentDrawHS();
///-------------------------------------------------------------------------------------------------
/// @fn unsigned int PAC1720::getVoltageHS();
///
/// @brief Gets voltage hs
///
/// @author Benjamin
/// @date 28.09.2020
///
/// @returns The voltage hs.
unsigned int getVoltageHS();
///-------------------------------------------------------------------------------------------------
/// @fn unsigned int PAC1720::getPowerHS();
///
/// @brief Gets power hs
///
/// @author Benjamin
/// @date 28.09.2020
///
/// @returns The power hs.
unsigned int getPowerHS();
///-------------------------------------------------------------------------------------------------
/// @fn unsigned int PAC1720::getCurrentDrawLS();
///
/// @brief Gets current draw ls
///
/// @author Benjamin
/// @date 28.09.2020
///
/// @returns The current draw ls.
unsigned int getCurrentDrawLS();
///-------------------------------------------------------------------------------------------------
/// @fn unsigned int PAC1720::getVoltageLS();
///
/// @brief Gets voltage ls
///
/// @author Benjamin
/// @date 28.09.2020
///
/// @returns The voltage ls.
unsigned int getVoltageLS();
///-------------------------------------------------------------------------------------------------
/// @fn unsigned int PAC1720::getPowerLS();
///
/// @brief Gets power ls
///
/// @author Benjamin
/// @date 28.09.2020
///
/// @returns The power ls.
unsigned int getPowerLS();
};