embassy-stm32

Crates

git

Versions

stm32wl54cc-cm4

Flavors

Skip to main content

RfSwitch

Trait RfSwitch 

Source
pub trait RfSwitch {
    // Required method
    fn set_mode(&mut self, mode: RfMode);

    // Provided methods
    fn set_rx(&mut self) { ... }
    fn set_tx_lp(&mut self) { ... }
    fn set_tx_hp(&mut self) { ... }
    fn set_off(&mut self) { ... }
}
Expand description

Trait implemented by RF front-end switches.

Required Methods§

Source

fn set_mode(&mut self, mode: RfMode)

Configure the RF front-end switch to the given mode.

Provided Methods§

Source

fn set_rx(&mut self)

Switch to receive mode.

Source

fn set_tx_lp(&mut self)

Switch to low-power transmit mode.

Source

fn set_tx_hp(&mut self)

Switch to high-power transmit mode.

Source

fn set_off(&mut self)

Disable the RF switch (power down).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§