#[repr(transparent)]pub struct Cpr(pub u32);Expand description
Component parameter register
Tuple Fields§
§0: u32Implementations§
Source§impl Cpr
impl Cpr
Sourcepub const fn apb_data_width(&self) -> u8
pub const fn apb_data_width(&self) -> u8
APB data width
Sourcepub fn set_apb_data_width(&mut self, val: u8)
pub fn set_apb_data_width(&mut self, val: u8)
APB data width
Sourcepub fn set_afce_mode(&mut self, val: bool)
pub fn set_afce_mode(&mut self, val: bool)
Auto flow control enable mode
Sourcepub fn set_thre_mode(&mut self, val: bool)
pub fn set_thre_mode(&mut self, val: bool)
THRE mode
Sourcepub fn set_sir_mode(&mut self, val: bool)
pub fn set_sir_mode(&mut self, val: bool)
SIR mode
Sourcepub const fn sir_lp_mode(&self) -> bool
pub const fn sir_lp_mode(&self) -> bool
SIR low power mode
Sourcepub fn set_sir_lp_mode(&mut self, val: bool)
pub fn set_sir_lp_mode(&mut self, val: bool)
SIR low power mode
Sourcepub const fn additional_feat(&self) -> bool
pub const fn additional_feat(&self) -> bool
Additional features
Sourcepub fn set_additional_feat(&mut self, val: bool)
pub fn set_additional_feat(&mut self, val: bool)
Additional features
Sourcepub const fn fifo_access(&self) -> bool
pub const fn fifo_access(&self) -> bool
FIFO access
Sourcepub fn set_fifo_access(&mut self, val: bool)
pub fn set_fifo_access(&mut self, val: bool)
FIFO access
Sourcepub fn set_fifo_stat(&mut self, val: bool)
pub fn set_fifo_stat(&mut self, val: bool)
FIFO status
Sourcepub fn set_shadow(&mut self, val: bool)
pub fn set_shadow(&mut self, val: bool)
Shadow
Sourcepub const fn uart_add_encoded_params(&self) -> bool
pub const fn uart_add_encoded_params(&self) -> bool
UART additional encoded parameters
Sourcepub fn set_uart_add_encoded_params(&mut self, val: bool)
pub fn set_uart_add_encoded_params(&mut self, val: bool)
UART additional encoded parameters
Sourcepub fn set_dma_extra(&mut self, val: bool)
pub fn set_dma_extra(&mut self, val: bool)
DMA extra
Sourcepub fn set_fifo_mode(&mut self, val: u8)
pub fn set_fifo_mode(&mut self, val: u8)
FIFO mode
Trait Implementations§
impl Copy for Cpr
impl Eq for Cpr
impl StructuralPartialEq for Cpr
Auto Trait Implementations§
impl Freeze for Cpr
impl RefUnwindSafe for Cpr
impl Send for Cpr
impl Sync for Cpr
impl Unpin for Cpr
impl UnwindSafe for Cpr
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