Struct atsams70q19::twihs0::RegisterBlock
source · [−]#[repr(C)]pub struct RegisterBlock {Show 16 fields
pub twihs_cr: Reg<TWIHS_CR_SPEC>,
pub twihs_mmr: Reg<TWIHS_MMR_SPEC>,
pub twihs_smr: Reg<TWIHS_SMR_SPEC>,
pub twihs_iadr: Reg<TWIHS_IADR_SPEC>,
pub twihs_cwgr: Reg<TWIHS_CWGR_SPEC>,
pub twihs_sr: Reg<TWIHS_SR_SPEC>,
pub twihs_ier: Reg<TWIHS_IER_SPEC>,
pub twihs_idr: Reg<TWIHS_IDR_SPEC>,
pub twihs_imr: Reg<TWIHS_IMR_SPEC>,
pub twihs_rhr: Reg<TWIHS_RHR_SPEC>,
pub twihs_thr: Reg<TWIHS_THR_SPEC>,
pub twihs_smbtr: Reg<TWIHS_SMBTR_SPEC>,
pub twihs_filtr: Reg<TWIHS_FILTR_SPEC>,
pub twihs_swmr: Reg<TWIHS_SWMR_SPEC>,
pub twihs_wpmr: Reg<TWIHS_WPMR_SPEC>,
pub twihs_wpsr: Reg<TWIHS_WPSR_SPEC>,
/* private fields */
}
Expand description
Register block
Fields
twihs_cr: Reg<TWIHS_CR_SPEC>
0x00 - Control Register
twihs_mmr: Reg<TWIHS_MMR_SPEC>
0x04 - Master Mode Register
twihs_smr: Reg<TWIHS_SMR_SPEC>
0x08 - Slave Mode Register
twihs_iadr: Reg<TWIHS_IADR_SPEC>
0x0c - Internal Address Register
twihs_cwgr: Reg<TWIHS_CWGR_SPEC>
0x10 - Clock Waveform Generator Register
twihs_sr: Reg<TWIHS_SR_SPEC>
0x20 - Status Register
twihs_ier: Reg<TWIHS_IER_SPEC>
0x24 - Interrupt Enable Register
twihs_idr: Reg<TWIHS_IDR_SPEC>
0x28 - Interrupt Disable Register
twihs_imr: Reg<TWIHS_IMR_SPEC>
0x2c - Interrupt Mask Register
twihs_rhr: Reg<TWIHS_RHR_SPEC>
0x30 - Receive Holding Register
twihs_thr: Reg<TWIHS_THR_SPEC>
0x34 - Transmit Holding Register
twihs_smbtr: Reg<TWIHS_SMBTR_SPEC>
0x38 - SMBus Timing Register
twihs_filtr: Reg<TWIHS_FILTR_SPEC>
0x44 - Filter Register
twihs_swmr: Reg<TWIHS_SWMR_SPEC>
0x4c - SleepWalking Matching Register
twihs_wpmr: Reg<TWIHS_WPMR_SPEC>
0xe4 - Write Protection Mode Register
twihs_wpsr: Reg<TWIHS_WPSR_SPEC>
0xe8 - Write Protection Status 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