Struct stabilizer::hardware::dac::DacCode
source · pub struct DacCode(pub u16);
Expand description
Custom type for referencing DAC output codes. The internal integer is the raw code written to the DAC output register.
Tuple Fields§
§0: u16
Implementations§
source§impl DacCode
impl DacCode
pub const FULL_SCALE: f32 = 10.2400007f32
pub const VOLT_PER_LSB: f32 = 3.12500022E-4f32
pub const LSB_PER_VOLT: f32 = 3199.99976f32
Trait Implementations§
impl Copy for DacCode
Auto Trait Implementations§
impl Freeze for DacCode
impl RefUnwindSafe for DacCode
impl Send for DacCode
impl Sync for DacCode
impl Unpin for DacCode
impl UnwindSafe for DacCode
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more