Crate mcp47x6

source ·
Expand description
let mut dac = MCP4726::new(i2c, 0b_110_0111u8).unwrap();
dac.set_volatile_fast(PowerState::On, 0x0fff);
    Transaction::read(0b_110_0111, vec![0b1100_0000, 0xff, 0xf0, 0b1100_0000, 0xff, 0xf0]),
    Transaction::write(0b_110_0111, vec![0b0110_0110, 0x00, 0x00]),
]);
assert_eq!(status.nv_output(), 0x_fff);
assert_eq!(status.nv_power_state(), PowerState::On);

Structs

Enums