openthread_sys

Function otLinkGetCcaFailureRate

Source
pub unsafe extern "C" fn otLinkGetCcaFailureRate(
    aInstance: *mut otInstance,
) -> u16
Expand description

Returns the current CCA (Clear Channel Assessment) failure rate.

The rate is maintained over a window of (roughly) last OPENTHREAD_CONFIG_CCA_FAILURE_RATE_AVERAGING_WINDOW frame transmissions.

@returns The CCA failure rate with maximum value 0xffff corresponding to 100% failure rate.