Struct 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.