Struct enc424j600::rx::RxPacket
source · pub struct RxPacket { /* private fields */ }
Expand description
Struct for RX Packet TODO: Generalise MAC addresses
Implementations§
source§impl RxPacket
impl RxPacket
pub fn new() -> Self
pub fn write_to_rsv(&mut self, raw_rsv: &[u8])
pub fn read_raw_rsv(&self) -> &[u8]
pub fn update_frame_length(&mut self)
pub fn get_frame_length(&self) -> usize
pub fn copy_frame_from(&mut self, raw_frame: &[u8])
pub fn write_frame_to(&self, frame: &mut [u8])
pub fn get_mut_frame(&mut self) -> &mut [u8]
sourcepub fn get_frame_byte(&self, i: usize) -> u8
pub fn get_frame_byte(&self, i: usize) -> u8
TODO: Mostly for debugging only?
Auto Trait Implementations§
impl RefUnwindSafe for RxPacket
impl Send for RxPacket
impl Sync for RxPacket
impl Unpin for RxPacket
impl UnwindSafe for RxPacket
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