Struct stm32ral::RWRegister[][src]

pub struct RWRegister<T> { /* fields omitted */ }
Expand description

A read-write register of type T.

Contains one value of type T and provides volatile read/write functions to it.

Safety

This register should be used where reads and writes to this peripheral register do not lead to memory unsafety. For example, it is a poor choice for a DMA target, but less worrisome for a GPIO output data register.

Access to this register must be synchronised; if multiple threads (or the main thread and an interrupt service routine) are accessing it simultaneously you may encounter data races.

Implementations

Reads the value of the register.

Writes a new value to the 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

Performs the conversion.

Performs the conversion.

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.