openthread_sys

Type Alias otNcpDelegateAllowPeekPoke

Source
pub type otNcpDelegateAllowPeekPoke = Option<unsafe extern "C" fn(aAddress: u32, aCount: u16) -> bool>;
Expand description

Defines delegate (function pointer) type to control behavior of peek/poke operation.

This delegate function is called to decide whether to allow peek or poke of a specific memory region. It is used if NCP support for peek/poke commands is enabled.

@param[in] aAddress Start address of memory region. @param[in] aCount Number of bytes to peek or poke.

@returns TRUE to allow peek/poke of the given memory region, FALSE otherwise.

Aliased Type§

enum otNcpDelegateAllowPeekPoke {
    None,
    Some(unsafe extern "C" fn(_: u32, _: u16) -> bool),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: u32, _: u16) -> bool)

Some value of type T.