forked from M-Labs/thermostat
ad5680: fix MAX_VALUE
This commit is contained in:
parent
9ecf705420
commit
53930497e4
@ -15,7 +15,7 @@ pub const SPI_MODE: spi::Mode = spi::Mode {
|
|||||||
/// 30 MHz
|
/// 30 MHz
|
||||||
pub const SPI_CLOCK: MegaHertz = MegaHertz(30);
|
pub const SPI_CLOCK: MegaHertz = MegaHertz(30);
|
||||||
|
|
||||||
pub const MAX_VALUE: u32 = 0x20000;
|
pub const MAX_VALUE: u32 = 0x3FFFF;
|
||||||
|
|
||||||
/// [AD5680](https://www.analog.com/media/en/technical-documentation/data-sheets/AD5680.pdf) DAC
|
/// [AD5680](https://www.analog.com/media/en/technical-documentation/data-sheets/AD5680.pdf) DAC
|
||||||
pub struct Dac<SPI: Transfer<u8>, S: OutputPin> {
|
pub struct Dac<SPI: Transfer<u8>, S: OutputPin> {
|
||||||
|
Loading…
Reference in New Issue
Block a user