#[repr(u32)]pub enum Frequency {
K125 = 33_554_432,
K250 = 67_108_864,
K500 = 134_217_728,
M1 = 268_435_456,
M2 = 536_870_912,
M4 = 1_073_741_824,
M8 = 2_147_483_648,
}
Expand description
An enum representing all allowable frequency
register values.
Variants§
K125 = 33_554_432
K250 = 67_108_864
K500 = 134_217_728
M1 = 268_435_456
M2 = 536_870_912
M4 = 1_073_741_824
M8 = 2_147_483_648
Implementations§
Source§impl Frequency
impl Frequency
pub fn from_register(reg: u32) -> Option<Frequency>
pub fn into_spi_rate(&self) -> u32
pub fn from_spi_rate(freq: u32) -> Frequency
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Frequency
impl RefUnwindSafe for Frequency
impl Send for Frequency
impl Sync for Frequency
impl Unpin for Frequency
impl UnwindSafe for Frequency
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more