Struct atsam4lc4a_pac::twim0::RegisterBlock
source · [−]#[repr(C)]pub struct RegisterBlock {Show 17 fields
pub cr: Reg<CR_SPEC>,
pub cwgr: Reg<CWGR_SPEC>,
pub smbtr: Reg<SMBTR_SPEC>,
pub cmdr: Reg<CMDR_SPEC>,
pub ncmdr: Reg<NCMDR_SPEC>,
pub rhr: Reg<RHR_SPEC>,
pub thr: Reg<THR_SPEC>,
pub sr: Reg<SR_SPEC>,
pub ier: Reg<IER_SPEC>,
pub idr: Reg<IDR_SPEC>,
pub imr: Reg<IMR_SPEC>,
pub scr: Reg<SCR_SPEC>,
pub pr: Reg<PR_SPEC>,
pub vr: Reg<VR_SPEC>,
pub hscwgr: Reg<HSCWGR_SPEC>,
pub srr: Reg<SRR_SPEC>,
pub hssrr: Reg<HSSRR_SPEC>,
}
Expand description
Register block
Fields
cr: Reg<CR_SPEC>
0x00 - Control Register
cwgr: Reg<CWGR_SPEC>
0x04 - Clock Waveform Generator Register
smbtr: Reg<SMBTR_SPEC>
0x08 - SMBus Timing Register
cmdr: Reg<CMDR_SPEC>
0x0c - Command Register
ncmdr: Reg<NCMDR_SPEC>
0x10 - Next Command Register
rhr: Reg<RHR_SPEC>
0x14 - Receive Holding Register
thr: Reg<THR_SPEC>
0x18 - Transmit Holding Register
sr: Reg<SR_SPEC>
0x1c - Status Register
ier: Reg<IER_SPEC>
0x20 - Interrupt Enable Register
idr: Reg<IDR_SPEC>
0x24 - Interrupt Disable Register
imr: Reg<IMR_SPEC>
0x28 - Interrupt Mask Register
scr: Reg<SCR_SPEC>
0x2c - Status Clear Register
pr: Reg<PR_SPEC>
0x30 - Parameter Register
vr: Reg<VR_SPEC>
0x34 - Version Register
hscwgr: Reg<HSCWGR_SPEC>
0x38 - HS-mode Clock Waveform Generator
srr: Reg<SRR_SPEC>
0x3c - Slew Rate Register
hssrr: Reg<HSSRR_SPEC>
0x40 - HS-mode Slew Rate Register
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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