#[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

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.