# `ds4432` [![Crate][crate-image]][crate-link] [![Docs][docs-image]][docs-link] ![AGPVv3 licensed][license-image] Platform-agnostic Rust driver for the Maxim DS4432 Dual-Channel, I2C, 7-Bit Sink/Source Current Digital To Analog (DAC) converter. ## Resources - [DS4432 product page][product-page] - [DS4432 datasheet][datasheet] ## License Distributed under the AGPLv3 License. See [LICENSE.txt](./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](https://opensats.org/). Want to tell me how you feel? Hit me up [on Nostr](https://njump.me/rob@w3ird.tech). ### 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. [crate-image]: https://img.shields.io/crates/v/ds4432.svg [crate-link]: https://crates.io/crates/ds4432 [docs-image]: https://docs.rs/ds4432/badge.svg [docs-link]: https://docs.rs/ds4432/ [license-image]: https://img.shields.io/badge/license-AGPLv3-blue.svg [product-page]: https://www.digikey.com/en/products/detail/analog-devices-inc-maxim-integrated/DS4432U-T-R/2062898 [datasheet]: https://www.analog.com/media/en/technical-documentation/data-sheets/DS4432.pdf