bq24195-i2c

Crates.iobq24195-i2c
lib.rsbq24195-i2c
version0.1.2
sourcesrc
created_at2020-04-04 14:47:19.732506
updated_at2020-04-04 14:51:32.11515
descriptionI2C driver for Texas Instruments BQ24195 Single Cell Charger
homepage
repositoryhttps://github.com/sameer/bq24195-i2c
max_upload_size
id226284
size41,836
Sameer Puri (sameer)

documentation

https://docs.rs/bq24195-i2c

README

BQ24195 i2c driver

Latest version Documentation License

The documentation for this library should cover everything you need to know about the chip and its i2c registers.

Usage

A usage example is given in the examples folder.

Requirements

  • Embedded Hardware Abstraction Layer support crate for your device (i.e. atsamd for SAM family devices)
  • A bq24195 chip connected over I2C

Building and Flashing

Arduino MKR Vidor 4000

This should also work on other SAMD21 boards.

RUSTFLAGS='-C link-arg=-Tlink.x' cargo build --release --target thumbv6m-none-eabi --example arduino_mkrvidor4000
arm-none-eabi-objcopy -O binary target/thumbv6m-none-eabi/release/usbblaster-rs target/usbblaster-rs.bin
# Manual step: push reset button twice in quick succession to enter flash mode
bossac -i -d -U true -i -e -w -v target/usbblaster-rs.bin -R

Reference documents

Commit count: 20

cargo fmt