Type Alias esp_idf_sys::wifi_promiscuous_cb_t

source ·
pub type wifi_promiscuous_cb_t = Option<unsafe extern "C" fn(buf: *mut c_void, type_: wifi_promiscuous_pkt_type_t)>;
Expand description

@brief The RX callback function in the promiscuous mode. Each time a packet is received, the callback function will be called.

@param buf Data received. Type of data in buffer (wifi_promiscuous_pkt_t or wifi_pkt_rx_ctrl_t) indicated by ‘type’ parameter. @param type promiscuous packet type.

Aliased Type§

enum wifi_promiscuous_cb_t {
    None,
    Some(unsafe extern "C" fn(_: *mut c_void, _: u32)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut c_void, _: u32))

Some value of type T.