Struct Esr
#[repr(transparent)]pub struct Esr(pub u32);Expand description
MDMA Channel x error status register.
Tuple Fields§
§0: u32Implementations§
§impl Esr
impl Esr
pub const fn tea(&self) -> u8
pub const fn tea(&self) -> u8
Transfer Error Address These bits are set and cleared by HW, in case of an MDMA data transfer error. It is used in conjunction with TED. This field indicates the 7 LSBits of the address which generated a transfer/access error. It may be used by SW to retrieve the failing address, by adding this value (truncated to the buffer transfer length size) to the current SAR/DAR value. Note: The SAR/DAR current value doesnt reflect this last address due to the FIFO management system. The SAR/DAR are only updated at the end of a (buffer) transfer (of TLEN+1 bytes). Note: It is not set in case of a link data error.
pub fn set_tea(&mut self, val: u8)
pub fn set_tea(&mut self, val: u8)
Transfer Error Address These bits are set and cleared by HW, in case of an MDMA data transfer error. It is used in conjunction with TED. This field indicates the 7 LSBits of the address which generated a transfer/access error. It may be used by SW to retrieve the failing address, by adding this value (truncated to the buffer transfer length size) to the current SAR/DAR value. Note: The SAR/DAR current value doesnt reflect this last address due to the FIFO management system. The SAR/DAR are only updated at the end of a (buffer) transfer (of TLEN+1 bytes). Note: It is not set in case of a link data error.
pub const fn ted(&self) -> bool
pub const fn ted(&self) -> bool
Transfer Error Direction These bit is set and cleared by HW, in case of an MDMA data transfer error.
pub fn set_ted(&mut self, val: bool)
pub fn set_ted(&mut self, val: bool)
Transfer Error Direction These bit is set and cleared by HW, in case of an MDMA data transfer error.
pub const fn teld(&self) -> bool
pub const fn teld(&self) -> bool
Transfer Error Link Data These bit is set by HW, in case of a transfer error while reading the block link data structure. It is cleared by software writing 1 to the CTEIFx bit in the DMA_IFCRy register.
pub fn set_teld(&mut self, val: bool)
pub fn set_teld(&mut self, val: bool)
Transfer Error Link Data These bit is set by HW, in case of a transfer error while reading the block link data structure. It is cleared by software writing 1 to the CTEIFx bit in the DMA_IFCRy register.
pub const fn temd(&self) -> bool
pub const fn temd(&self) -> bool
Transfer Error Mask Data These bit is set by HW, in case of a transfer error while writing the Mask Data. It is cleared by software writing 1 to the CTEIFx bit in the DMA_IFCRy register.
pub fn set_temd(&mut self, val: bool)
pub fn set_temd(&mut self, val: bool)
Transfer Error Mask Data These bit is set by HW, in case of a transfer error while writing the Mask Data. It is cleared by software writing 1 to the CTEIFx bit in the DMA_IFCRy register.
pub const fn ase(&self) -> bool
pub const fn ase(&self) -> bool
Address/Size Error These bit is set by HW, when the programmed address is not aligned with the data size. TED will indicate whether the problem is on the source or destination. It is cleared by software writing 1 to the CTEIFx bit in the DMA_IFCRy register.
pub fn set_ase(&mut self, val: bool)
pub fn set_ase(&mut self, val: bool)
Address/Size Error These bit is set by HW, when the programmed address is not aligned with the data size. TED will indicate whether the problem is on the source or destination. It is cleared by software writing 1 to the CTEIFx bit in the DMA_IFCRy register.
pub const fn bse(&self) -> bool
pub const fn bse(&self) -> bool
Block Size Error These bit is set by HW, when the block size is not an integer multiple of the data size either for source or destination. TED will indicate whether the problem is on the source or destination. It is cleared by software writing 1 to the CTEIFx bit in the DMA_IFCRy register.
pub fn set_bse(&mut self, val: bool)
pub fn set_bse(&mut self, val: bool)
Block Size Error These bit is set by HW, when the block size is not an integer multiple of the data size either for source or destination. TED will indicate whether the problem is on the source or destination. It is cleared by software writing 1 to the CTEIFx bit in the DMA_IFCRy register.