Lamp-Da 0.1
A compact lantern project
Loading...
Searching...
No Matches
Classes | Typedefs | Functions | Variables
BQ76905.h File Reference

Go to the source code of this file.

Classes

class  bq76905::BQ76905
 
struct  bq76905::BQ76905::IBaseReadRegister
 
struct  bq76905::BQ76905::ISubcommandRegister
 
struct  bq76905::BQ76905::ISubcommandReadRegister
 
struct  bq76905::BQ76905::ISubCommandManyRegisters
 
struct  bq76905::BQ76905::Regt
 
struct  bq76905::BQ76905::Regt::SafetyAlertAt
 
struct  bq76905::BQ76905::Regt::SafetyAlertBt
 
struct  bq76905::BQ76905::Regt::BatteryStatust
 
struct  bq76905::BQ76905::Regt::AlarmStatust
 
struct  bq76905::BQ76905::Regt::AlarmRawStatust
 
struct  bq76905::BQ76905::Regt::AlarmEnablet
 
struct  bq76905::BQ76905::Regt::FetControlt
 
struct  bq76905::BQ76905::Regt::RegoutControlt
 
struct  bq76905::BQ76905::Regt::DsgFetDriverPwmControlt
 
struct  bq76905::BQ76905::Regt::ChFetDriverPwmControlt
 
struct  bq76905::BQ76905::Regt::Cell1Voltaget
 
struct  bq76905::BQ76905::Regt::Cell2Voltaget
 
struct  bq76905::BQ76905::Regt::Cell3Voltaget
 
struct  bq76905::BQ76905::Regt::Cell4Voltaget
 
struct  bq76905::BQ76905::Regt::Cell5Voltaget
 
struct  bq76905::BQ76905::Regt::Reg18Voltaget
 
struct  bq76905::BQ76905::Regt::VSSVoltaget
 
struct  bq76905::BQ76905::Regt::StackVoltaget
 
struct  bq76905::BQ76905::Regt::IntTemperatureVoltaget
 
struct  bq76905::BQ76905::Regt::TsMeasurmentVoltaget
 
struct  bq76905::BQ76905::Regt::DeviceNumbert
 
struct  bq76905::BQ76905::Regt::FirmwareVersiont
 
struct  bq76905::BQ76905::Regt::HardwareVersiont
 
struct  bq76905::BQ76905::Regt::PassQt
 
struct  bq76905::BQ76905::Regt::ResetPassQt
 
struct  bq76905::BQ76905::Regt::ExitDeepSleept
 
struct  bq76905::BQ76905::Regt::DeepSleept
 
struct  bq76905::BQ76905::Regt::Resett
 
struct  bq76905::BQ76905::Regt::FetEnablet
 
struct  bq76905::BQ76905::Regt::Sealt
 
struct  bq76905::BQ76905::Regt::SecurityKeyst
 
struct  bq76905::BQ76905::Regt::CbActiveCellst
 
struct  bq76905::BQ76905::Regt::SetCfgUpdatet
 
struct  bq76905::BQ76905::Regt::ExitCfgUpdatet
 
struct  bq76905::BQ76905::Regt::ProgTimert
 
struct  bq76905::BQ76905::Regt::SleepEnablet
 
struct  bq76905::BQ76905::Regt::SleepDisablet
 
struct  bq76905::BQ76905::Regt::ProtRecoveryt
 
struct  bq76905::BQ76905::Regt::SettingConfiguration_DAt
 
struct  bq76905::BQ76905::Regt::ConfigurateVcellt
 
struct  bq76905::BQ76905::Regt::TsOffsett
 

Typedefs

using bq76905::byte = uint8_t
 

Functions

uint8_t bq76905::checksum (uint8_t lenght, uint8_t *data)
 

Variables

constexpr uint8_t bq76905::i2cObjectIndex = 0
 
constexpr bool bq76905::usesStopBit = true
 
constexpr uint16_t bq76905::DEVICE_NUMBER = 0x7605
 
constexpr uint8_t bq76905::SAFETY_ALERT_A_ADDR = 0x02
 
constexpr uint8_t bq76905::SAFETY_ALERT_B_ADDR = 0x04
 
constexpr uint8_t bq76905::BATTERY_STATUS_ADDR = 0x12
 
constexpr uint8_t bq76905::CELL_1_VOLTAGE_ADDR = 0x14
 
constexpr uint8_t bq76905::CELL_2_VOLTAGE_ADDR = 0x16
 
constexpr uint8_t bq76905::CELL_3_VOLTAGE_ADDR = 0x18
 
constexpr uint8_t bq76905::CELL_4_VOLTAGE_ADDR = 0x1A
 
