YAHAL
Yet Another Hardware Abstraction Library
Loading...
Searching...
No Matches
uart_rp2350 Class Reference
Inheritance diagram for uart_rp2350:
uart_interface uart_data_interface uart_ctrl_interface

Public Member Functions

 uart_rp2350 (gpio_pin_t tx_pin=BC_UART_TX, gpio_pin_t rx_pin=BC_UART_RX, uint32_t baud=115200, uart_mode_t mode=UART::BITS_8|UART::NO_PARITY|UART::STOPBITS_1)
 
bool available () override
 
char getc () override
 
void putc (char c) override
 
int puts (const char *s)
 
void uartMode (uart_mode_t mode) override
 
void setBaudrate (uint32_t) override
 
void sendBreak (uint16_t ms) override
 
void setDTR (bool dtr) override
 
void setRTS (bool rts) override
 
void uartAttachIrq (function< void(char)> f) override
 
void uartDetachIrq () override
 
void uartEnableIrq () override
 
void uartDisableIrq () override
 
void enableFIFO (bool) override
 
- Public Member Functions inherited from uart_data_interface
- Public Member Functions inherited from uart_ctrl_interface

Friends

void UART0_IRQ_Handler (void)
 
void UART1_IRQ_Handler (void)
 

Detailed Description

Definition at line 33 of file uart_rp2350.h.

Constructor & Destructor Documentation

◆ uart_rp2350()

uart_rp2350::uart_rp2350 ( gpio_pin_t tx_pin = BC_UART_TX,
gpio_pin_t rx_pin = BC_UART_RX,
uint32_t baud = 115200,
uart_mode_t mode = UART::BITS_8 | UART::NO_PARITY | UART::STOPBITS_1 )
explicit

Definition at line 31 of file uart_rp2350.cpp.

◆ ~uart_rp2350()

uart_rp2350::~uart_rp2350 ( )
override

Definition at line 85 of file uart_rp2350.cpp.

Member Function Documentation

◆ available()

bool uart_rp2350::available ( )
overridevirtual

Implements uart_data_interface.

Definition at line 98 of file uart_rp2350.cpp.

◆ enableFIFO()

void uart_rp2350::enableFIFO ( bool val)
overridevirtual

Implements uart_ctrl_interface.

Definition at line 218 of file uart_rp2350.cpp.

◆ getc()

char uart_rp2350::getc ( )
overridevirtual

Implements uart_data_interface.

Definition at line 103 of file uart_rp2350.cpp.

◆ putc()

void uart_rp2350::putc ( char c)
overridevirtual

Implements uart_data_interface.

Definition at line 111 of file uart_rp2350.cpp.

◆ puts()

int uart_rp2350::puts ( const char * s)

Definition at line 119 of file uart_rp2350.cpp.

◆ sendBreak()

void uart_rp2350::sendBreak ( uint16_t ms)
overridevirtual

Implements uart_ctrl_interface.

Definition at line 164 of file uart_rp2350.cpp.

◆ setBaudrate()

void uart_rp2350::setBaudrate ( uint32_t baud)
overridevirtual

Implements uart_ctrl_interface.

Definition at line 155 of file uart_rp2350.cpp.

◆ setDTR()

void uart_rp2350::setDTR ( bool dtr)
overridevirtual

Implements uart_ctrl_interface.

Definition at line 176 of file uart_rp2350.cpp.

◆ setRTS()

void uart_rp2350::setRTS ( bool rts)
overridevirtual

Implements uart_ctrl_interface.

Definition at line 180 of file uart_rp2350.cpp.

◆ uartAttachIrq()

void uart_rp2350::uartAttachIrq ( function< void(char)> f)
overridevirtual

Implements uart_data_interface.

Definition at line 184 of file uart_rp2350.cpp.

◆ uartDetachIrq()

void uart_rp2350::uartDetachIrq ( )
overridevirtual

Implements uart_data_interface.

Definition at line 194 of file uart_rp2350.cpp.

◆ uartDisableIrq()

void uart_rp2350::uartDisableIrq ( )
overridevirtual

Implements uart_data_interface.

Definition at line 213 of file uart_rp2350.cpp.

◆ uartEnableIrq()

void uart_rp2350::uartEnableIrq ( )
overridevirtual

Implements uart_data_interface.

Definition at line 208 of file uart_rp2350.cpp.

◆ uartMode()

void uart_rp2350::uartMode ( uart_mode_t mode)
overridevirtual

Implements uart_ctrl_interface.

Definition at line 128 of file uart_rp2350.cpp.

Friends And Related Symbol Documentation

◆ UART0_IRQ_Handler

void UART0_IRQ_Handler ( void )
friend

Definition at line 219 of file uart_rp2040.cpp.

◆ UART1_IRQ_Handler

void UART1_IRQ_Handler ( void )
friend

Definition at line 225 of file uart_rp2040.cpp.


The documentation for this class was generated from the following files: