Struct esp32_hal::peripherals::UART0
source · pub struct UART0 { /* private fields */ }
Implementations§
source§impl UART0
impl UART0
sourcepub unsafe fn steal() -> UART0
pub unsafe fn steal() -> UART0
Unsafely create an instance of this peripheral out of thin air.
§Safety
You must ensure that you’re only using one instance of this type at a time.
Methods from Deref<Target = RegisterBlock>§
sourcepub fn int_raw(&self) -> &Reg<INT_RAW_SPEC>
pub fn int_raw(&self) -> &Reg<INT_RAW_SPEC>
0x04 -
sourcepub fn int_st(&self) -> &Reg<INT_ST_SPEC>
pub fn int_st(&self) -> &Reg<INT_ST_SPEC>
0x08 -
sourcepub fn int_ena(&self) -> &Reg<INT_ENA_SPEC>
pub fn int_ena(&self) -> &Reg<INT_ENA_SPEC>
0x0c -
sourcepub fn int_clr(&self) -> &Reg<INT_CLR_SPEC>
pub fn int_clr(&self) -> &Reg<INT_CLR_SPEC>
0x10 -
sourcepub fn clkdiv(&self) -> &Reg<CLKDIV_SPEC>
pub fn clkdiv(&self) -> &Reg<CLKDIV_SPEC>
0x14 -
sourcepub fn autobaud(&self) -> &Reg<AUTOBAUD_SPEC>
pub fn autobaud(&self) -> &Reg<AUTOBAUD_SPEC>
0x18 -
sourcepub fn status(&self) -> &Reg<STATUS_SPEC>
pub fn status(&self) -> &Reg<STATUS_SPEC>
0x1c -
sourcepub fn conf0(&self) -> &Reg<CONF0_SPEC>
pub fn conf0(&self) -> &Reg<CONF0_SPEC>
0x20 -
sourcepub fn conf1(&self) -> &Reg<CONF1_SPEC>
pub fn conf1(&self) -> &Reg<CONF1_SPEC>
0x24 -
sourcepub fn lowpulse(&self) -> &Reg<LOWPULSE_SPEC>
pub fn lowpulse(&self) -> &Reg<LOWPULSE_SPEC>
0x28 -
sourcepub fn highpulse(&self) -> &Reg<HIGHPULSE_SPEC>
pub fn highpulse(&self) -> &Reg<HIGHPULSE_SPEC>
0x2c -
sourcepub fn rxd_cnt(&self) -> &Reg<RXD_CNT_SPEC>
pub fn rxd_cnt(&self) -> &Reg<RXD_CNT_SPEC>
0x30 -
sourcepub fn flow_conf(&self) -> &Reg<FLOW_CONF_SPEC>
pub fn flow_conf(&self) -> &Reg<FLOW_CONF_SPEC>
0x34 -
sourcepub fn sleep_conf(&self) -> &Reg<SLEEP_CONF_SPEC>
pub fn sleep_conf(&self) -> &Reg<SLEEP_CONF_SPEC>
0x38 -
sourcepub fn swfc_conf(&self) -> &Reg<SWFC_CONF_SPEC>
pub fn swfc_conf(&self) -> &Reg<SWFC_CONF_SPEC>
0x3c -
sourcepub fn idle_conf(&self) -> &Reg<IDLE_CONF_SPEC>
pub fn idle_conf(&self) -> &Reg<IDLE_CONF_SPEC>
0x40 -
sourcepub fn rs485_conf(&self) -> &Reg<RS485_CONF_SPEC>
pub fn rs485_conf(&self) -> &Reg<RS485_CONF_SPEC>
0x44 -
sourcepub fn at_cmd_precnt(&self) -> &Reg<AT_CMD_PRECNT_SPEC>
pub fn at_cmd_precnt(&self) -> &Reg<AT_CMD_PRECNT_SPEC>
0x48 -
sourcepub fn at_cmd_postcnt(&self) -> &Reg<AT_CMD_POSTCNT_SPEC>
pub fn at_cmd_postcnt(&self) -> &Reg<AT_CMD_POSTCNT_SPEC>
0x4c -
sourcepub fn at_cmd_gaptout(&self) -> &Reg<AT_CMD_GAPTOUT_SPEC>
pub fn at_cmd_gaptout(&self) -> &Reg<AT_CMD_GAPTOUT_SPEC>
0x50 -
sourcepub fn at_cmd_char(&self) -> &Reg<AT_CMD_CHAR_SPEC>
pub fn at_cmd_char(&self) -> &Reg<AT_CMD_CHAR_SPEC>
0x54 -
sourcepub fn mem_conf(&self) -> &Reg<MEM_CONF_SPEC>
pub fn mem_conf(&self) -> &Reg<MEM_CONF_SPEC>
0x58 -
sourcepub fn mem_tx_status(&self) -> &Reg<MEM_TX_STATUS_SPEC>
pub fn mem_tx_status(&self) -> &Reg<MEM_TX_STATUS_SPEC>
0x5c -
sourcepub fn mem_rx_status(&self) -> &Reg<MEM_RX_STATUS_SPEC>
pub fn mem_rx_status(&self) -> &Reg<MEM_RX_STATUS_SPEC>
0x60 -
sourcepub fn mem_cnt_status(&self) -> &Reg<MEM_CNT_STATUS_SPEC>
pub fn mem_cnt_status(&self) -> &Reg<MEM_CNT_STATUS_SPEC>
0x64 -
sourcepub fn pospulse(&self) -> &Reg<POSPULSE_SPEC>
pub fn pospulse(&self) -> &Reg<POSPULSE_SPEC>
0x68 -
sourcepub fn negpulse(&self) -> &Reg<NEGPULSE_SPEC>
pub fn negpulse(&self) -> &Reg<NEGPULSE_SPEC>
0x6c -
Trait Implementations§
source§impl Peripheral for UART0
impl Peripheral for UART0
source§impl Instance for UART0
impl Instance for UART0
fn register_block() -> &'static RegisterBlock
fn uart_number() -> usize
fn tx_signal() -> OutputSignal
fn rx_signal() -> InputSignal
fn cts_signal() -> InputSignal
fn rts_signal() -> OutputSignal
fn enable_peripheral()
fn disable_tx_interrupts()
fn disable_rx_interrupts()
fn get_tx_fifo_count() -> u16
fn get_rx_fifo_count() -> u16
fn is_tx_idle() -> bool
fn is_rx_idle() -> bool
Auto Trait Implementations§
impl RefUnwindSafe for UART0
impl Send for UART0
impl Sync for UART0
impl Unpin for UART0
impl UnwindSafe for UART0
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more