pub struct Mac { /* private fields */ }
Implementations§
Source§impl Mac
impl Mac
Sourcepub async fn tl_read(&self) -> EvtBox<Self>
pub async fn tl_read(&self) -> EvtBox<Self>
HW_IPCC_MAC_802_15_4_EvtNot
This function will stall if the previous EvtBox
has not been dropped
Sourcepub async fn tl_write_and_get_response(&self, opcode: u16, payload: &[u8]) -> u8
pub async fn tl_write_and_get_response(&self, opcode: u16, payload: &[u8]) -> u8
HW_IPCC_MAC_802_15_4_CmdEvtNot
pub async fn send_command<T>(&self, cmd: &T) -> Result<(), MacError>where
T: MacCommand,
pub async fn read(&self) -> Result<MacEvent<'_>, ()>
Trait Implementations§
Source§impl MemoryManager for Mac
impl MemoryManager for Mac
Source§unsafe fn drop_event_packet(_: *mut EvtPacket)
unsafe fn drop_event_packet(_: *mut EvtPacket)
SAFETY: passing a pointer to something other than a managed event packet is UB
Auto Trait Implementations§
impl Freeze for Mac
impl RefUnwindSafe for Mac
impl Send for Mac
impl Sync for Mac
impl Unpin for Mac
impl UnwindSafe for Mac
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