openthread/ot/types/
radio_coex_metrics.rs1use crate::prelude_internal::*;
6
7#[derive(Debug, Default, Clone)]
11#[repr(transparent)]
12pub struct RadioCoexMetrics(pub otRadioCoexMetrics);
13
14impl_ot_castable!(RadioCoexMetrics, otRadioCoexMetrics);
15
16impl RadioCoexMetrics {
17 pub fn num_grant_glitch(&self) -> u32 {
19 self.0.mNumGrantGlitch
20 }
21
22 pub fn num_tx_request(&self) -> u32 {
24 self.0.mNumTxRequest
25 }
26
27 pub fn num_tx_grant_immediate(&self) -> u32 {
29 self.0.mNumTxGrantImmediate
30 }
31
32 pub fn num_tx_grant_wait(&self) -> u32 {
34 self.0.mNumTxGrantWait
35 }
36
37 pub fn num_tx_grant_wait_activated(&self) -> u32 {
39 self.0.mNumTxGrantWaitActivated
40 }
41
42 pub fn num_tx_grant_wait_timeout(&self) -> u32 {
44 self.0.mNumTxGrantWaitTimeout
45 }
46
47 pub fn num_tx_grant_deactivated_during_request(&self) -> u32 {
49 self.0.mNumTxGrantDeactivatedDuringRequest
50 }
51
52 pub fn num_tx_delayed_grant(&self) -> u32 {
54 self.0.mNumTxDelayedGrant
55 }
56
57 pub fn avg_tx_request_to_grant_time(&self) -> u32 {
59 self.0.mAvgTxRequestToGrantTime
60 }
61
62 pub fn num_rx_request(&self) -> u32 {
64 self.0.mNumRxRequest
65 }
66
67 pub fn num_rx_grant_immediate(&self) -> u32 {
69 self.0.mNumRxGrantImmediate
70 }
71
72 pub fn num_rx_grant_wait(&self) -> u32 {
74 self.0.mNumRxGrantWait
75 }
76
77 pub fn num_rx_grant_wait_activated(&self) -> u32 {
79 self.0.mNumRxGrantWaitActivated
80 }
81
82 pub fn num_rx_grant_wait_timeout(&self) -> u32 {
84 self.0.mNumRxGrantWaitTimeout
85 }
86
87 pub fn num_rx_grant_deactivated_during_request(&self) -> u32 {
89 self.0.mNumRxGrantDeactivatedDuringRequest
90 }
91
92 pub fn num_rx_delayed_grant(&self) -> u32 {
94 self.0.mNumRxDelayedGrant
95 }
96
97 pub fn avg_rx_request_to_grant_time(&self) -> u32 {
99 self.0.mAvgRxRequestToGrantTime
100 }
101
102 pub fn num_rx_grant_none(&self) -> u32 {
104 self.0.mNumRxGrantNone
105 }
106
107 pub fn stopped(&self) -> bool {
109 self.0.mStopped
110 }
111}