|
| void | hal_uart_uartifls_set_rxiflsel (uart_bus_t bus, uint32_t val) |
| |
| void | hal_uart_int_set (uart_bus_t bus, uint32_t reg, uint32_t int_id, uint32_t val) |
| |
| void | hal_uart_set_fifo_en (uart_bus_t uart, hal_uart_fifo_t fifo) |
| | Sets FIFO enabled or not.
|
| |
| uint16_t | hal_uart_get_rx_fifo_level (uart_bus_t uart) |
| | Obtains the RX FIFO trigger level in bytes, as configured by hal_uart_init_fifo
|
| |
| volatile uint32_t * | hal_uart_get_data_register (uart_bus_t uart) |
| | Returns a pointer to the data register to write or read from.
|
| |
| uint32_t | hal_uart_get_error_status (uart_bus_t uart) |
| | Returns a pointer to the error register to read from.
|
| |
| void | hal_uart_set_baud_rate (uart_bus_t uart, uint32_t baud, uint32_t uart_clk) |
| | Sets the baud rate.
|
| |
| uint32_t | hal_uart_get_baud_rate (uart_bus_t uart, uint32_t uart_clk) |
| | Reads the baud rate back from the registers
|
| |
| void | hal_uart_set_data_bits (uart_bus_t uart, hal_uart_data_bit_t bits) |
| | Sets the data bits to use in the uart.
|
| |
| void | hal_uart_set_stop_bits (uart_bus_t uart, hal_uart_stop_bit_t bits) |
| | Sets the data bits to use in the uart.
|
| |
| void | hal_uart_set_parity (uart_bus_t uart, hal_uart_parity_t parity) |
| | Sets the parity bits to use in the uart.
|
| |
| void | hal_uart_disable_uart (uart_bus_t uart) |
| | Disables the uart.
|
| |
| void | hal_uart_enable_interrupt (uart_bus_t uart, hal_uart_interrupt_t interrupt_type, bool val) |
| | Enables the uart interrupt type specified
|
| |
| void | hal_uart_disable_interrupt (uart_bus_t uart, hal_uart_interrupt_t interrupt_type) |
| | Disables the uart interrupt type specified
|
| |
| void | hal_uart_clear_interrupt (uart_bus_t uart, hal_uart_interrupt_t interrupt_type) |
| | Clears the uart interrupt type specified.
|
| |
| uint32_t | hal_uart_get_fifo_status (uart_bus_t uart) |
| | Returns the raw fifo status of the uart.
|
| |
| void | hal_uart_force_tx_isr (uart_bus_t uart) |
| | Forces the pending excecution of the tx isr in an interrupt context.
|
| |
| void | hal_uart_force_idle_isr (uart_bus_t uart) |
| | Forces the pending excecution of the idle isr in an interrupt context.
|
| |
| bool | hal_uart_switch_trx (uart_bus_t uart, bool switch_trx) |
| | Switch the TRX of the specified UART, uart_l default value PIN50: rx; PIN51: tx. uart_h default value PIN36: tx; PIN37: rx. uart_m default value PIN30: tx; PIN31: rx.
|
| |
| void | hal_uart_isr (uart_bus_t uart) |
| | Generic ISR for UARTs called from the specific handler.
|
| |
| void | hal_uart_clear_pending (uart_bus_t uart) |
| | Clear the pending status of the corresponding uart
|
| |
| void | hal_uart_check_en (uart_bus_t uart, bool val) |
| | Enable/disable uart parity check.
|
| |
| void | hal_uart_parity_en (uart_bus_t uart, hal_uart_parity_t val) |
| | Select uart odd/even parity check.
|
| |
| void | hal_uart_sir_mode_en (uart_bus_t uart, bool val) |
| | Enable/disable uart sir mode.
|
| |
| void | hal_uart_tx_pause_en (uart_bus_t uart, bool val) |
| | Enable/disable uart tx pause.
|
| |
| void | hal_uart_set_baud_div (uart_bus_t uart, uint8_t val) |
| | Sets the sample baud rate to use in the uart.
|
| |
| uint32_t | hal_uart_get_baud_div (uart_bus_t uart) |
| | Returns the sample baud rate of the uart.
|
| |
| bool | hal_uart_get_error_status_parity (uart_bus_t uart) |
| | Get the parity error status
|
| |
| bool | hal_uart_get_error_status_fram (uart_bus_t uart) |
| | Get the frame error status
|
| |
| bool | hal_uart_get_error_status_break (uart_bus_t uart) |
| | Get the break error status
|
| |
| bool | hal_uart_get_error_status_overrun (uart_bus_t uart) |
| | Get the overrun error status
|
| |
| void | hal_uart_set_dmaen (uart_bus_t bus, uint32_t val) |
| | set uart dma_mode
|
| |