pub type otJamDetectionCallback = Option<unsafe extern "C" fn(aJamState: bool, aContext: *mut c_void)>;
Expand description

Pointer is called if signal jam detection is enabled and a jam is detected.

@param[in] aJamState Current jam state (true if jam is detected, false otherwise). @param[in] aContext A pointer to application-specific context.

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.