We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d4a04d commit 6df1fa8Copy full SHA for 6df1fa8
src/blocking/dac.rs
@@ -1,6 +1,10 @@
1
-//! Trait for digital to analog conversion
+//! Blocking DAC trait for single channel digital to analog conversion
2
3
-/// Represents a single DAC channel.
+/// A single DAC channel. Word is the type used to represent a single sample, this would typically
4
+/// be u8, u16 or u32.
5
+/// Note that not all bits will always be used. A 12 bit DAC for example will probably use u16 here
6
+/// <DISCUSSION> should we prescribe to use the most significant bits here for compat between word
7
+/// sizes?
8
pub trait DAC<WORD> {
9
/// Error type returned by DAC methods
10
type Error;
0 commit comments