Struct ChSr
#[repr(transparent)]pub struct ChSr(pub u32);Expand description
LPDMA channel x status register
Tuple Fields§
§0: u32Implementations§
§impl ChSr
impl ChSr
pub const fn idlef(&self) -> bool
pub const fn idlef(&self) -> bool
idle flag. This idle flag is de-asserted by hardware when the channel is enabled (CH[x].CR.EN = 1) with a valid channel configuration (no USEF to be immediately reported). This idle flag is asserted after hard reset or by hardware when the channel is back in idle state (in suspended or disabled state).
pub const fn set_idlef(&mut self, val: bool)
pub const fn set_idlef(&mut self, val: bool)
idle flag. This idle flag is de-asserted by hardware when the channel is enabled (CH[x].CR.EN = 1) with a valid channel configuration (no USEF to be immediately reported). This idle flag is asserted after hard reset or by hardware when the channel is back in idle state (in suspended or disabled state).
pub const fn tcf(&self) -> bool
pub const fn tcf(&self) -> bool
transfer complete flag. A transfer complete event is either a block transfer complete, a LLI transfer complete including the upload of the next LLI if any, or the full linked-list completion, depending on the transfer complete event mode (CH[x].TR2.TCEM[1:0]).
pub const fn set_tcf(&mut self, val: bool)
pub const fn set_tcf(&mut self, val: bool)
transfer complete flag. A transfer complete event is either a block transfer complete, a LLI transfer complete including the upload of the next LLI if any, or the full linked-list completion, depending on the transfer complete event mode (CH[x].TR2.TCEM[1:0]).
pub const fn htf(&self) -> bool
pub const fn htf(&self) -> bool
half transfer flag. A half-transfer event is a half-block transfer that occurs when half of the bytes of the source block size (rounded-up integer of CH[x].BR1.BNDT[15:0]/2) has been transferred to the destination.