Skip to main content

Crate bq25773

Crate bq25773 

Source
Expand description

This is a platform-agnostic Rust driver for the Texas Instruments BQ25773 Battery Charger IC based on the embedded-hal traits.

For further details of the device architecture and operation, please refer to the official Datasheet.

§BQ25773 Rust Device Driver

A #[no_std] platform-agnostic driver for the BQ25773 buck-boost battery charge controller, capable of charging a 2- to 5-cell battery, using the embedded-hal traits.

A higher level API will be built on top of the lower level register accessor using the embedded-batteries traits.

§MSRV

Currently, rust 1.85 and up is supported.

§License

Licensed under the terms of the MIT license.

§Contribution

Unless you explicitly state otherwise, any contribution submitted for inclusion in the work by you shall be licensed under the terms of the MIT license.

License: MIT

Modules§

field_sets
Module containing the generated fieldsets of the registers and commands

Structs§

Bq25773
Device
Root block of the Device driver
DeviceInterface
BQ25773 interface, which takes an async I2C bus

Enums§

AcocLimit
AcovThreshold
AdcAvgCtrl
AdcAvgInit
AdcRateSelect
AdcResolution
BQ25773Error
BQ25773 errors
BatcocThreshold
BatdocVth
ChargeSenseResistorRsr
ChgTmrCtrl
ChgTmrSpeedCtrl
ChrgCycleStat
ChrgSafetyTimerStat
CmpinFuncSelect
ComparatorDeglitchTime
DitherConfig
EnOtgPinSelect
Hidrv1GateDriveStrengthAdjustment
Hidrv2GateDriveStrengthAdjustment
IBatPinSelect
IadptGain
IbatGain
IcritDeglitchTime
IdchgDeglitchTime
IdchgDeglitchTime2
IlAvgClamp
InomDeglitchTime
InputSenseResistorRac
InputSrcStat
Lodrv1GateDriveStrengthAdjustment
Lodrv2GateDriveStrengthAdjustment
MaxDelay
ModePinProgStatus
OverCurrentThresholdQ4Vds
OverCurrentThresholdRac
PhaseAddingTransitionDeglitchTime
PhaseDroppingTransitionDeglitchTime
PkpwrTmax
PkpwrTovldDeg
ProchotClear
ProchotPulseWidth
ProchotStatusOverheat
PsysEnable
PsysGain
PsysOtg
SingleDualTransThreshold
SwitchingFreq
TempRegulationStat
ThermalDeglitchTime
Threshold
VsysMinSoftSlewRate
WatchDogReset
WdtmrAdj