pub struct WORegister<T> { /* private fields */ }
Expand description

A write-only register of type T.

Contains one value of type T and provides a volatile write function to it.

Safety

This register should be used where writes to this peripheral register do not lead to memory unsafety.

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

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

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.