pub struct ByteStructI16<Interface: ?Sized, const COUNT: usize> { /* private fields */ }Expand description
A Struct to map a number of 16bit integers to a number of consecutive registers
NOTE: Currently read only for now
Using the COUNT as part of the type should make it easier to mange the memory but I haven’t got it down yet. So you can currently only read for up to 10 integers.
Implementations§
Source§impl<I, const COUNT: usize> ByteStructI16<I, COUNT>
impl<I, const COUNT: usize> ByteStructI16<I, COUNT>
pub fn new( register_address: u8, big_endian: bool, ) -> Result<ByteStructI16<I, COUNT>, BitByteStructError<I::Error>>
Auto Trait Implementations§
impl<Interface, const COUNT: usize> Freeze for ByteStructI16<Interface, COUNT>where
Interface: ?Sized,
impl<Interface, const COUNT: usize> RefUnwindSafe for ByteStructI16<Interface, COUNT>where
Interface: RefUnwindSafe + ?Sized,
impl<Interface, const COUNT: usize> Send for ByteStructI16<Interface, COUNT>
impl<Interface, const COUNT: usize> Sync for ByteStructI16<Interface, COUNT>
impl<Interface, const COUNT: usize> Unpin for ByteStructI16<Interface, COUNT>
impl<Interface, const COUNT: usize> UnwindSafe for ByteStructI16<Interface, COUNT>where
Interface: UnwindSafe + ?Sized,
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