RegisterBlock

Struct RegisterBlock 

Source
#[repr(C)]
pub struct RegisterBlock {
Show 25 fields pub tasks_startrx: TASKS_STARTRX, pub tasks_stoprx: TASKS_STOPRX, pub tasks_starttx: TASKS_STARTTX, pub tasks_stoptx: TASKS_STOPTX, pub tasks_suspend: TASKS_SUSPEND, pub events_cts: EVENTS_CTS, pub events_ncts: EVENTS_NCTS, pub events_rxdrdy: EVENTS_RXDRDY, pub events_txdrdy: EVENTS_TXDRDY, pub events_error: EVENTS_ERROR, pub events_rxto: EVENTS_RXTO, pub shorts: SHORTS, pub intenset: INTENSET, pub intenclr: INTENCLR, pub errorsrc: ERRORSRC, pub enable: ENABLE, pub pselrts: PSELRTS, pub pseltxd: PSELTXD, pub pselcts: PSELCTS, pub pselrxd: PSELRXD, pub rxd: RXD, pub txd: TXD, pub baudrate: BAUDRATE, pub config: CONFIG, pub power: POWER, /* private fields */
}
Expand description

Register block

Fields§

§tasks_startrx: TASKS_STARTRX

0x00 - Start UART receiver.

§tasks_stoprx: TASKS_STOPRX

0x04 - Stop UART receiver.

§tasks_starttx: TASKS_STARTTX

0x08 - Start UART transmitter.

§tasks_stoptx: TASKS_STOPTX

0x0c - Stop UART transmitter.

§tasks_suspend: TASKS_SUSPEND

0x1c - Suspend UART.

§events_cts: EVENTS_CTS

0x100 - CTS activated.

§events_ncts: EVENTS_NCTS

0x104 - CTS deactivated.

§events_rxdrdy: EVENTS_RXDRDY

0x108 - Data received in RXD.

§events_txdrdy: EVENTS_TXDRDY

0x11c - Data sent from TXD.

§events_error: EVENTS_ERROR

0x124 - Error detected.

§events_rxto: EVENTS_RXTO

0x144 - Receiver timeout.

§shorts: SHORTS

0x200 - Shortcuts for UART.

§intenset: INTENSET

0x304 - Interrupt enable set register.

§intenclr: INTENCLR

0x308 - Interrupt enable clear register.

§errorsrc: ERRORSRC

0x480 - Error source. Write error field to 1 to clear error.

§enable: ENABLE

0x500 - Enable UART and acquire IOs.

§pselrts: PSELRTS

0x508 - Pin select for RTS.

§pseltxd: PSELTXD

0x50c - Pin select for TXD.

§pselcts: PSELCTS

0x510 - Pin select for CTS.

§pselrxd: PSELRXD

0x514 - Pin select for RXD.

§rxd: RXD

0x518 - RXD register. On read action the buffer pointer is displaced. Once read the character is consumed. If read when no character available, the UART will stop working.

§txd: TXD

0x51c - TXD register.

§baudrate: BAUDRATE

0x524 - UART Baudrate.

§config: CONFIG

0x56c - Configuration of parity and hardware flow control register.

§power: POWER

0xffc - Peripheral power control.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.