[][src]Type Definition openthread_sys::otLinkPcapCallback

type otLinkPcapCallback = Option<unsafe extern "C" fn(aFrame: *const otRadioFrame, aIsTx: bool, aContext: *mut c_void)>;

This function pointer is called when an IEEE 802.15.4 frame is received.

@note This callback is called after FCS processing and @p aFrame may not contain the actual FCS that was received.

@note This callback is called before IEEE 802.15.4 security processing.

@param[in] aFrame A pointer to the received IEEE 802.15.4 frame. @param[in] aIsTx Whether this frame is transmitted, not received. @param[in] aContext A pointer to application-specific context.