ad5680: fix MAX_VALUE

This commit is contained in:
Astro 2020-05-13 23:19:20 +02:00
parent 9ecf705420
commit 53930497e4
1 changed files with 1 additions and 1 deletions

View File

@ -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> {