Struct embedded_builder::register::Register [] [src]

pub struct Register<T: RegisterType<T>>(_, _);

Methods

impl<T: RegisterType<T>> Register<T>
[src]

[src]

Creates a new register of the provided type with the specified address Note that impl RegisterType<T> for T {} is required for unimplemented types

[src]

Creates a new 16-bit ride register

[src]

Creates a new 32-bit register

[src]

Reads the register value and returns a new instance with internal value set.

[src]

clears the internal register value

[src]

returns the register value

[src]

sets the internal value of the register

[src]

boolean and the provided and current values

[src]

ors the provided and current values

[src]

clears the masked area of the provided value

[src]

returns a boolean consisting to the indexed bit

[src]

Sets a bit in the current value

[src]

Fetches a value with the provided mask and shift Note that shift is applied prior to masking, so mask should always start at 0b1

[src]

Sets a value with a provided mask and shift Note that mask is applied before shifting, so mask should always start at 0b1

[src]

Writes the internal value to the register

Trait Implementations

impl<T: Debug + RegisterType<T>> Debug for Register<T>
[src]

[src]

Formats the value using the given formatter. Read more

impl<T: PartialEq + RegisterType<T>> PartialEq for Register<T>
[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<T: Clone + RegisterType<T>> Clone for Register<T>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<T> Send for Register<T> where
    T: Send

impl<T> Sync for Register<T> where
    T: Sync