#[repr(C)]pub struct RegisterBlock {
pub cs: CS,
pub result: RESULT,
pub fcs: FCS,
pub fifo: FIFO,
pub div: DIV,
pub intr: INTR,
pub inte: INTE,
pub intf: INTF,
pub ints: INTS,
}Expand description
Register block
Fields§
§cs: CS0x00 - ADC Control and Status
result: RESULT0x04 - Result of most recent ADC conversion
fcs: FCS0x08 - FIFO control and status
fifo: FIFO0x0c - Conversion result FIFO
div: DIV0x10 - Clock divider. If non-zero, CS_START_MANY will start conversions\n at regular intervals rather than back-to-back.\n The divider is reset when either of these fields are written.\n Total period is 1 + INT + FRAC / 256
intr: INTR0x14 - Raw Interrupts
inte: INTE0x18 - Interrupt Enable
intf: INTF0x1c - Interrupt Force
ints: INTS0x20 - Interrupt status after masking & forcing
Auto Trait Implementations§
impl !Freeze for RegisterBlock
impl !RefUnwindSafe for RegisterBlock
impl Send for RegisterBlock
impl !Sync for RegisterBlock
impl Unpin for RegisterBlock
impl UnsafeUnpin for RegisterBlock
impl UnwindSafe for RegisterBlock
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
Mutably borrows from an owned value. Read more