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

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.

Aliased Type§

enum otLinkPcapCallback {
    None,
    Some(unsafe extern "C" fn(_: *const otRadioFrame, _: bool, _: *mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *const otRadioFrame, _: bool, _: *mut c_void))

Some value of type T.