Struct ChTr1
#[repr(transparent)]pub struct ChTr1(pub u32);Expand description
LPDMA channel x transfer register 1
Tuple Fields§
§0: u32Implementations§
§impl ChTr1
impl ChTr1
pub const fn sdw(&self) -> Dw
pub const fn sdw(&self) -> Dw
binary logarithm of the source data width of a single in bytes. Note: Setting a 8-byte data width causes a user setting error to be reported and no transfer is issued. A source block size must be a multiple of the source data width (CH[x].BR1.BNDT[2:0] versus SDW_LOG2[1:0]). Otherwise, a user setting error is reported and no transfer is issued. A source single transfer must have an aligned address with its data width (start address CH[x].SAR[2:0] versus SDW_LOG2[1:0]). Otherwise, a user setting error is reported and none transfer is issued.
pub const fn set_sdw(&mut self, val: Dw)
pub const fn set_sdw(&mut self, val: Dw)
binary logarithm of the source data width of a single in bytes. Note: Setting a 8-byte data width causes a user setting error to be reported and no transfer is issued. A source block size must be a multiple of the source data width (CH[x].BR1.BNDT[2:0] versus SDW_LOG2[1:0]). Otherwise, a user setting error is reported and no transfer is issued. A source single transfer must have an aligned address with its data width (start address CH[x].SAR[2:0] versus SDW_LOG2[1:0]). Otherwise, a user setting error is reported and none transfer is issued.
pub const fn sinc(&self) -> bool
pub const fn sinc(&self) -> bool
source incrementing single. The source address, pointed by CH[x].SAR, is kept constant after a single transfer or is incremented by the offset value corresponding to a contiguous data after a single transfer.
pub const fn set_sinc(&mut self, val: bool)
pub const fn set_sinc(&mut self, val: bool)
source incrementing single. The source address, pointed by CH[x].SAR, is kept constant after a single transfer or is incremented by the offset value corresponding to a contiguous data after a single transfer.
pub const fn pam(&self) -> Pam
pub const fn pam(&self) -> Pam
padding/alignment mode. If DDW_LOG2[1:0] = SDW_LOG2[1:0], this bit is ignored. Else, it selects padding (zero- or sign-extension) when the destination data width is higher than the source data width, or truncation (left or right) when it is lower.
pub const fn set_pam(&mut self, val: Pam)
pub const fn set_pam(&mut self, val: Pam)
padding/alignment mode. If DDW_LOG2[1:0] = SDW_LOG2[1:0], this bit is ignored. Else, it selects padding (zero- or sign-extension) when the destination data width is higher than the source data width, or truncation (left or right) when it is lower.
pub const fn ssec(&self) -> bool
pub const fn ssec(&self) -> bool
security attribute of the LPDMA transfer from the source (not on STM32C5). If SECCFGR.SECx = 1 and the access is secure: This is a secure register bit. This bit can only be read by a secure software. This bit must be written by a secure software when SECCFGR.SECx =1 . A secure write is ignored when SECCFGR.SECx = 0. When SECCFGR.SECx is de-asserted, this SSEC bit is also de-asserted by hardware (on a secure reconfiguration of the channel as non-secure), and the LPDMA transfer from the source is non-secure.
pub const fn set_ssec(&mut self, val: bool)
pub const fn set_ssec(&mut self, val: bool)
security attribute of the LPDMA transfer from the source (not on STM32C5). If SECCFGR.SECx = 1 and the access is secure: This is a secure register bit. This bit can only be read by a secure software. This bit must be written by a secure software when SECCFGR.SECx =1 . A secure write is ignored when SECCFGR.SECx = 0. When SECCFGR.SECx is de-asserted, this SSEC bit is also de-asserted by hardware (on a secure reconfiguration of the channel as non-secure), and the LPDMA transfer from the source is non-secure.
pub const fn ddw(&self) -> Dw
pub const fn ddw(&self) -> Dw
binary logarithm of the destination data width of a single, in bytes. Note: Setting a 8-byte data width causes a user setting error to be reported and none transfer is issued. A destination single transfer must have an aligned address with its data width (start address CH[x].DAR[2:0] versus DDW_LOG2[1:0]). Otherwise a user setting error is reported and no transfer is issued.
pub const fn set_ddw(&mut self, val: Dw)
pub const fn set_ddw(&mut self, val: Dw)
binary logarithm of the destination data width of a single, in bytes. Note: Setting a 8-byte data width causes a user setting error to be reported and none transfer is issued. A destination single transfer must have an aligned address with its data width (start address CH[x].DAR[2:0] versus DDW_LOG2[1:0]). Otherwise a user setting error is reported and no transfer is issued.
pub const fn dinc(&self) -> bool
pub const fn dinc(&self) -> bool
destination incrementing single. The destination address, pointed by CH[x].DAR, is kept constant after a single transfer, or is incremented by the offset value corresponding to a contiguous data after a single transfer.
pub const fn set_dinc(&mut self, val: bool)
pub const fn set_dinc(&mut self, val: bool)
destination incrementing single. The destination address, pointed by CH[x].DAR, is kept constant after a single transfer, or is incremented by the offset value corresponding to a contiguous data after a single transfer.
pub const fn dsec(&self) -> bool
pub const fn dsec(&self) -> bool
security attribute of the LPDMA transfer to the destination (not on STM32C5). If SECCFGR.SECx = 1 and the access is secure: This is a secure register bit. This bit can only be read by a secure software. This bit must be written by a secure software when SECCFGR.SECx = 1. A secure write is ignored when SECCFGR.SECx = 0. When SECCFGR.SECx is de-asserted, this DSEC bit is also de-asserted by hardware (on a secure reconfiguration of the channel as non-secure), and the LPDMA transfer to the destination is non-secure.
pub const fn set_dsec(&mut self, val: bool)
pub const fn set_dsec(&mut self, val: bool)
security attribute of the LPDMA transfer to the destination (not on STM32C5). If SECCFGR.SECx = 1 and the access is secure: This is a secure register bit. This bit can only be read by a secure software. This bit must be written by a secure software when SECCFGR.SECx = 1. A secure write is ignored when SECCFGR.SECx = 0. When SECCFGR.SECx is de-asserted, this DSEC bit is also de-asserted by hardware (on a secure reconfiguration of the channel as non-secure), and the LPDMA transfer to the destination is non-secure.