#[repr(transparent)]
pub struct Aliased<T, R = (), W = ()> where
    T: UIntLike,
    R: RegisterLongName,
    W: RegisterLongName
{ /* private fields */ }
Expand description

Read-only and write-only registers aliased to the same address.

Unlike the ReadWrite register, this represents a register which has different meanings based on if it is written or read. This might be found on a device where control and status registers are accessed via the same memory address via writes and reads, respectively.

This register implements Readable and Writeable, but in general does not implement ReadWriteable (only if the type parameters R and W are identical, in which case a ReadWrite register might be a better choice).

Trait Implementations

Get the raw register value

Read the value of the given field

Set the raw register value Read more

Make a local copy of the register

Check if one or more bits in a field are set

Check if any specified parts of a field match

Check if all specified parts of a field match

Set the raw register value

Write the value of one or more fields, overwriting the other fields with zero

Write the value of one or more fields, maintaining the value of unchanged fields via a provided original value, rather than a register read. Read more

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.

Write the value of one or more fields, leaving the other fields unchanged

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.