Struct atsam4sd16b_pac::USART0

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

Universal Synchronous Asynchronous Receiver Transmitter 0

Implementations§

source§

impl USART0

source

pub const PTR: *const RegisterBlock = {0x40024000 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 spi_mode_cr_spi_mode(&self) -> &SPI_MODE_CR_SPI_MODE

0x00 - Control Register

source

pub fn cr(&self) -> &CR

0x00 - Control Register

source

pub fn spi_mode_mr_spi_mode(&self) -> &SPI_MODE_MR_SPI_MODE

0x04 - Mode Register

source

pub fn mr(&self) -> &MR

0x04 - Mode Register

source

pub fn spi_mode_ier_spi_mode(&self) -> &SPI_MODE_IER_SPI_MODE

0x08 - Interrupt Enable Register

source

pub fn ier(&self) -> &IER

0x08 - Interrupt Enable Register

source

pub fn spi_mode_idr_spi_mode(&self) -> &SPI_MODE_IDR_SPI_MODE

0x0c - Interrupt Disable Register

source

pub fn idr(&self) -> &IDR

0x0c - Interrupt Disable Register

source

pub fn spi_mode_imr_spi_mode(&self) -> &SPI_MODE_IMR_SPI_MODE

0x10 - Interrupt Mask Register

source

pub fn imr(&self) -> &IMR

0x10 - Interrupt Mask Register

source

pub fn spi_mode_csr_spi_mode(&self) -> &SPI_MODE_CSR_SPI_MODE

0x14 - Channel Status Register

source

pub fn csr(&self) -> &CSR

0x14 - Channel Status Register

Trait Implementations§

source§

impl Debug for USART0

source§

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

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

impl Deref for USART0

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl Send for USART0

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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 Twhere 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 Twhere 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.