Struct esp_idf_sys::npl_funcs_t
source · #[repr(C)]pub struct npl_funcs_t {Show 44 fields
pub p_ble_npl_os_started: Option<unsafe extern "C" fn() -> bool>,
pub p_ble_npl_get_current_task_id: Option<unsafe extern "C" fn() -> *mut c_void>,
pub p_ble_npl_eventq_init: Option<unsafe extern "C" fn(arg1: *mut ble_npl_eventq)>,
pub p_ble_npl_eventq_deinit: Option<unsafe extern "C" fn(arg1: *mut ble_npl_eventq)>,
pub p_ble_npl_eventq_get: Option<unsafe extern "C" fn(arg1: *mut ble_npl_eventq, arg2: ble_npl_time_t) -> *mut ble_npl_event>,
pub p_ble_npl_eventq_put: Option<unsafe extern "C" fn(arg1: *mut ble_npl_eventq, arg2: *mut ble_npl_event)>,
pub p_ble_npl_eventq_remove: Option<unsafe extern "C" fn(arg1: *mut ble_npl_eventq, arg2: *mut ble_npl_event)>,
pub p_ble_npl_event_run: Option<unsafe extern "C" fn(arg1: *mut ble_npl_event)>,
pub p_ble_npl_eventq_is_empty: Option<unsafe extern "C" fn(arg1: *mut ble_npl_eventq) -> bool>,
pub p_ble_npl_event_init: Option<unsafe extern "C" fn(arg1: *mut ble_npl_event, arg2: ble_npl_event_fn, arg3: *mut c_void)>,
pub p_ble_npl_event_deinit: Option<unsafe extern "C" fn(arg1: *mut ble_npl_event)>,
pub p_ble_npl_event_reset: Option<unsafe extern "C" fn(arg1: *mut ble_npl_event)>,
pub p_ble_npl_event_is_queued: Option<unsafe extern "C" fn(arg1: *mut ble_npl_event) -> bool>,
pub p_ble_npl_event_get_arg: Option<unsafe extern "C" fn(arg1: *mut ble_npl_event) -> *mut c_void>,
pub p_ble_npl_event_set_arg: Option<unsafe extern "C" fn(arg1: *mut ble_npl_event, arg2: *mut c_void)>,
pub p_ble_npl_mutex_init: Option<unsafe extern "C" fn(arg1: *mut ble_npl_mutex) -> ble_npl_error_t>,
pub p_ble_npl_mutex_deinit: Option<unsafe extern "C" fn(arg1: *mut ble_npl_mutex) -> ble_npl_error_t>,
pub p_ble_npl_mutex_pend: Option<unsafe extern "C" fn(arg1: *mut ble_npl_mutex, arg2: ble_npl_time_t) -> ble_npl_error_t>,
pub p_ble_npl_mutex_release: Option<unsafe extern "C" fn(arg1: *mut ble_npl_mutex) -> ble_npl_error_t>,
pub p_ble_npl_sem_init: Option<unsafe extern "C" fn(arg1: *mut ble_npl_sem, arg2: u16) -> ble_npl_error_t>,
pub p_ble_npl_sem_deinit: Option<unsafe extern "C" fn(arg1: *mut ble_npl_sem) -> ble_npl_error_t>,
pub p_ble_npl_sem_pend: Option<unsafe extern "C" fn(arg1: *mut ble_npl_sem, arg2: ble_npl_time_t) -> ble_npl_error_t>,
pub p_ble_npl_sem_release: Option<unsafe extern "C" fn(arg1: *mut ble_npl_sem) -> ble_npl_error_t>,
pub p_ble_npl_sem_get_count: Option<unsafe extern "C" fn(arg1: *mut ble_npl_sem) -> u16>,
pub p_ble_npl_callout_init: Option<unsafe extern "C" fn(arg1: *mut ble_npl_callout, arg2: *mut ble_npl_eventq, arg3: ble_npl_event_fn, arg4: *mut c_void) -> c_int>,
pub p_ble_npl_callout_reset: Option<unsafe extern "C" fn(arg1: *mut ble_npl_callout, arg2: ble_npl_time_t) -> ble_npl_error_t>,
pub p_ble_npl_callout_stop: Option<unsafe extern "C" fn(arg1: *mut ble_npl_callout)>,
pub p_ble_npl_callout_deinit: Option<unsafe extern "C" fn(arg1: *mut ble_npl_callout)>,
pub p_ble_npl_callout_mem_reset: Option<unsafe extern "C" fn(arg1: *mut ble_npl_callout)>,
pub p_ble_npl_callout_is_active: Option<unsafe extern "C" fn(arg1: *mut ble_npl_callout) -> bool>,
pub p_ble_npl_callout_get_ticks: Option<unsafe extern "C" fn(arg1: *mut ble_npl_callout) -> ble_npl_time_t>,
pub p_ble_npl_callout_remaining_ticks: Option<unsafe extern "C" fn(arg1: *mut ble_npl_callout, arg2: ble_npl_time_t) -> u32>,
pub p_ble_npl_callout_set_arg: Option<unsafe extern "C" fn(arg1: *mut ble_npl_callout, arg2: *mut c_void)>,
pub p_ble_npl_time_get: Option<unsafe extern "C" fn() -> u32>,
pub p_ble_npl_time_ms_to_ticks: Option<unsafe extern "C" fn(ms: u32, arg1: *mut ble_npl_time_t) -> ble_npl_error_t>,
pub p_ble_npl_time_ticks_to_ms: Option<unsafe extern "C" fn(arg1: ble_npl_time_t, arg2: *mut u32) -> ble_npl_error_t>,
pub p_ble_npl_time_ms_to_ticks32: Option<unsafe extern "C" fn(arg1: u32) -> ble_npl_time_t>,
pub p_ble_npl_time_ticks_to_ms32: Option<unsafe extern "C" fn(arg1: ble_npl_time_t) -> u32>,
pub p_ble_npl_time_delay: Option<unsafe extern "C" fn(arg1: ble_npl_time_t)>,
pub p_ble_npl_hw_set_isr: Option<unsafe extern "C" fn(arg1: c_int, arg2: u32)>,
pub p_ble_npl_hw_enter_critical: Option<unsafe extern "C" fn() -> u32>,
pub p_ble_npl_hw_exit_critical: Option<unsafe extern "C" fn(arg1: u32)>,
pub p_ble_npl_get_time_forever: Option<unsafe extern "C" fn() -> u32>,
pub p_ble_npl_hw_is_in_critical: Option<unsafe extern "C" fn() -> u8>,
}
Fields§
§p_ble_npl_os_started: Option<unsafe extern "C" fn() -> bool>
§p_ble_npl_get_current_task_id: Option<unsafe extern "C" fn() -> *mut c_void>
§p_ble_npl_eventq_init: Option<unsafe extern "C" fn(arg1: *mut ble_npl_eventq)>
§p_ble_npl_eventq_deinit: Option<unsafe extern "C" fn(arg1: *mut ble_npl_eventq)>
§p_ble_npl_eventq_get: Option<unsafe extern "C" fn(arg1: *mut ble_npl_eventq, arg2: ble_npl_time_t) -> *mut ble_npl_event>
§p_ble_npl_eventq_put: Option<unsafe extern "C" fn(arg1: *mut ble_npl_eventq, arg2: *mut ble_npl_event)>
§p_ble_npl_eventq_remove: Option<unsafe extern "C" fn(arg1: *mut ble_npl_eventq, arg2: *mut ble_npl_event)>
§p_ble_npl_event_run: Option<unsafe extern "C" fn(arg1: *mut ble_npl_event)>
§p_ble_npl_eventq_is_empty: Option<unsafe extern "C" fn(arg1: *mut ble_npl_eventq) -> bool>
§p_ble_npl_event_init: Option<unsafe extern "C" fn(arg1: *mut ble_npl_event, arg2: ble_npl_event_fn, arg3: *mut c_void)>
§p_ble_npl_event_deinit: Option<unsafe extern "C" fn(arg1: *mut ble_npl_event)>
§p_ble_npl_event_reset: Option<unsafe extern "C" fn(arg1: *mut ble_npl_event)>
§p_ble_npl_event_is_queued: Option<unsafe extern "C" fn(arg1: *mut ble_npl_event) -> bool>
§p_ble_npl_event_get_arg: Option<unsafe extern "C" fn(arg1: *mut ble_npl_event) -> *mut c_void>
§p_ble_npl_event_set_arg: Option<unsafe extern "C" fn(arg1: *mut ble_npl_event, arg2: *mut c_void)>
§p_ble_npl_mutex_init: Option<unsafe extern "C" fn(arg1: *mut ble_npl_mutex) -> ble_npl_error_t>
§p_ble_npl_mutex_deinit: Option<unsafe extern "C" fn(arg1: *mut ble_npl_mutex) -> ble_npl_error_t>
§p_ble_npl_mutex_pend: Option<unsafe extern "C" fn(arg1: *mut ble_npl_mutex, arg2: ble_npl_time_t) -> ble_npl_error_t>
§p_ble_npl_mutex_release: Option<unsafe extern "C" fn(arg1: *mut ble_npl_mutex) -> ble_npl_error_t>
§p_ble_npl_sem_init: Option<unsafe extern "C" fn(arg1: *mut ble_npl_sem, arg2: u16) -> ble_npl_error_t>
§p_ble_npl_sem_deinit: Option<unsafe extern "C" fn(arg1: *mut ble_npl_sem) -> ble_npl_error_t>
§p_ble_npl_sem_pend: Option<unsafe extern "C" fn(arg1: *mut ble_npl_sem, arg2: ble_npl_time_t) -> ble_npl_error_t>
§p_ble_npl_sem_release: Option<unsafe extern "C" fn(arg1: *mut ble_npl_sem) -> ble_npl_error_t>
§p_ble_npl_sem_get_count: Option<unsafe extern "C" fn(arg1: *mut ble_npl_sem) -> u16>
§p_ble_npl_callout_init: Option<unsafe extern "C" fn(arg1: *mut ble_npl_callout, arg2: *mut ble_npl_eventq, arg3: ble_npl_event_fn, arg4: *mut c_void) -> c_int>
§p_ble_npl_callout_reset: Option<unsafe extern "C" fn(arg1: *mut ble_npl_callout, arg2: ble_npl_time_t) -> ble_npl_error_t>
§p_ble_npl_callout_stop: Option<unsafe extern "C" fn(arg1: *mut ble_npl_callout)>
§p_ble_npl_callout_deinit: Option<unsafe extern "C" fn(arg1: *mut ble_npl_callout)>
§p_ble_npl_callout_mem_reset: Option<unsafe extern "C" fn(arg1: *mut ble_npl_callout)>
§p_ble_npl_callout_is_active: Option<unsafe extern "C" fn(arg1: *mut ble_npl_callout) -> bool>
§p_ble_npl_callout_get_ticks: Option<unsafe extern "C" fn(arg1: *mut ble_npl_callout) -> ble_npl_time_t>
§p_ble_npl_callout_remaining_ticks: Option<unsafe extern "C" fn(arg1: *mut ble_npl_callout, arg2: ble_npl_time_t) -> u32>
§p_ble_npl_callout_set_arg: Option<unsafe extern "C" fn(arg1: *mut ble_npl_callout, arg2: *mut c_void)>
§p_ble_npl_time_get: Option<unsafe extern "C" fn() -> u32>
§p_ble_npl_time_ms_to_ticks: Option<unsafe extern "C" fn(ms: u32, arg1: *mut ble_npl_time_t) -> ble_npl_error_t>
§p_ble_npl_time_ticks_to_ms: Option<unsafe extern "C" fn(arg1: ble_npl_time_t, arg2: *mut u32) -> ble_npl_error_t>
§p_ble_npl_time_ms_to_ticks32: Option<unsafe extern "C" fn(arg1: u32) -> ble_npl_time_t>
§p_ble_npl_time_ticks_to_ms32: Option<unsafe extern "C" fn(arg1: ble_npl_time_t) -> u32>
§p_ble_npl_time_delay: Option<unsafe extern "C" fn(arg1: ble_npl_time_t)>
§p_ble_npl_hw_set_isr: Option<unsafe extern "C" fn(arg1: c_int, arg2: u32)>
§p_ble_npl_hw_enter_critical: Option<unsafe extern "C" fn() -> u32>
§p_ble_npl_hw_exit_critical: Option<unsafe extern "C" fn(arg1: u32)>
§p_ble_npl_get_time_forever: Option<unsafe extern "C" fn() -> u32>
§p_ble_npl_hw_is_in_critical: Option<unsafe extern "C" fn() -> u8>
Trait Implementations§
source§impl Clone for npl_funcs_t
impl Clone for npl_funcs_t
source§fn clone(&self) -> npl_funcs_t
fn clone(&self) -> npl_funcs_t
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for npl_funcs_t
impl Debug for npl_funcs_t
source§impl Default for npl_funcs_t
impl Default for npl_funcs_t
source§fn default() -> npl_funcs_t
fn default() -> npl_funcs_t
Returns the “default value” for a type. Read more
impl Copy for npl_funcs_t
Auto Trait Implementations§
impl Freeze for npl_funcs_t
impl RefUnwindSafe for npl_funcs_t
impl Send for npl_funcs_t
impl Sync for npl_funcs_t
impl Unpin for npl_funcs_t
impl UnwindSafe for npl_funcs_t
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)