Crate dacx0501

Source
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§

Dac60501
A 12 bit DAC
Dac70501
A 14 bit DAC
Dac80501
A 16 bit DAC

Enums§

AlarmStatus
The state of the DAC alarm The device default is AlarmStatus::Low
DacError
The custom error for this crate
GainState
The state of the dac gain. The device default is GainState::TwoX
InternRefState
The state of the DAC internal Reference. The device default is InternRefState::Enable
PowerState
The state of the dac output. The device default is PowerState::On
RefDivState
The state of the DAC reference divider which applies to both the internal and external reference. The device default is RefDivState::OneX