pub struct Dac<SPI, SYNC> { /* private fields */ }
Expand description

DAC8568

Implementations

Initialize a new instance of dac8568

Consume the dac and return the underlying SPI and GPIO pins used by it

Sets the output signal of the DAC to be inverted or non-inverted (default) Useful if the hardware engineer has designed an inverting gain stage after the DAC output

Set the specified value to the given channel. This will update the DAC to output the desired voltage

Configure the DAC to use its internal reference mode of 2.5v rather than using an external voltage reference

Configure the DAC to use its external reference mode rather than using the internal reference

Perform a software reset, clearing out all registers 8.2.10 Software Reset Function The DAC7568, DAC8168, and DAC8568 contain a software reset feature. If the software reset feature is executed, all registers inside the device are reset to default settings; that is, all DAC channels are reset to the power-on reset code (power on reset to zero scale for grades A and C; power on reset to midscale for grades B and D).

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.