Struct atsame70n21b::USART1

source ·
pub struct USART1 { /* private fields */ }
Expand description

Universal Synchronous Asynchronous Receiver Transmitter

Implementations§

source§

impl USART1

source

pub const PTR: *const RegisterBlock = {0x40028000 as *const usart0::RegisterBlock}

Pointer to the register block

source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

Methods from Deref<Target = RegisterBlock>§

source

pub fn us_cr_lin_mode(&self) -> &US_CR_LIN_MODE

0x00 - Control Register

source

pub fn us_cr_spi_mode(&self) -> &US_CR_SPI_MODE

0x00 - Control Register

source

pub fn us_cr_usart_mode(&self) -> &US_CR_USART_MODE

0x00 - Control Register

source

pub fn us_mr_spi_mode(&self) -> &US_MR_SPI_MODE

0x04 - Mode Register

source

pub fn us_mr_usart_mode(&self) -> &US_MR_USART_MODE

0x04 - Mode Register

source

pub fn us_ier_lon_mode(&self) -> &US_IER_LON_MODE

0x08 - Interrupt Enable Register

source

pub fn us_ier_lin_mode(&self) -> &US_IER_LIN_MODE

0x08 - Interrupt Enable Register

source

pub fn us_ier_spi_mode(&self) -> &US_IER_SPI_MODE

0x08 - Interrupt Enable Register

source

pub fn us_ier_usart_mode(&self) -> &US_IER_USART_MODE

0x08 - Interrupt Enable Register

source

pub fn us_idr_lon_mode(&self) -> &US_IDR_LON_MODE

0x0c - Interrupt Disable Register

source

pub fn us_idr_lin_mode(&self) -> &US_IDR_LIN_MODE

0x0c - Interrupt Disable Register

source

pub fn us_idr_spi_mode(&self) -> &US_IDR_SPI_MODE

0x0c - Interrupt Disable Register

source

pub fn us_idr_usart_mode(&self) -> &US_IDR_USART_MODE

0x0c - Interrupt Disable Register

source

pub fn us_imr_lon_mode(&self) -> &US_IMR_LON_MODE

0x10 - Interrupt Mask Register

source

pub fn us_imr_lin_mode(&self) -> &US_IMR_LIN_MODE

0x10 - Interrupt Mask Register

source

pub fn us_imr_spi_mode(&self) -> &US_IMR_SPI_MODE

0x10 - Interrupt Mask Register

source

pub fn us_imr_usart_mode(&self) -> &US_IMR_USART_MODE

0x10 - Interrupt Mask Register

source

pub fn us_csr_lon_mode(&self) -> &US_CSR_LON_MODE

0x14 - Channel Status Register

source

pub fn us_csr_lin_mode(&self) -> &US_CSR_LIN_MODE

0x14 - Channel Status Register

source

pub fn us_csr_spi_mode(&self) -> &US_CSR_SPI_MODE

0x14 - Channel Status Register

source

pub fn us_csr_usart_mode(&self) -> &US_CSR_USART_MODE

0x14 - Channel Status Register

source

pub fn us_ttgr_lon_mode(&self) -> &US_TTGR_LON_MODE

0x28 - Transmitter Timeguard Register

source

pub fn us_ttgr_usart_mode(&self) -> &US_TTGR_USART_MODE

0x28 - Transmitter Timeguard Register

source

pub fn us_fidi_lon_mode(&self) -> &US_FIDI_LON_MODE

0x40 - FI DI Ratio Register

source

pub fn us_fidi_usart_mode(&self) -> &US_FIDI_USART_MODE

0x40 - FI DI Ratio Register

Trait Implementations§

source§

impl Debug for USART1

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Deref for USART1

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl Send for USART1

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>,

§

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>,

§

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.