constexpr uint8_t bq76905::CELL_5_VOLTAGE_ADDR = 0x1C
 
constexpr uint8_t bq76905::REG_18_VOLTAGE_ADDR = 0x22
 
constexpr uint8_t bq76905::VSS_VOLTAGE_ADDR = 0x24
 
constexpr uint8_t bq76905::STACK_VOLTAGE_ADDR = 0x26
 
constexpr uint8_t bq76905::INT_TEMPERATURE_ADDR = 0x28
 
constexpr uint8_t bq76905::TS_MEASURMENT_ADDR = 0x2A
 
constexpr uint8_t bq76905::RAW_CURRENT_ADDR = 0x36
 
constexpr uint8_t bq76905::CURRENT_ADDR = 0x3A
 
constexpr uint8_t bq76905::CC1_CURRENT_ADDR = 0x3C
 
constexpr uint8_t bq76905::ALARM_STATUS_ADDR = 0x62
 
constexpr uint8_t bq76905::ALARM_RAW_STATUS_ADDR = 0x64
 
constexpr uint8_t bq76905::ALARM_ENABLE_ADDR = 0x66
 
constexpr uint8_t bq76905::FET_CONTROL_ADDR = 0x68
 
constexpr uint8_t bq76905::REGOUT_CONTROL_ADDR = 0x69
 
constexpr uint8_t bq76905::DSG_FET_DRIVER_PWM_CONTROL_ADDR = 0x6A
 
constexpr uint8_t bq76905::CHG_FET_DRIVER_PWM_CONTROL_ADDR = 0x6C
 
constexpr uint8_t bq76905::SUBCOMMAND_ADDR = 0x3E
 
constexpr uint8_t bq76905::SUBCOMMAND_DATA_ADDR = 0x40
 
constexpr uint8_t bq76905::SUBCOMMAND_DATA_CHECKSUM_ADDR = 0x60
 
constexpr uint16_t bq76905::SUBCOMMAND_DEVICE_NUMBER_ADDR = 0x0001
 
constexpr uint16_t bq76905::SUBCOMMAND_FW_VERSION_ADDR = 0x0002
 
constexpr uint16_t bq76905::SUBCOMMAND_HW_VERSION_ADDR = 0x0003
 
constexpr uint16_t bq76905::SUBCOMMAND_PASSQ_ADDR = 0x0003
 
constexpr uint16_t bq76905::SUBCOMMAND_RESET_PASSQ_ADDR = 0x0005
 
constexpr uint16_t bq76905::SUBCOMMAND_EXIT_DEEPSLEEP_ADDR = 0x000E
 
constexpr uint16_t bq76905::SUBCOMMAND_DEEPSLEEP_ADDR = 0x000F
 
constexpr uint16_t bq76905::SUBCOMMAND_SHUTDOWN_ADDR = 0x0010
 
constexpr uint16_t bq76905::SUBCOMMAND_RESET_ADDR = 0x0012
 
constexpr uint16_t bq76905::SUBCOMMAND_FET_ENABLE_ADDR = 0x0022
 
constexpr uint16_t bq76905::SUBCOMMAND_SEAL_ADDR = 0x0030
 
constexpr uint16_t bq76905::SUBCOMMAND_SECURITY_KEYS_ADDR = 0x0035
 
constexpr uint16_t bq76905::SUBCOMMAND_CB_ACTIVE_CELLS_ADDR = 0x0083
 
constexpr uint16_t bq76905::SUBCOMMAND_SET_CFGUPDATE_ADDR = 0x0090
 
constexpr uint16_t bq76905::SUBCOMMAND_EXIT_CFGUPDATE_ADDR = 0x0092
 
constexpr uint16_t bq76905::SUBCOMMAND_PROG_TIMER_ADDR = 0x0094
 
constexpr uint16_t bq76905::SUBCOMMAND_SLEEP_ENABLE_ADDR = 0x0099
 
constexpr uint16_t bq76905::SUBCOMMAND_SLEEP_DISABLE_ADDR = 0x009A
 
constexpr uint16_t bq76905::SUBCOMMAND_PROT_RECOVERY_ADDR = 0x009B
 
constexpr uint16_t bq76905::SUBCOMMAND_CONFIGURATION_DA_ADDR = 0x9019
 
constexpr uint16_t bq76905::SUBCOMMAND_CONFIGURATION_VCELL_MODE_ADDR = 0x901B
 
constexpr uint16_t bq76905::SUBCOMMAND_CONFIGURATION_TS_OFFSET_ADDR = 0x900E
 

Detailed Description

Author
Baptiste Hudyma

Library for basic interfacing with BQ76905 battery balancer IC from TI