Struct enc424j600::tx::TxPacket
source · pub struct TxPacket { /* private fields */ }
Expand description
Struct for TX Packet TODO: Generalise MAC addresses
Implementations§
source§impl TxPacket
impl TxPacket
pub fn new() -> Self
sourcepub fn update_frame(&mut self, raw_frame: &[u8], raw_frame_length: usize)
pub fn update_frame(&mut self, raw_frame: &[u8], raw_frame_length: usize)
Currently, frame data is copied from an external buffer
pub fn write_frame_to(&self, frame: &mut [u8])
pub fn get_frame_length(&self) -> usize
pub fn get_frame(&self) -> &[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 TxPacket
impl Send for TxPacket
impl Sync for TxPacket
impl Unpin for TxPacket
impl UnwindSafe for TxPacket
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