pub struct MAX5815 { /* private fields */ }
Implementations§
Source§impl MAX5815
impl MAX5815
pub fn new(bus: u8, address: u16) -> Self
pub fn configure(&self) -> Result<(), LinuxI2CError>
pub fn read_device_info(&self) -> Result<(u8, u8, u8), LinuxI2CError>
pub fn read_coden(&self, channel: u8) -> Result<u16, LinuxI2CError>
pub fn read_codea(&self) -> Result<u16, LinuxI2CError>
pub fn read_dacn(&self, channel: u8) -> Result<u16, LinuxI2CError>
pub fn read_daca(&self) -> Result<u16, LinuxI2CError>
pub fn reset_dac(&self) -> Result<(), LinuxI2CError>
pub fn coden_loadn(&self, channel: u8, adc: u16) -> Result<(), LinuxI2CError>
Auto Trait Implementations§
impl Freeze for MAX5815
impl RefUnwindSafe for MAX5815
impl Send for MAX5815
impl Sync for MAX5815
impl Unpin for MAX5815
impl UnwindSafe for MAX5815
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