#[repr(C)]pub struct Cfg { /* private fields */ }
Implementations§
Source§impl Cfg
impl Cfg
pub const ZERO: Self
pub const fn new() -> Self
👎Deprecated: Use Cfg::Default (or Cfg::DEFAULT in const context) instead
Sourcepub const fn new_with_raw_value(value: u24) -> Cfg
pub const fn new_with_raw_value(value: u24) -> Cfg
Creates a new instance of this bitfield with the given raw value.
No checks are performed on the value, so it is possible to set bits that don’t have any accessors specified.
Sourcepub const fn builder() -> PartialCfg<0>
pub const fn builder() -> PartialCfg<0>
Creates a builder for this bitfield which ensures that all writable fields are initialized
pub const fn rf_sw(&self) -> u4
pub const fn with_rf_sw(&self, field_value: u4) -> Self
pub fn set_rf_sw(&mut self, field_value: u4)
pub const fn led(&self) -> u4
pub const fn with_led(&self, field_value: u4) -> Self
pub fn set_led(&mut self, field_value: u4)
pub const fn profile(&self) -> u3
pub const fn with_profile(&self, field_value: u3) -> Self
pub fn set_profile(&mut self, field_value: u3)
pub const fn io_update(&self) -> bool
pub const fn with_io_update(&self, field_value: bool) -> Self
pub fn set_io_update(&mut self, field_value: bool)
pub const fn mask_nu(&self) -> u4
pub const fn with_mask_nu(&self, field_value: u4) -> Self
pub fn set_mask_nu(&mut self, field_value: u4)
pub const fn clk_sel(&self) -> ClkSel
pub const fn with_clk_sel(&self, field_value: ClkSel) -> Self
pub fn set_clk_sel(&mut self, field_value: ClkSel)
pub const fn sync_sel(&self) -> bool
pub const fn with_sync_sel(&self, field_value: bool) -> Self
pub fn set_sync_sel(&mut self, field_value: bool)
pub const fn rst(&self) -> bool
pub const fn with_rst(&self, field_value: bool) -> Self
pub fn set_rst(&mut self, field_value: bool)
pub const fn io_rst(&self) -> bool
pub const fn with_io_rst(&self, field_value: bool) -> Self
pub fn set_io_rst(&mut self, field_value: bool)
pub const fn div_sel(&self) -> DivSel
pub const fn with_div_sel(&self, field_value: DivSel) -> Self
pub fn set_div_sel(&mut self, field_value: DivSel)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Cfg
impl<'de> Deserialize<'de> for Cfg
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Cfg
impl StructuralPartialEq for Cfg
Auto Trait Implementations§
impl Freeze for Cfg
impl RefUnwindSafe for Cfg
impl Send for Cfg
impl Sync for Cfg
impl Unpin for Cfg
impl UnwindSafe for Cfg
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