45 const char START_MESSAGE[] PROGMEM =
"\n============ START: [BQ28Z610 Driver] ============\nLicense: MIT License\nCopyright (c) 2024 Oleksii Sylichenko\n==================================================\n";
439 static const byte Tk = 12;
443 static const byte Ta = 14;
474 static PGM_P PERCENT() {
477 static PGM_P CELSIUS() {
12.2 0x3E, 0x3F AltManufacturerAccess() Commands
Definition: globals.h:206
static const word DA_STATUS_2
Definition: globals.h:291
static const word SEAL_DEVICE
Definition: globals.h:255
static const word PF_STATUS
Definition: globals.h:267
static const word GAUGING_STATUS
Definition: globals.h:279
static const word PF_ALERT
Definition: globals.h:263
static const word SAFETY_ALERT
Definition: globals.h:259
static const word IT_STATUS_1
Definition: globals.h:295
static const word PERMANENT_FAIL_DATA_RESET
Definition: globals.h:251
static const word CHARGING_STATUS
Definition: globals.h:275
static const word DEVICE_TYPE
Definition: globals.h:211
static const word MANUFACTURER_STATUS
Definition: globals.h:283
static const word CHG_FET
Definition: globals.h:231
static const word FET_CONTROL
Definition: globals.h:243
static const word GAUGE_EN
Definition: globals.h:239
static const word CHEMICAL_ID
Definition: globals.h:223
static const word FIRMWARE_VERSION
Definition: globals.h:215
static const word DSG_FET
Definition: globals.h:235
static const word LIFETIME_DATA_RESET
Definition: globals.h:247
static const word DEVICE_RESET
Definition: globals.h:227
static const word OPERATION_STATUS
Definition: globals.h:271
static const word HARDWARE_VERSION
Definition: globals.h:219
Block Protocol contants.
Definition: globals.h:104
static const int PAYLOAD_MAX_SIZE
The maximum number of data bytes that can be obtained from the device in a single function call.
Definition: globals.h:107
static const int ADDR_SIZE
Number of bytes for address, 2.
Definition: globals.h:109
static const int LENGTH_SIZE
Number of bytes for Length, 1.
Definition: globals.h:111
static const int LENGTH_INDEX
The index of the byte that stores the total length of the response.
Definition: globals.h:117
static const int CHECKSUM_SIZE
Number of bytes for Checksum, 1.
Definition: globals.h:110
static const int RESPONSE_MAX_SIZE
Maximum size of the full response in bytes.
Definition: globals.h:119
static const int SERVICE_SIZE
Number of the service bytes (address, checksum, length), 4.
Definition: globals.h:113
static const int REQUEST_MAX_SIZE
The maximum number of bytes that can be obtained from the device in a single request.
Definition: globals.h:106
static const int CHECKSUM_AND_LENGTH_SIZE
Number of bytes for the Checksum and Length, 2.
Definition: globals.h:112
static const int DATA_INDEX
Index of the byte from which data starts.
Definition: globals.h:115
static const int CHECKSUM_INDEX
The index of the byte that stores the checksum of the response.
Definition: globals.h:116
12.2.37 AltManufacturerAccess() 0x0071 DAStatus1()
Definition: globals.h:311
static const byte CELL_POWER_1
Definition: globals.h:340
static const byte BAT_VOLTAGE
Definition: globals.h:324
static const byte PACK_VOLTAGE
Definition: globals.h:328
static const byte CELL_VOLTAGE_1
Definition: globals.h:316
static const byte POWER
Definition: globals.h:348
static const byte CELL_CURRENT_2
Definition: globals.h:336
static const byte CELL_POWER_2
Definition: globals.h:344
static const byte CELL_VOLTAGE_2
Definition: globals.h:320
static const byte CELL_CURRENT_1
Definition: globals.h:332
static const byte AVG_POWER
Definition: globals.h:352
Chapter 9 Device Security.
Definition: globals.h:78
static const u32 DEFAULT_FULL_ACCESS_KEY
BQ28Z610 default Full Access key.
Definition: globals.h:93
static const u32 DEFAULT_UNSEAL_KEY
BQ28Z610 default Unseal key.
Definition: globals.h:83
12.2.40 AltManufacturerAccess() 0x0074 ITStatus2()
Definition: globals.h:367
static const byte DODEOC_1
Definition: globals.h:397
static const byte DOD0_1
Definition: globals.h:372
static const byte DOD0_Passed_Q
Definition: globals.h:382
static const byte DODEOC_2
Definition: globals.h:402
static const byte DOD0_2
Definition: globals.h:377
static const byte DOD0_Passed_Energy
Definition: globals.h:387
static const byte DOD0_Time
Definition: globals.h:392
12.2.41 AltManufacturerAccess() 0x0075 ITStatus3()
Definition: globals.h:410
static const byte QMaxPassedQ
Definition: globals.h:431
static const byte QMaxDOD0_2
Definition: globals.h:427
static const byte RAW_DOD0_2
Definition: globals.h:451
static const byte Ta
Definition: globals.h:443
static const byte QMaxDOD0_1
Definition: globals.h:423
static const byte QMaxTime
Definition: globals.h:435
static const byte QMax_2
Definition: globals.h:419
static const byte Tk
Definition: globals.h:439
static const byte RAW_DOD0_1
Definition: globals.h:447
static const byte QMax_1
Definition: globals.h:415
Constants for securityMode() result.
Definition: globals.h:56
static const byte UNSEALED
Definition: globals.h:65
static const byte FULL_ACCESS
Definition: globals.h:61
static const byte SEALED
Definition: globals.h:69
12.1 Standard Data Commands
Definition: globals.h:129
static const byte CURRENT
Definition: globals.h:150
static const byte TEMPERATURE
Definition: globals.h:138
static const byte ALT_MANUFACTURER_ACCESS
Definition: globals.h:190
static const byte MANUFACTURER_ACCESS_CONTROL
Definition: globals.h:134
static const byte MAC_DATA
Definition: globals.h:194
static const byte VOLTAGE
Definition: globals.h:142
static const byte CHARGING_CURRENT
Definition: globals.h:182
static const byte AVERAGE_CURRENT
Definition: globals.h:162
static const byte REMAINING_CAPACITY
Definition: globals.h:154
static const byte RELATIVE_STATE_OF_CHARGE
Definition: globals.h:170
static const byte BATTERY_STATUS
Definition: globals.h:146
static const byte CYCLE_COUNT
Definition: globals.h:166
static const byte CHARGING_VOLTAGE
Definition: globals.h:178
static const byte MAC_DATA_CHECKSUM
Definition: globals.h:200
static const byte DESIGN_CAPACITY
Definition: globals.h:186
static const byte FULL_CHARGE_CAPACITY
Definition: globals.h:158
static const byte STATE_OF_HEALTH
Definition: globals.h:174
Units of measurement to print to serial port.
Definition: globals.h:457
bool DEBUG
Print extended info.
Definition: globals.h:43
bool SILENCE
Do not print data into Serial from the functions.
const float DECIPART_DECIMAL
Number of decimal places.
Definition: globals.h:489
const int DEVICE_ADDR
Standard BQ28Z610 Device I2C Address.
Definition: globals.h:51
const float DECIPART
1/10 part
Definition: globals.h:485
const byte PERMIL_DECIMAL
Number of decimal places.
Definition: globals.h:498
const float PERMIL
1/1000 part
Definition: globals.h:494