#dac #embedded-hal-driver #no-std

no-std ds4432

Platform-agnostic Rust driver for the Maxim DS4432 Dual-Channel, I2C, 7-Bit Sink/Source Current Digital To Analog (DAC) converter

2 unstable releases

0.2.0 Sep 4, 2024
0.1.0 Aug 25, 2024

#335 in Embedded development

Download history 147/week @ 2024-08-19 29/week @ 2024-08-26 139/week @ 2024-09-02 3/week @ 2024-09-09 36/week @ 2024-09-16 13/week @ 2024-09-23

193 downloads per month

AGPL-3.0-only

24KB
486 lines

ds4432

Crate Docs AGPVv3 licensed

Platform-agnostic Rust driver for the Maxim DS4432 Dual-Channel, I2C, 7-Bit Sink/Source Current Digital To Analog (DAC) converter.

Resources

License

Distributed under the AGPLv3 License. See LICENSE.txt for more information.

Features

  • defmt-03 add support for defmt Formatting of public enums and structs.
  • sync (default) use embedded_hal::i2c::I2c trait to provide a sync driver.
  • async use embedded_hal_async::i2c::I2c trait to provide an async driver. Both sync and async can be enable at the same time, but enabling none is pointless.
  • not-recommended-rfs allow driver to use not recommended Rfs value for microamps convertions

Support

PRs are more than welcome! I don't know how much more needs to be added, but I'm open to ideas.

Feeling generous? Leave me a tip! ⚡️w3irdrobot@vlt.ge.

Think I'm an asshole but still want to tip? Please donate to OpenSats.

Want to tell me how you feel? Hit me up on Nostr.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the AGPLv3 license, shall be licensed as above, without any additional terms or conditions.

Dependencies

~1.5MB
~38K SLoC