BQ28Z610 Driver
BQ28Z610 Battery fuel gauge device driver for Arduino
alt_manufacturer_access.h
Go to the documentation of this file.
1 
53 #pragma once
54 
55 #include "globals.h"
56 #include "utils.h"
57 
69 bool AltManufacturerAccess(const word MACSubcmd, byte *retval, byte *len);
70 
76 void AltManufacturerAccess(const word MACSubcmd);
77 
90 word DeviceType();
91 
116 void FirmwareVersion();
117 
125 word HardwareVersion();
126 
131 word ChemicalID();
132 
140 void DeviceReset();
141 
157 void ChargeFET();
158 
172 void DischargeFET();
173 
181 void Gauging();
182 
195 void FETControl();
196 
213 void LifetimeDataReset();
214 
223 
232 void SealDevice();
233 
238 u32 SafetyAlert();
239 
245 u32 SafetyStatus();
246 
251 u32 PFAlert();
252 
258 u32 PFStatus();
259 
265 u32 OperationStatus();
266 
272 word ChargingStatus();
273 
279 u32 GaugingStatus();
280 
286 word ManufacturingStatus();
287 
311 void DAStatus1(byte *retval);
312 
318 void DAStatus1();
319 
344 void ITStatus1(byte *retval);
345 
351 void ITStatus1();
352 
401 void ITStatus2(byte *retval);
402 
408 void ITStatus2();
409 
427 void ITStatus3(byte *retval);
428 
434 void ITStatus3();
void FETControl()
12.2.16 AltManufacturerAccess() 0x0022 FET Control
Definition: alt_manufacturer_access.cpp:307
void DeviceReset()
12.2.12 AltManufacturerAccess() 0x0012 Device Reset
Definition: alt_manufacturer_access.cpp:236
void ITStatus1(byte *retval)
12.2.39 AltManufacturerAccess() 0x0073 ITStatus1
Definition: alt_manufacturer_access.cpp:667
word ChargingStatus()
12.2.31 AltManufacturerAccess() 0x0055 ChargingStatus
Definition: alt_manufacturer_access.cpp:480
void DischargeFET()
12.2.14 AltManufacturerAccess() 0x0020 DSG FET
Definition: alt_manufacturer_access.cpp:276
word HardwareVersion()
12.2.3 AltManufacturerAccess() 0x0003 Hardware Version.
Definition: alt_manufacturer_access.cpp:195
void ChargeFET()
12.2.13 AltManufacturerAccess() 0x001F CHG FET
Definition: alt_manufacturer_access.cpp:257
u32 PFAlert()
12.2.28 AltManufacturerAccess() 0x0052 PFAlert
Definition: alt_manufacturer_access.cpp:400
void SealDevice()
12.2.22 AltManufacturerAccess() 0x0030 Seal Device
Definition: alt_manufacturer_access.cpp:355
void Gauging()
12.2.15 AltManufacturerAccess() 0x0021 Gauging
Definition: alt_manufacturer_access.cpp:289
bool AltManufacturerAccess(const word MACSubcmd, byte *retval, byte *len)
12.2 0x3E, 0x3F AltManufacturerAccess
Definition: alt_manufacturer_access.cpp:66
void FirmwareVersion()
12.2.2 AltManufacturerAccess() 0x0002 Firmware Version.
Definition: alt_manufacturer_access.cpp:156
u32 OperationStatus()
12.2.30 AltManufacturerAccess() 0x0054 OperationStatus
Definition: alt_manufacturer_access.cpp:436
word ChemicalID()
12.2.6 AltManufacturerAccess() 0x0006 Chemical ID.
Definition: alt_manufacturer_access.cpp:214
word DeviceType()
12.2.1 AltManufacturerAccess() 0x0001 Device Type
Definition: alt_manufacturer_access.cpp:117
word ManufacturingStatus()
12.2.33 AltManufacturerAccess() 0x0057 ManufacturingStatus
Definition: alt_manufacturer_access.cpp:552
u32 PFStatus()
12.2.29 AltManufacturerAccess() 0x0053 PFStatus
Definition: alt_manufacturer_access.cpp:418
u32 SafetyStatus()
12.2.27 AltManufacturerAccess() 0x0051 SafetyStatus
Definition: alt_manufacturer_access.cpp:383
void LifetimeDataReset()
12.2.19 AltManufacturerAccess() 0x0028 Lifetime Data Reset
Definition: alt_manufacturer_access.cpp:329
void ITStatus3(byte *retval)
12.2.41 AltManufacturerAccess() 0x0075 ITStatus3
Definition: alt_manufacturer_access.cpp:862
u32 GaugingStatus()
12.2.32 AltManufacturerAccess() 0x0056 GaugingStatus
Definition: alt_manufacturer_access.cpp:514
void PermanentFailureDataReset()
12.2.20 AltManufacturerAccess() 0x0029 Permanent Fail Data Reset
Definition: alt_manufacturer_access.cpp:341
void ITStatus2(byte *retval)
12.2.40 AltManufacturerAccess() 0x0074 ITStatus2
Definition: alt_manufacturer_access.cpp:773
void DAStatus1(byte *retval)
12.2.37 AltManufacturerAccess() 0x0071 DAStatus1
Definition: alt_manufacturer_access.cpp:594
u32 SafetyAlert()
12.2.26 AltManufacturerAccess() 0x0050 SafetyAlert
Definition: alt_manufacturer_access.cpp:365
Global constants.
Util functions headers.