Function esp_idf_svc::hal::sys::esp_transport_set_func
source ยท pub unsafe extern "C" fn esp_transport_set_func(
t: *mut esp_transport_item_t,
_connect: Option<unsafe extern "C" fn(_: *mut esp_transport_item_t, _: *const i8, _: i32, _: i32) -> i32>,
_read: Option<unsafe extern "C" fn(_: *mut esp_transport_item_t, _: *mut i8, _: i32, _: i32) -> i32>,
_write: Option<unsafe extern "C" fn(_: *mut esp_transport_item_t, _: *const i8, _: i32, _: i32) -> i32>,
_close: Option<unsafe extern "C" fn(_: *mut esp_transport_item_t) -> i32>,
_poll_read: Option<unsafe extern "C" fn(_: *mut esp_transport_item_t, _: i32) -> i32>,
_poll_write: Option<unsafe extern "C" fn(_: *mut esp_transport_item_t, _: i32) -> i32>,
_destroy: Option<unsafe extern "C" fn(_: *mut esp_transport_item_t) -> i32>,
) -> i32
Expand description
@brief Set transport functions for the transport handle
@param[in] t The transport handle @param[in] _connect The connect function pointer @param[in] _read The read function pointer @param[in] _write The write function pointer @param[in] _close The close function pointer @param[in] _poll_read The poll read function pointer @param[in] _poll_write The poll write function pointer @param[in] _destroy The destroy function pointer
@return - ESP_OK