We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e6ab5a commit 8d4a04dCopy full SHA for 8d4a04d
src/blocking/dac.rs
@@ -0,0 +1,10 @@
1
+//! Trait for digital to analog conversion
2
+
3
+/// Represents a single DAC channel.
4
+pub trait DAC<WORD> {
5
+ /// Error type returned by DAC methods
6
+ type Error;
7
8
+ /// Set the output of the DAC
9
+ fn try_set_output(&mut self, value: WORD) -> Result<(), Self::Error>;
10
+}
src/blocking/mod.rs
@@ -4,6 +4,7 @@
//! traits. To save boilerplate when that's the case a `Default` marker trait may be provided.
//! Implementing that marker trait will opt in your type into a blanket implementation.
+pub mod dac;
pub mod delay;
pub mod i2c;
pub mod rng;
0 commit comments