pub struct CrossByteBitStructI16<Interface: ?Sized> { /* private fields */ }Expand description
A register for interacting with 0-16bits over two consecutive bytes/registers
This reads/writes two bytes but provides a api presenting a u16 to the lib using it.
Implementations§
Source§impl<I> CrossByteBitStructI16<I>
impl<I> CrossByteBitStructI16<I>
pub fn new( register_address: u8, bits: u8, big_endian: bool, ) -> Result<CrossByteBitStructI16<I>, BitByteStructError<I::Error>>
Auto Trait Implementations§
impl<Interface> Freeze for CrossByteBitStructI16<Interface>where
Interface: ?Sized,
impl<Interface> RefUnwindSafe for CrossByteBitStructI16<Interface>where
Interface: RefUnwindSafe + ?Sized,
impl<Interface> Send for CrossByteBitStructI16<Interface>
impl<Interface> Sync for CrossByteBitStructI16<Interface>
impl<Interface> Unpin for CrossByteBitStructI16<Interface>
impl<Interface> UnwindSafe for CrossByteBitStructI16<Interface>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