pub struct UrapRecievedPacket {
pub count: u8,
pub start_register: u16,
pub write_buffer: Option<[[u8; 4]; 128]>,
pub nak_code: Option<NakCode>,
}Expand description
A packet recieved during polling.
Fields§
§count: u8Number of registers being accessed during operation.
start_register: u16The first register to be accessed in operation
write_buffer: Option<[[u8; 4]; 128]>If None, this is a read operation. If Some, the Some contains the entire write buffer.
nak_code: Option<NakCode>If there was an error the Nak code is here; needs to be written to the Primary first.
Auto Trait Implementations§
impl Freeze for UrapRecievedPacket
impl RefUnwindSafe for UrapRecievedPacket
impl Send for UrapRecievedPacket
impl Sync for UrapRecievedPacket
impl Unpin for UrapRecievedPacket
impl UnwindSafe for UrapRecievedPacket
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