#[repr(C)]
pub struct RegisterBlock {
Show 18 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_dr: Reg<TWIHS_DR_SPEC>, pub twihs_wpmr: Reg<TWIHS_WPMR_SPEC>, pub twihs_wpsr: Reg<TWIHS_WPSR_SPEC>, pub twihs_ver: Reg<TWIHS_VER_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_dr: Reg<TWIHS_DR_SPEC>

0xd0 - Debug Register

twihs_wpmr: Reg<TWIHS_WPMR_SPEC>

0xe4 - Write Protection Mode Register

twihs_wpsr: Reg<TWIHS_WPSR_SPEC>

0xe8 - Write Protection Status Register

twihs_ver: Reg<TWIHS_VER_SPEC>

0xfc - Version Register

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.