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

source§

fn clone(&self) -> npl_funcs_t

Returns a copy of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for npl_funcs_t

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for npl_funcs_t

source§

fn default() -> npl_funcs_t

Returns the “default value” for a type. Read more
source§

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 T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Copy,

§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.