2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
26#include "../types/evmu_peripheral.h"
29
30
31
32#define EVMU_BATTERY_TYPE (GBL_TYPEID
(EvmuBattery))
33#define EVMU_BATTERY(self) (GBL_CAST
(EvmuBattery, self))
34#define EVMU_BATTERY_CLASS(klass) (GBL_CLASS_CAST
(EvmuBattery, klass))
35#define EVMU_BATTERY_GET_CLASS(self) (GBL_CLASSOF
(EvmuBattery, self))
38#define EVMU_BATTERY_NAME "battery"
40#define GBL_SELF_TYPE EvmuBattery
45
46
47
48
49
50
51
52
53GBL_CLASS_DERIVE_EMPTY(EvmuBattery, EvmuPeripheral)
56
57
58
59
60
61
62
63
64
65
69GBL_PROPERTIES(EvmuBattery,
70 (lowAlarm, GBL_GENERIC, (READ, WRITE), GBL_BOOL_TYPE),
71 (monitorEnabled, GBL_GENERIC, (READ, WRITE), GBL_BOOL_TYPE)
79
80
81
82
90
91
92
93
#define EVMU_EXPORT
Define used for adding attributes to export public symbols.
GblType EvmuBattery_type(void)
Returns the GblType UUID associated with EvmuBattery.
GblInstance structure for the battery peripheral.
void EvmuBattery_setMonitorEnabled(EvmuBattery *pSelf, GblBool enabled)
Enables or disables the system BIOS low battery monitor, based on the enabled value.
GblBool EvmuBattery_lowAlarm(const EvmuBattery *pSelf)
Returns GBL_TRUE if the low voltage battery detection signal is asserted.
void EvmuBattery_setLowAlarm(EvmuBattery *pSelf, GblBool enabled)
Sets the low battery detection circuit alarm to the enabled value.
GblBool EvmuBattery_monitorEnabled(const EvmuBattery *pSelf)
Returns GBL_TRUE if the system BIOS low battery monitor is enabled.