Struct stm32_metapac::hspi::regs::Dcr3
#[repr(transparent)]pub struct Dcr3(pub u32);
Expand description
HSPI device configuration register 3.
Tuple Fields§
§0: u32
Implementations§
§impl Dcr3
impl Dcr3
pub const fn maxtran(&self) -> u8
pub const fn maxtran(&self) -> u8
Maximum transfer This field enables the communication regulation feature. The nCS is released every MAXTRAN+1 clock cycles when the other HSPI request the access to the bus. others: Maximum communication is set to MAXTRAN+1 bytes.
pub fn set_maxtran(&mut self, val: u8)
pub fn set_maxtran(&mut self, val: u8)
Maximum transfer This field enables the communication regulation feature. The nCS is released every MAXTRAN+1 clock cycles when the other HSPI request the access to the bus. others: Maximum communication is set to MAXTRAN+1 bytes.
pub const fn csbound(&self) -> u8
pub const fn csbound(&self) -> u8
CS boundary This field enables the transaction boundary feature. When active, a minimum value of 3 is recommended. The nCS is released on each boundary of 2CSBOUND bytes. others: CS boundary set to 2CSBOUND bytes.
pub fn set_csbound(&mut self, val: u8)
pub fn set_csbound(&mut self, val: u8)
CS boundary This field enables the transaction boundary feature. When active, a minimum value of 3 is recommended. The nCS is released on each boundary of 2CSBOUND bytes. others: CS boundary set to 2CSBOUND bytes.
Trait Implementations§
impl Copy for Dcr3
impl Eq for Dcr3
impl StructuralPartialEq for Dcr3
Auto Trait Implementations§
impl Freeze for Dcr3
impl RefUnwindSafe for Dcr3
impl Send for Dcr3
impl Sync for Dcr3
impl Unpin for Dcr3
impl UnwindSafe for Dcr3
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)