Struct mcp4725_rs::MCP4725

source ·
pub struct MCP4725<I2C, D> { /* private fields */ }
Expand description

Driver for the MCP4725 DAC

Implementations§

Initialize the MCP4725 driver.

write dac register, fast mode

write dac register

write dac register and eeprom

read DAC value and return as 16-bit value

set DAC output to specified value using fast mode. Value range is [0-4095], which corresponds to [0-VDD] voltage

get current value of the DAC output

performs internal reset, after this event, the device uploads the contents of the EEPROM into the DAC register

Trait Implementations§

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

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.