Struct atsamd21g::adc::RegisterBlock
source · [−]#[repr(C)]pub struct RegisterBlock {Show 20 fields
pub ctrla: Reg<CTRLA_SPEC>,
pub refctrl: Reg<REFCTRL_SPEC>,
pub avgctrl: Reg<AVGCTRL_SPEC>,
pub sampctrl: Reg<SAMPCTRL_SPEC>,
pub ctrlb: Reg<CTRLB_SPEC>,
pub winctrl: Reg<WINCTRL_SPEC>,
pub swtrig: Reg<SWTRIG_SPEC>,
pub inputctrl: Reg<INPUTCTRL_SPEC>,
pub evctrl: Reg<EVCTRL_SPEC>,
pub intenclr: Reg<INTENCLR_SPEC>,
pub intenset: Reg<INTENSET_SPEC>,
pub intflag: Reg<INTFLAG_SPEC>,
pub status: Reg<STATUS_SPEC>,
pub result: Reg<RESULT_SPEC>,
pub winlt: Reg<WINLT_SPEC>,
pub winut: Reg<WINUT_SPEC>,
pub gaincorr: Reg<GAINCORR_SPEC>,
pub offsetcorr: Reg<OFFSETCORR_SPEC>,
pub calib: Reg<CALIB_SPEC>,
pub dbgctrl: Reg<DBGCTRL_SPEC>,
/* private fields */
}Expand description
Register block
Fields
ctrla: Reg<CTRLA_SPEC>0x00 - Control A
refctrl: Reg<REFCTRL_SPEC>0x01 - Reference Control
avgctrl: Reg<AVGCTRL_SPEC>0x02 - Average Control
sampctrl: Reg<SAMPCTRL_SPEC>0x03 - Sampling Time Control
ctrlb: Reg<CTRLB_SPEC>0x04 - Control B
winctrl: Reg<WINCTRL_SPEC>0x08 - Window Monitor Control
swtrig: Reg<SWTRIG_SPEC>0x0c - Software Trigger
inputctrl: Reg<INPUTCTRL_SPEC>0x10 - Input Control
evctrl: Reg<EVCTRL_SPEC>0x14 - Event Control
intenclr: Reg<INTENCLR_SPEC>0x16 - Interrupt Enable Clear
intenset: Reg<INTENSET_SPEC>0x17 - Interrupt Enable Set
intflag: Reg<INTFLAG_SPEC>0x18 - Interrupt Flag Status and Clear
status: Reg<STATUS_SPEC>0x19 - Status
result: Reg<RESULT_SPEC>0x1a - Result
winlt: Reg<WINLT_SPEC>0x1c - Window Monitor Lower Threshold
winut: Reg<WINUT_SPEC>0x20 - Window Monitor Upper Threshold
gaincorr: Reg<GAINCORR_SPEC>0x24 - Gain Correction
offsetcorr: Reg<OFFSETCORR_SPEC>0x26 - Offset Correction
calib: Reg<CALIB_SPEC>0x28 - Calibration
dbgctrl: Reg<DBGCTRL_SPEC>0x2a - Debug Control
Auto Trait Implementations
impl !RefUnwindSafe for RegisterBlock
impl Send for RegisterBlock
impl !Sync for RegisterBlock
impl Unpin for RegisterBlock
impl UnwindSafe for RegisterBlock
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more