Struct ad5668::AD5668[][src]

pub struct AD5668<SPI, CS> { /* fields omitted */ }
Expand description

AD5668 DAC driver. Wraps an I2C port to send commands to an AD5668

Implementations

Construct a new AD5668 driver

Write input register for the dac at address with the value, does not update dac register yet

Update dac register for the dac at address TODO: Check if the data is written too or if this just updates data written earlier to the dac

Write to a single input register, then update all dac channels. This can be used as the last command when updating multiple DACs. First stage values for all DACs then update them simultaniously by performing the last write using this command

Write to input register and then update the dac register in one command.

Set the power to the dacs. Use power_mode to set the power down mode, channel states can be used to power up the individual dacs by setting the corresponding bits.

Enable the internal reference

Disable the internal reference

Reset the DAC

Destroy the driver and return the wrapped SPI driver to be re-used

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.