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))
35#define EVMU_BATTERY_GET(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
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.
#define GBL_PROPERTIES(object,...)
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.
#define GBL_CLASS_CAST(cType, klass)
#define GBL_CLASSOF(cType, self)
#define GBL_CAST(cType, self)