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)).
Trait Implementations§
impl Copy for Cdr
impl Eq for Cdr
impl StructuralPartialEq for Cdr
Auto Trait Implementations§
impl Freeze for Cdr
impl RefUnwindSafe for Cdr
impl Send for Cdr
impl Sync for Cdr
impl Unpin for Cdr
impl UnwindSafe for Cdr
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)