19 lines
431 B
Rust
19 lines
431 B
Rust
|
/// Radio power supply selection.
|
||
|
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Clone, Copy)]
|
||
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
||
|
#[repr(u8)]
|
||
|
pub enum RegMode {
|
||
|
/// Linear dropout regulator
|
||
|
Ldo = 0b0,
|
||
|
/// Switch mode power supply.
|
||
|
///
|
||
|
/// Used in standby with HSE32, FS, RX, and TX modes.
|
||
|
Smps = 0b1,
|
||
|
}
|
||
|
|
||
|
impl Default for RegMode {
|
||
|
fn default() -> Self {
|
||
|
RegMode::Ldo
|
||
|
}
|
||
|
}
|