[][src]Struct nrf9160_pac::uarte0_ns::RegisterBlock

#[repr(C)]pub struct RegisterBlock {
    pub tasks_startrx: TASKS_STARTRX,
    pub tasks_stoprx: TASKS_STOPRX,
    pub tasks_starttx: TASKS_STARTTX,
    pub tasks_stoptx: TASKS_STOPTX,
    pub tasks_flushrx: TASKS_FLUSHRX,
    pub subscribe_startrx: SUBSCRIBE_STARTRX,
    pub subscribe_stoprx: SUBSCRIBE_STOPRX,
    pub subscribe_starttx: SUBSCRIBE_STARTTX,
    pub subscribe_stoptx: SUBSCRIBE_STOPTX,
    pub subscribe_flushrx: SUBSCRIBE_FLUSHRX,
    pub events_cts: EVENTS_CTS,
    pub events_ncts: EVENTS_NCTS,
    pub events_rxdrdy: EVENTS_RXDRDY,
    pub events_endrx: EVENTS_ENDRX,
    pub events_txdrdy: EVENTS_TXDRDY,
    pub events_endtx: EVENTS_ENDTX,
    pub events_error: EVENTS_ERROR,
    pub events_rxto: EVENTS_RXTO,
    pub events_rxstarted: EVENTS_RXSTARTED,
    pub events_txstarted: EVENTS_TXSTARTED,
    pub events_txstopped: EVENTS_TXSTOPPED,
    pub publish_cts: PUBLISH_CTS,
    pub publish_ncts: PUBLISH_NCTS,
    pub publish_rxdrdy: PUBLISH_RXDRDY,
    pub publish_endrx: PUBLISH_ENDRX,
    pub publish_txdrdy: PUBLISH_TXDRDY,
    pub publish_endtx: PUBLISH_ENDTX,
    pub publish_error: PUBLISH_ERROR,
    pub publish_rxto: PUBLISH_RXTO,
    pub publish_rxstarted: PUBLISH_RXSTARTED,
    pub publish_txstarted: PUBLISH_TXSTARTED,
    pub publish_txstopped: PUBLISH_TXSTOPPED,
    pub shorts: SHORTS,
    pub inten: INTEN,
    pub intenset: INTENSET,
    pub intenclr: INTENCLR,
    pub errorsrc: ERRORSRC,
    pub enable: ENABLE,
    pub psel: PSEL,
    pub baudrate: BAUDRATE,
    pub rxd: RXD,
    pub txd: TXD,
    pub config: CONFIG,
    // some fields omitted
}

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_flushrx: TASKS_FLUSHRX

0x2c - Flush RX FIFO into RX buffer

subscribe_startrx: SUBSCRIBE_STARTRX

0x80 - Subscribe configuration for task STARTRX

subscribe_stoprx: SUBSCRIBE_STOPRX

0x84 - Subscribe configuration for task STOPRX

subscribe_starttx: SUBSCRIBE_STARTTX

0x88 - Subscribe configuration for task STARTTX

subscribe_stoptx: SUBSCRIBE_STOPTX

0x8c - Subscribe configuration for task STOPTX

subscribe_flushrx: SUBSCRIBE_FLUSHRX

0xac - Subscribe configuration for task FLUSHRX

events_cts: EVENTS_CTS

0x100 - CTS is activated (set low). Clear To Send.

events_ncts: EVENTS_NCTS

0x104 - CTS is deactivated (set high). Not Clear To Send.

events_rxdrdy: EVENTS_RXDRDY

0x108 - Data received in RXD (but potentially not yet transferred to Data RAM)

events_endrx: EVENTS_ENDRX

0x110 - Receive buffer is filled up

events_txdrdy: EVENTS_TXDRDY

0x11c - Data sent from TXD

events_endtx: EVENTS_ENDTX

0x120 - Last TX byte transmitted

events_error: EVENTS_ERROR

0x124 - Error detected

events_rxto: EVENTS_RXTO

0x144 - Receiver timeout

events_rxstarted: EVENTS_RXSTARTED

0x14c - UART receiver has started

events_txstarted: EVENTS_TXSTARTED

0x150 - UART transmitter has started

events_txstopped: EVENTS_TXSTOPPED

0x158 - Transmitter stopped

publish_cts: PUBLISH_CTS

0x180 - Publish configuration for event CTS

publish_ncts: PUBLISH_NCTS

0x184 - Publish configuration for event NCTS

publish_rxdrdy: PUBLISH_RXDRDY

0x188 - Publish configuration for event RXDRDY

publish_endrx: PUBLISH_ENDRX

0x190 - Publish configuration for event ENDRX

publish_txdrdy: PUBLISH_TXDRDY

0x19c - Publish configuration for event TXDRDY

publish_endtx: PUBLISH_ENDTX

0x1a0 - Publish configuration for event ENDTX

publish_error: PUBLISH_ERROR

0x1a4 - Publish configuration for event ERROR

publish_rxto: PUBLISH_RXTO

0x1c4 - Publish configuration for event RXTO

publish_rxstarted: PUBLISH_RXSTARTED

0x1cc - Publish configuration for event RXSTARTED

publish_txstarted: PUBLISH_TXSTARTED

0x1d0 - Publish configuration for event TXSTARTED

publish_txstopped: PUBLISH_TXSTOPPED

0x1d8 - Publish configuration for event TXSTOPPED

shorts: SHORTS

0x200 - Shortcuts between local events and tasks

inten: INTEN

0x300 - Enable or disable interrupt

intenset: INTENSET

0x304 - Enable interrupt

intenclr: INTENCLR

0x308 - Disable interrupt

errorsrc: ERRORSRC

0x480 - Error source Note : this register is read / write one to clear.

enable: ENABLE

0x500 - Enable UART

psel: PSEL

0x508 - Unspecified

baudrate: BAUDRATE

0x524 - Baud rate. Accuracy depends on the HFCLK source selected.

rxd: RXD

0x534 - RXD EasyDMA channel

txd: TXD

0x544 - TXD EasyDMA channel

config: CONFIG

0x56c - Configuration of parity and hardware flow control

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.