#[repr(C)]
pub struct RegisterBlock {
Show 32 fields pub ctrl: CTRL, pub dispctrl: DISPCTRL, pub segen: SEGEN, pub bactrl: BACTRL, pub status: STATUS, pub arega: AREGA, pub aregb: AREGB, pub if_: IF, pub ifs: IFS, pub ifc: IFC, pub ien: IEN, pub biasctrl: BIASCTRL, pub segd0l: SEGD0L, pub segd1l: SEGD1L, pub segd2l: SEGD2L, pub segd3l: SEGD3L, pub segd0h: SEGD0H, pub segd1h: SEGD1H, pub segd2h: SEGD2H, pub segd3h: SEGD3H, pub segd4l: SEGD4L, pub segd5l: SEGD5L, pub segd6l: SEGD6L, pub segd7l: SEGD7L, pub segd4h: SEGD4H, pub segd5h: SEGD5H, pub segd6h: SEGD6H, pub segd7h: SEGD7H, pub freeze: FREEZE, pub syncbusy: SYNCBUSY, pub framerate: FRAMERATE, pub segen2: SEGEN2, /* private fields */
}
Expand description

Register block

Fields§

§ctrl: CTRL

0x00 - Control Register

§dispctrl: DISPCTRL

0x04 - Display Control Register

§segen: SEGEN

0x08 - Segment Enable Register

§bactrl: BACTRL

0x0c - Blink and Animation Control Register

§status: STATUS

0x10 - Status Register

§arega: AREGA

0x14 - Animation Register a

§aregb: AREGB

0x18 - Animation Register B

§if_: IF

0x1c - Interrupt Flag Register

§ifs: IFS

0x20 - Interrupt Flag Set Register

§ifc: IFC

0x24 - Interrupt Flag Clear Register

§ien: IEN

0x28 - Interrupt Enable Register

§biasctrl: BIASCTRL

0x30 - Analog BIAS Control

§segd0l: SEGD0L

0x40 - Segment Data Low Register 0

§segd1l: SEGD1L

0x44 - Segment Data Low Register 1

§segd2l: SEGD2L

0x48 - Segment Data Low Register 2

§segd3l: SEGD3L

0x4c - Segment Data Low Register 3

§segd0h: SEGD0H

0x50 - Segment Data High Register 0

§segd1h: SEGD1H

0x54 - Segment Data High Register 1

§segd2h: SEGD2H

0x58 - Segment Data High Register 2

§segd3h: SEGD3H

0x5c - Segment Data High Register 3

§segd4l: SEGD4L

0x60 - Segment Data Low Register 4

§segd5l: SEGD5L

0x64 - Segment Data Low Register 5

§segd6l: SEGD6L

0x68 - Segment Data Low Register 6

§segd7l: SEGD7L

0x6c - Segment Data Low Register 7

§segd4h: SEGD4H

0x70 - Segment Data High Register 4

§segd5h: SEGD5H

0x74 - Segment Data High Register 5

§segd6h: SEGD6H

0x78 - Segment Data High Register 6

§segd7h: SEGD7H

0x7c - Segment Data High Register 7

§freeze: FREEZE

0xc0 - Freeze Register

§syncbusy: SYNCBUSY

0xc4 - Synchronization Busy Register

§framerate: FRAMERATE

0xf0 - Frame Rate

§segen2: SEGEN2

0xf4 - Segment Enable (32 to 39)

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.