BQ28Z610 Driver
BQ28Z610 Battery fuel gauge device driver for Arduino
Data Structures | Variables
globals.h File Reference

Global constants. More...

#include <Arduino.h>
#include "flags.h"

Go to the source code of this file.

Data Structures

class  SecurityMode
 Constants for securityMode() result. More...
 
class  DeviceSecurity
 Chapter 9 Device Security. More...
 
class  BlockProtocol
 Block Protocol contants. More...
 
class  StdCommands
 12.1 Standard Data Commands More...
 
class  AltManufacturerCommands
 12.2 0x3E, 0x3F AltManufacturerAccess() Commands More...
 
class  DA_STATUS_1
 12.2.37 AltManufacturerAccess() 0x0071 DAStatus1() More...
 
class  IT_STATUS_2
 12.2.40 AltManufacturerAccess() 0x0074 ITStatus2() More...
 
class  IT_STATUS_3
 12.2.41 AltManufacturerAccess() 0x0075 ITStatus3() More...
 
class  Units
 Units of measurement to print to serial port. More...
 

Variables

bool SILENCE
 Do not print data into Serial from the functions.
 
bool DEBUG
 Print extended info.
 
const char START_MESSAGE[] PROGMEM = "\n============ START: [BQ28Z610 Driver] ============\nLicense: MIT License\nCopyright (c) 2024 Oleksii Sylichenko\n==================================================\n"
 
const int DEVICE_ADDR = 0x55
 Standard BQ28Z610 Device I2C Address. More...
 
const float DECIPART = 0.1
 1/10 part
 
const float DECIPART_DECIMAL = 1
 Number of decimal places.
 
const float PERMIL = 0.001
 1/1000 part
 
const byte PERMIL_DECIMAL = 3
 Number of decimal places.
 

Detailed Description

Global constants.

MIT License

Copyright (c) 2024 Oleksii Sylichenko

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Variable Documentation

◆ DEVICE_ADDR

const int DEVICE_ADDR = 0x55

Standard BQ28Z610 Device I2C Address.

See also
12.1 Standard Data Commands