Lines Matching +full:battery +full:- +full:current
4 * SPDX-License-Identifier: Apache-2.0
15 * @brief Battery level status structure definition.
23 * - bit 0: Identifier Present
24 * - Indicates whether the identifier field is present.
25 * - bit 1: Battery Level Present
26 * - Indicates whether the battery level field is present.
27 * - bit 2: Additional Status Present
28 * - Indicates whether the additional status field is present.
29 * - bit 3–7: RFU (Reserved for Future Use)
30 * - Reserved bits for future use; should be set to zero.
38 * - bit 0: Battery Present
39 * - 0 = No
40 * - 1 = Yes
41 * - bit 1–2: Wired External Power Source Connected
42 * - 0 = No
43 * - 1 = Yes
44 * - 2 = Unknown
45 * - 3 = RFU
46 * - bit 3–4: Wireless External Power Source Connected
47 * - 0 = No
48 * - 1 = Yes
49 * - 2 = Unknown
50 * - 3 = RFU
51 * - bit 5–6: Battery Charge State
52 * - 0 = Unknown
53 * - 1 = Charging
54 * - 2 = Discharging: Active
55 * - 3 = Discharging: Inactive
56 * - bit 7–8: Battery Charge Level
57 * - 0 = Unknown
58 * - 1 = Good
59 * - 2 = Low
60 * - 3 = Critical
61 * - bit 9–11: Charging Type
62 * - 0 = Unknown or Not Charging
63 * - 1 = Constant Current
64 * - 2 = Constant Voltage
65 * - 3 = Trickle
66 * - 4 = Float
67 * - 5–7 = RFU
68 * - bit 12–14: Charging Fault Reason
69 * - Bit 12: Battery
70 * - Bit 13: External Power source
71 * - Bit 14: Other
72 * - bit 15: RFU
77 /** Identifier for the battery, range 0x0000 to 0xFFFF.*/
82 /** Current battery level */
92 * - bit 0–1: Service Required
93 * - 0 = False
94 * - 1 = True
95 * - 2 = Unknown
96 * - 3 = RFU
97 * - bit 2: Battery Fault
98 * - 0 = False or Unknown
99 * - 1 = Yes
100 * - bit 3–7: RFU
109 * @brief Initialize the Battery Level Status Module.
115 * @brief Read the Battery Critical Status characteristic.
119 * @param attr Pointer to the GATT attribute of Battery Critical Status characteristic.
133 * @param attr Pointer to the GATT attribute of battery critical status char.
140 * @brief Set the battery level characteristic value.
142 * @param battery_level The new battery level value in percent (0-100).
147 * @brief Set the battery critical state flag.
149 * @param critical_state The battery critical state to set (true for critical, false otherwise).
161 * @brief Read the Battery Level Status characteristic.
165 * @param attr Pointer to the GATT attribute representing the Battery Level Status characteristic.