pub struct MAX5825 { /* private fields */ }Implementations§
Source§impl MAX5825
impl MAX5825
pub fn new(bus: u8, address: u16) -> Self
pub fn configure(&self) -> Result<(), LinuxI2CError>
pub fn reset_dac(&self) -> Result<(), LinuxI2CError>
pub fn read_device_info(&self) -> Result<(u8, u8, u8, u8, u8), LinuxI2CError>
pub fn read_coden(&self, channel: u8) -> Result<u16, LinuxI2CError>
pub fn read_dacn(&self, channel: u8) -> Result<u16, LinuxI2CError>
pub fn coden_loadn(&self, channel: u8, adc: u16) -> Result<(), LinuxI2CError>
Auto Trait Implementations§
impl Freeze for MAX5825
impl RefUnwindSafe for MAX5825
impl Send for MAX5825
impl Sync for MAX5825
impl Unpin for MAX5825
impl UnsafeUnpin for MAX5825
impl UnwindSafe for MAX5825
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more