pub trait Radio {
// Required methods
fn get_coex_metrics(&self) -> Result<RadioCoexMetrics>;
fn get_rssi(&self) -> Decibels;
fn get_region(&self) -> Result<RadioRegion>;
fn set_region(&self, region: RadioRegion) -> Result;
fn get_transmit_power(&self) -> Result<Decibels>;
fn radio_get_version_string(&self) -> &str;
}
Expand description
Methods from the OpenThread “Radio” Module.
Required Methods§
Sourcefn get_coex_metrics(&self) -> Result<RadioCoexMetrics>
fn get_coex_metrics(&self) -> Result<RadioCoexMetrics>
Functional equivalent of
otsys::otPlatRadioGetCoexMetrics
.
Sourcefn get_rssi(&self) -> Decibels
fn get_rssi(&self) -> Decibels
Functional equivalent of
otsys::otPlatRadioGetRssi
.
Sourcefn get_region(&self) -> Result<RadioRegion>
fn get_region(&self) -> Result<RadioRegion>
Functional equivalent of
otsys::otPlatRadioGetRegion
.
Sourcefn set_region(&self, region: RadioRegion) -> Result
fn set_region(&self, region: RadioRegion) -> Result
Functional equivalent of
otsys::otPlatRadioSetRegion
.
Sourcefn get_transmit_power(&self) -> Result<Decibels>
fn get_transmit_power(&self) -> Result<Decibels>
Functional equivalent of
otsys::otPlatRadioGetTransmitPower
.
Sourcefn radio_get_version_string(&self) -> &str
fn radio_get_version_string(&self) -> &str
Functional equivalent of
otsys::otPlatRadioGetVersionString
.