Struct avr_mcu::Register [] [src]

pub struct Register {
    pub name: String,
    pub caption: String,
    pub offset: u32,
    pub size: u32,
    pub mask: Option<u32>,
    pub rw: ReadWrite,
    pub bitfields: Vec<Bitfield>,
}

An CPU or IO register.

Fields

The name of the register, such as TCCR0A.

The register description.

The offset of the register in IO space.

The number of bytes that make up the bitfield.

The mutability of the register.

The bitfields supported by the register.

Methods

impl Register
[src]

[src]

Get the union between two descriptions of the same register.

Trait Implementations

impl Clone for Register
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Register
[src]

[src]

Formats the value using the given formatter.

impl PartialOrd for Register
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

[src]

This method tests less than (for self and other) and is used by the < operator. Read more

[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl PartialEq for Register
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for Register
[src]

impl Hash for Register
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more