Struct stm32_metapac::adccommon::regs::Cdr
#[repr(transparent)]pub struct Cdr(pub u32);
Expand description
common regular data register for dual mode
Tuple Fields§
§0: u32
Implementations§
§impl Cdr
impl Cdr
pub const fn rdata_mst(&self) -> u16
pub const fn rdata_mst(&self) -> u16
Regular data of the master ADC. In dual mode, these bits contain the regular data of the master ADC. Refer to . The data alignment is applied as described in offset (ADC_DR, OFFSET, OFFSET_CH, ALIGN)) In MDMA = 0b11 mode, bits 15:8 contains SLV_ADC_DR[7:0], bits 7:0 contains MST_ADC_DR[7:0].
pub fn set_rdata_mst(&mut self, val: u16)
pub fn set_rdata_mst(&mut self, val: u16)
Regular data of the master ADC. In dual mode, these bits contain the regular data of the master ADC. Refer to . The data alignment is applied as described in offset (ADC_DR, OFFSET, OFFSET_CH, ALIGN)) In MDMA = 0b11 mode, bits 15:8 contains SLV_ADC_DR[7:0], bits 7:0 contains MST_ADC_DR[7:0].
pub const fn rdata_slv(&self) -> u16
pub const fn rdata_slv(&self) -> u16
Regular data of the slave ADC In dual mode, these bits contain the regular data of the slave ADC. Refer to Dual ADC modes. The data alignment is applied as described in offset (ADC_DR, OFFSET, OFFSET_CH, ALIGN)).
pub fn set_rdata_slv(&mut self, val: u16)
pub fn set_rdata_slv(&mut self, val: u16)
Regular data of the slave ADC In dual mode, these bits contain the regular data of the slave ADC. Refer to Dual ADC modes. The data alignment is applied as described in offset (ADC_DR, OFFSET, OFFSET_CH, ALIGN)).