logo
Expand description

This crate is an embedded-hal driver library implementation for the Texas Instruments 80501, 70501 and 60501 DACs. It relies on the embedded-hal 1.0.0 traits being implemented in the board hal. See the product page for the datasheet and other notes.

Structs

A 12 bit DAC

A 14 bit DAC

A 16 bit DAC

Enums

The state of the DAC alarm The device default is AlarmStatus::Low

The custom error for this crate

The state of the dac gain. The device default is GainState::TwoX

The state of the DAC internal Reference. The device default is InternRefState::Enable

The state of the dac output. The device default is PowerState::On

The state of the DAC reference divider which applies to both the internal and external reference. The device default is RefDivState::OneX