UART driver APIs. More...
Data Structures | |
| struct | uart_modem_config |
| UART modem config. More... | |
| struct | hpm_uart_rxline_idle_detect_config |
| UART Idle config, suitable for RX and TX. More... | |
| struct | hpm_uart_config |
| UART config. More... | |
| struct | uart_trig_config_t |
| struct | uart_fifo_ctrl_t |
Typedefs | |
| typedef enum parity | parity_setting_t |
| typedef enum num_of_stop_bits | num_of_stop_bits_t |
| typedef enum word_length | word_length_t |
| typedef enum uart_fifo_trg_lvl | uart_fifo_trg_lvl_t |
| typedef enum uart_signal | uart_signal_t |
| typedef enum uart_signal_level | uart_signal_level_t |
| typedef enum uart_modem_stat | uart_modem_stat_t |
| typedef enum uart_intr_enable | uart_intr_enable_t |
| typedef enum uart_intr_id | uart_intr_id_t |
| typedef enum uart_stat | uart_stat_t |
| typedef struct uart_modem_config | uart_modem_config_t |
| UART modem config. More... | |
| typedef enum hpm_uart_rxline_idle_cond | uart_rxline_idle_cond_t |
| UART Idle detection conditions, suitable for RX and TX. More... | |
| typedef struct hpm_uart_rxline_idle_detect_config | uart_rxline_idle_config_t |
| UART Idle config, suitable for RX and TX. More... | |
| typedef struct hpm_uart_config | uart_config_t |
| UART config. More... | |
Functions | |
| static uint8_t | uart_get_fifo_size (UART_Type *ptr) |
| Get fifo size. More... | |
| void | uart_config_fifo_ctrl (UART_Type *ptr, uart_fifo_ctrl_t *ctrl) |
| uart config fifo control More... | |
| static void | uart_clear_rx_fifo (UART_Type *ptr) |
| uart clear rx fifo by reading data More... | |
| static void | uart_enable_rx_function (UART_Type *ptr, bool enable) |
| static void | uart_reset_tx_fifo (UART_Type *ptr) |
| Reset TX Fifo. More... | |
| static void | uart_reset_rx_fifo (UART_Type *ptr) |
| Reset RX Fifo. More... | |
| static void | uart_reset_all_fifo (UART_Type *ptr) |
| [in] Reset both TX and RX Fifo More... | |
| static void | uart_modem_enable_loopback (UART_Type *ptr) |
| Enable modem loopback. More... | |
| static void | uart_modem_disable_loopback (UART_Type *ptr) |
| Disable modem loopback. More... | |
| static void | uart_modem_disable_auto_flow_control (UART_Type *ptr) |
| Disable modem auto flow control. More... | |
| static void | uart_modem_enable_auto_flow_control (UART_Type *ptr) |
| Enable modem auto flow control. More... | |
| static void | uart_modem_config (UART_Type *ptr, uart_modem_config_t *config) |
| Configure modem. More... | |
| static uint8_t | uart_get_modem_status (UART_Type *ptr) |
| Get modem status. More... | |
| static void | uart_write_byte (UART_Type *ptr, uint8_t c) |
| Write byte to TX. More... | |
| static uint8_t | uart_read_byte (UART_Type *ptr) |
| Read byte from RX. More... | |
| static bool | uart_check_modem_status (UART_Type *ptr, uart_modem_stat_t mask) |
| Check modem status with given mask. More... | |
| static void | uart_disable_irq (UART_Type *ptr, uart_intr_enable_t irq_mask) |
| Disable IRQ with mask. More... | |
| static void | uart_enable_irq (UART_Type *ptr, uart_intr_enable_t irq_mask) |
| Enable IRQ with mask. More... | |
| static uint32_t | uart_get_enabled_irq (UART_Type *ptr) |
| Get Enabled IRQ. More... | |
| static uint8_t | uart_get_irq_id (UART_Type *ptr) |
| Get interrupt identification. More... | |
| static void | uart_enable_rxline_idle_detection (UART_Type *ptr) |
| Enable UART RX Idle Line detection logic. More... | |
| static void | uart_disable_rxline_idle_detection (UART_Type *ptr) |
| Disable UART RX Idle Line detection logic. More... | |
| hpm_stat_t | uart_init_rxline_idle_detection (UART_Type *ptr, uart_rxline_idle_config_t rxidle_config) |
| Configure UART RX Line detection. More... | |
| static bool | uart_is_txline_idle (UART_Type *ptr) |
| Determine whether UART TX Line is idle. More... | |
| static void | uart_clear_txline_idle_flag (UART_Type *ptr) |
| Clear UART TX Line Idle Flag. More... | |
| static bool | uart_is_rxline_idle (UART_Type *ptr) |
| Determine whether UART RX Line is idle. More... | |
| static void | uart_clear_rxline_idle_flag (UART_Type *ptr) |
| Clear UART RX Line Idle Flag. More... | |
| static void | uart_enable_txline_idle_detection (UART_Type *ptr) |
| Enable UART TX Idle Line detection logic. More... | |
| static void | uart_disable_txline_idle_detection (UART_Type *ptr) |
| Disable UART TX Idle Line detection logic. More... | |
| hpm_stat_t | uart_init_txline_idle_detection (UART_Type *ptr, uart_rxline_idle_config_t txidle_config) |
| Configure UART TX Line detection. More... | |
| static uint32_t | uart_get_status (UART_Type *ptr) |
| Get status. More... | |
| static bool | uart_check_status (UART_Type *ptr, uart_stat_t mask) |
| Check uart status according to the given status mask. More... | |
| void | uart_default_config (UART_Type *ptr, uart_config_t *config) |
| Get default config. More... | |
| hpm_stat_t | uart_init (UART_Type *ptr, uart_config_t *config) |
| Initialization. More... | |
| hpm_stat_t | uart_send_byte (UART_Type *ptr, uint8_t c) |
| Send one byte after checking thresh hold status. More... | |
| hpm_stat_t | uart_receive_byte (UART_Type *ptr, uint8_t *c) |
| Receive one byte after checking data ready status. More... | |
| hpm_stat_t | uart_try_receive_byte (UART_Type *ptr, uint8_t *c) |
| Try to receive one byte without checking data ready status. More... | |
| void | uart_set_signal_level (UART_Type *ptr, uart_signal_t signal, uart_signal_level_t level) |
| Set uart signal output level. More... | |
| hpm_stat_t | uart_flush (UART_Type *ptr) |
| Flush sending buffer/fifo. More... | |
| hpm_stat_t | uart_receive_data (UART_Type *ptr, uint8_t *buf, uint32_t size_in_byte) |
| Receive bytes blocking. More... | |
| hpm_stat_t | uart_send_data (UART_Type *ptr, uint8_t *buf, uint32_t size_in_byte) |
| Send bytes blocking. More... | |
| hpm_stat_t | uart_set_baudrate (UART_Type *ptr, uint32_t baudrate, uint32_t src_clock_hz) |
| Sets UART baudrate. More... | |
| void | uart_config_transfer_trig_mode (UART_Type *ptr, uart_trig_config_t *config) |
| uart configure transfer trigger mode More... | |
| static void | uart_software_trig_transfer (UART_Type *ptr) |
| uart software trigger transmit More... | |
| static void | uart_enable_hardware_trig_transfer (UART_Type *ptr, bool enable) |
| uart enable hardware trigger mode More... | |
| static uint8_t | uart_get_data_count_in_rx_fifo (UART_Type *ptr) |
| UART get data count in rx fifo. More... | |
| static uint8_t | uart_get_data_count_in_tx_fifo (UART_Type *ptr) |
| UART get data count in tx fifo. More... | |
| static void | uart_enable_9bit_transmit_mode (UART_Type *ptr, bool enable) |
| uart enable 9bit transmit mode More... | |
| static void | uart_enable_address0_match (UART_Type *ptr, uint8_t addr) |
| uart enable address0 match More... | |
| static void | uart_enable_address1_match (UART_Type *ptr, uint8_t addr) |
| uart enable address1 match More... | |
| static void | uart_disable_address0_match (UART_Type *ptr) |
| uart disable address0 match More... | |
| static void | uart_disable_address1_match (UART_Type *ptr) |
| uart disable address1 match More... | |
| static void | uart_disable_address_match (UART_Type *ptr) |
| uart disable address match(address0 and address1) More... | |
| static bool | uart_is_addr_match (UART_Type *ptr) |
| Determine whether address match for 9bit mode. More... | |
| static void | uart_clear_addr_match_flag (UART_Type *ptr) |
| Clear UART address match Flag. More... | |
| static bool | uart_is_addr_match_and_rxidle (UART_Type *ptr) |
| Determine whether address match and rx idle for 9bit mode. More... | |
| static void | uart_clear_addr_match_and_rxidle_flag (UART_Type *ptr) |
| Clear UART address match and rxidle Flag. More... | |
| static bool | uart_is_data_lost (UART_Type *ptr) |
| Determine whether data lost for 9bit mode. More... | |
| static void | uart_clear_data_lost_flag (UART_Type *ptr) |
| Clear UART data lost Flag. More... | |
| static void | uart_modem_write_rts_pin (UART_Type *ptr, uint8_t high) |
| Write RTS level for uart modem mode. More... | |
UART driver APIs.
| typedef enum num_of_stop_bits num_of_stop_bits_t |
#include <drivers/inc/hpm_uart_drv.h>
| typedef enum parity parity_setting_t |
#include <drivers/inc/hpm_uart_drv.h>
| typedef struct hpm_uart_config uart_config_t |
#include <drivers/inc/hpm_uart_drv.h>
UART config.
| typedef enum uart_fifo_trg_lvl uart_fifo_trg_lvl_t |
#include <drivers/inc/hpm_uart_drv.h>
| typedef enum uart_intr_enable uart_intr_enable_t |
#include <drivers/inc/hpm_uart_drv.h>
| typedef enum uart_intr_id uart_intr_id_t |
#include <drivers/inc/hpm_uart_drv.h>
| typedef struct uart_modem_config uart_modem_config_t |
#include <drivers/inc/hpm_uart_drv.h>
UART modem config.
| typedef enum uart_modem_stat uart_modem_stat_t |
#include <drivers/inc/hpm_uart_drv.h>
| typedef enum hpm_uart_rxline_idle_cond uart_rxline_idle_cond_t |
#include <drivers/inc/hpm_uart_drv.h>
UART Idle detection conditions, suitable for RX and TX.
| typedef struct hpm_uart_rxline_idle_detect_config uart_rxline_idle_config_t |
#include <drivers/inc/hpm_uart_drv.h>
UART Idle config, suitable for RX and TX.
| typedef enum uart_signal_level uart_signal_level_t |
#include <drivers/inc/hpm_uart_drv.h>
| typedef enum uart_signal uart_signal_t |
#include <drivers/inc/hpm_uart_drv.h>
| typedef enum uart_stat uart_stat_t |
#include <drivers/inc/hpm_uart_drv.h>
| typedef enum word_length word_length_t |
#include <drivers/inc/hpm_uart_drv.h>
| anonymous enum |
#include <drivers/inc/hpm_uart_drv.h>
UART status.
| Enumerator | |
|---|---|
| status_uart_no_suitable_baudrate_parameter_found | |
#include <drivers/inc/hpm_uart_drv.h>
UART Idle detection conditions, suitable for RX and TX.
| enum num_of_stop_bits |
#include <drivers/inc/hpm_uart_drv.h>
| Enumerator | |
|---|---|
| stop_bits_1 | |
| stop_bits_1_5 | |
| stop_bits_2 | |
| enum parity |
#include <drivers/inc/hpm_uart_drv.h>
| Enumerator | |
|---|---|
| parity_none | |
| parity_odd | |
| parity_even | |
| parity_always_1 | |
| parity_always_0 | |
| enum uart_fifo_trg_lvl |
#include <drivers/inc/hpm_uart_drv.h>
| enum uart_intr_enable |
#include <drivers/inc/hpm_uart_drv.h>
| enum uart_intr_id |
#include <drivers/inc/hpm_uart_drv.h>
| Enumerator | |
|---|---|
| uart_intr_id_modem_stat | |
| uart_intr_id_tx_slot_avail | |
| uart_intr_id_rx_data_avail | |
| uart_intr_id_rx_line_stat | |
| uart_intr_id_rx_timeout | |
| enum uart_modem_stat |
#include <drivers/inc/hpm_uart_drv.h>
| Enumerator | |
|---|---|
| uart_modem_stat_cts | |
| uart_modem_stat_dcts_changed | |
| enum uart_signal |
#include <drivers/inc/hpm_uart_drv.h>
| Enumerator | |
|---|---|
| uart_signal_rts | |
| enum uart_signal_level |
#include <drivers/inc/hpm_uart_drv.h>
| Enumerator | |
|---|---|
| uart_signal_level_high | |
| uart_signal_level_low | |
| enum uart_stat |
#include <drivers/inc/hpm_uart_drv.h>
| Enumerator | |
|---|---|
| uart_stat_data_ready | |
| uart_stat_overrun_error | |
| uart_stat_parity_error | |
| uart_stat_framing_error | |
| uart_stat_line_break | |
| uart_stat_tx_slot_avail | |
| uart_stat_transmitter_empty | |
| uart_stat_rx_fifo_error | |
| enum word_length |
#include <drivers/inc/hpm_uart_drv.h>
| Enumerator | |
|---|---|
| word_length_5_bits | |
| word_length_6_bits | |
| word_length_7_bits | |
| word_length_8_bits | |
|
inlinestatic |
#include <drivers/inc/hpm_uart_drv.h>
Check modem status with given mask.
| [in] | ptr | UART base address |
| mask | Status mask value to be checked against |
| true | if any bit in given mask is set |
| false | if none of any bit in given mask is set |
|
inlinestatic |
#include <drivers/inc/hpm_uart_drv.h>
Check uart status according to the given status mask.
| [in] | ptr | UART base address |
| mask | Status mask value to be checked against |
| true | if any bit in given mask is set |
| false | if none of any bit in given mask is set |
|
inlinestatic |
#include <drivers/inc/hpm_uart_drv.h>
Clear UART address match and rxidle Flag.
| [in] | ptr | UART base address |
|
inlinestatic |
#include <drivers/inc/hpm_uart_drv.h>
Clear UART address match Flag.
| [in] | ptr | UART base address |
|
inlinestatic |
#include <drivers/inc/hpm_uart_drv.h>
Clear UART data lost Flag.
| [in] | ptr | UART base address |
|
inlinestatic |
#include <drivers/inc/hpm_uart_drv.h>
uart clear rx fifo by reading data
| [in] | ptr | UART base address |
|
inlinestatic |
#include <drivers/inc/hpm_uart_drv.h>
Clear UART RX Line Idle Flag.
| [in] | ptr | UART base address |
|
inlinestatic |
#include <drivers/inc/hpm_uart_drv.h>
Clear UART TX Line Idle Flag.
| [in] | ptr | UART base address |
| void uart_config_fifo_ctrl | ( | UART_Type * | ptr, |
| uart_fifo_ctrl_t * | ctrl | ||
| ) |
#include <drivers/inc/hpm_uart_drv.h>
uart config fifo control
| [in] | ptr | UART base address |
| [in] | ctrl | uart_fifo_ctrl_t |
| void uart_config_transfer_trig_mode | ( | UART_Type * | ptr, |
| uart_trig_config_t * | config | ||
| ) |
#include <drivers/inc/hpm_uart_drv.h>
uart configure transfer trigger mode
This function can configure uart to send data in fifo after being triggered
| ptr | UART base address |
| config | uart_trig_config_t config |
| void uart_default_config | ( | UART_Type * | ptr, |
| uart_config_t * | config | ||
| ) |
#include <drivers/inc/hpm_uart_drv.h>
Get default config.
| [in] | ptr | UART base address |
| config | Pointer to the buffer to save default values |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
#include <drivers/inc/hpm_uart_drv.h>
uart disable address match(address0 and address1)
| ptr | UART base address |
|
inlinestatic |
#include <drivers/inc/hpm_uart_drv.h>
Disable IRQ with mask.
| [in] | ptr | UART base address |
| irq_mask | IRQ mask value to be disabled |
|
inlinestatic |
#include <drivers/inc/hpm_uart_drv.h>
Disable UART RX Idle Line detection logic.
| [in] | ptr | UART base address |
|
inlinestatic |
#include <drivers/inc/hpm_uart_drv.h>
Disable UART TX Idle Line detection logic.
| [in] | ptr | UART base address |
|
inlinestatic |
#include <drivers/inc/hpm_uart_drv.h>
uart enable 9bit transmit mode
| ptr | UART base address |
| enable | true for enable, false for disable |
|
inlinestatic |
#include <drivers/inc/hpm_uart_drv.h>
uart enable address0 match
| ptr | UART base address |
| addr | address value |
|
inlinestatic |
#include <drivers/inc/hpm_uart_drv.h>
uart enable address1 match
| ptr | UART base address |
| addr | address value |
|
inlinestatic |
#include <drivers/inc/hpm_uart_drv.h>
uart enable hardware trigger mode
This function enable hardware trigger the transfer, the transfer start when hardware event occured
| ptr | UART base address |
| enable | true for enable, false for disable |
|
inlinestatic |
#include <drivers/inc/hpm_uart_drv.h>
Enable IRQ with mask.
| [in] | ptr | UART base address |
| irq_mask | IRQ mask value to be enabled |
|
inlinestatic |
#include <drivers/inc/hpm_uart_drv.h>
|
inlinestatic |
#include <drivers/inc/hpm_uart_drv.h>
Enable UART RX Idle Line detection logic.
| [in] | ptr | UART base address |
|
inlinestatic |
#include <drivers/inc/hpm_uart_drv.h>
Enable UART TX Idle Line detection logic.
| [in] | ptr | UART base address |
| hpm_stat_t uart_flush | ( | UART_Type * | ptr | ) |
#include <drivers/inc/hpm_uart_drv.h>
Flush sending buffer/fifo.
| [in] | ptr | UART base address |
| status_success | only if it succeeds |
|
inlinestatic |
#include <drivers/inc/hpm_uart_drv.h>
UART get data count in rx fifo.
| ptr | UART base address |
| data | count |
|
inlinestatic |
#include <drivers/inc/hpm_uart_drv.h>
UART get data count in tx fifo.
| ptr | UART base address |
| data | count |
|
inlinestatic |
#include <drivers/inc/hpm_uart_drv.h>
Get Enabled IRQ.
| [in] | ptr | UART base address |
|
inlinestatic |
#include <drivers/inc/hpm_uart_drv.h>
Get fifo size.
| [in] | ptr | UART base address |
| size | of Fifo |
|
inlinestatic |
#include <drivers/inc/hpm_uart_drv.h>
Get interrupt identification.
| [in] | ptr | UART base address |
| interrupt | id |
|
inlinestatic |
#include <drivers/inc/hpm_uart_drv.h>
Get modem status.
| [in] | ptr | UART base address |
| Current | modem status |
|
inlinestatic |
#include <drivers/inc/hpm_uart_drv.h>
Get status.
| [in] | ptr | UART base address |
| current | status |
| hpm_stat_t uart_init | ( | UART_Type * | ptr, |
| uart_config_t * | config | ||
| ) |
#include <drivers/inc/hpm_uart_drv.h>
Initialization.
| [in] | ptr | UART base address |
| config | Pointer to config struct |
| status_success | only if it succeeds |
| hpm_stat_t uart_init_rxline_idle_detection | ( | UART_Type * | ptr, |
| uart_rxline_idle_config_t | rxidle_config | ||
| ) |
#include <drivers/inc/hpm_uart_drv.h>
Configure UART RX Line detection.
| [in] | ptr | UART base address |
| [in] | rxidle_config | RXLine IDLE detection configuration |
| status_success | if no error occurs |
| hpm_stat_t uart_init_txline_idle_detection | ( | UART_Type * | ptr, |
| uart_rxline_idle_config_t | txidle_config | ||
| ) |
#include <drivers/inc/hpm_uart_drv.h>
Configure UART TX Line detection.
| [in] | ptr | UART base address |
| [in] | txidle_config | TXLine IDLE detection configuration |
| status_success | if no error occurs |
|
inlinestatic |
#include <drivers/inc/hpm_uart_drv.h>
Determine whether address match for 9bit mode.
| [in] | ptr | UART base address |
| false | if uart address is not match |
|
inlinestatic |
#include <drivers/inc/hpm_uart_drv.h>
Determine whether address match and rx idle for 9bit mode.
| [in] | ptr | UART base address |
| false | if uart address is not match and not rx idle |
|
inlinestatic |
#include <drivers/inc/hpm_uart_drv.h>
Determine whether data lost for 9bit mode.
| [in] | ptr | UART base address |
| false | if uart data is not lost |
|
inlinestatic |
#include <drivers/inc/hpm_uart_drv.h>
Determine whether UART RX Line is idle.
| [in] | ptr | UART base address |
| false | if uart RX line is not idle |
|
inlinestatic |
#include <drivers/inc/hpm_uart_drv.h>
Determine whether UART TX Line is idle.
| [in] | ptr | UART base address |
| false | if uart TX line is not idle |
|
inlinestatic |
#include <drivers/inc/hpm_uart_drv.h>
Configure modem.
| [in] | ptr | UART base address |
| config | Pointer to modem config struct |
|
inlinestatic |
#include <drivers/inc/hpm_uart_drv.h>
Disable modem auto flow control.
| [in] | ptr | UART base address |
|
inlinestatic |
|
inlinestatic |
#include <drivers/inc/hpm_uart_drv.h>
Enable modem auto flow control.
| [in] | ptr | UART base address |
|
inlinestatic |
|
inlinestatic |
#include <drivers/inc/hpm_uart_drv.h>
Write RTS level for uart modem mode.
| [in] | ptr | UART base address |
| high | RTS set to high when it is set to true |
|
inlinestatic |
#include <drivers/inc/hpm_uart_drv.h>
Read byte from RX.
| ptr | UART base address |
| RX | byte |
| hpm_stat_t uart_receive_byte | ( | UART_Type * | ptr, |
| uint8_t * | c | ||
| ) |
#include <drivers/inc/hpm_uart_drv.h>
Receive one byte after checking data ready status.
| [in] | ptr | UART base address |
| c | Pointer to buffer to save the byte received on UART |
| status_success | only if it succeeds |
| hpm_stat_t uart_receive_data | ( | UART_Type * | ptr, |
| uint8_t * | buf, | ||
| uint32_t | size_in_byte | ||
| ) |
#include <drivers/inc/hpm_uart_drv.h>
Receive bytes blocking.
| [in] | ptr | UART base address |
| buf | Pointer to the buffer to save received data | |
| size_in_byte | Size in byte to be sent |
| status_success | only if it succeeds |
|
inlinestatic |
#include <drivers/inc/hpm_uart_drv.h>
[in] Reset both TX and RX Fifo
| [in] | ptr | UART base address |
|
inlinestatic |
|
inlinestatic |
| hpm_stat_t uart_send_byte | ( | UART_Type * | ptr, |
| uint8_t | c | ||
| ) |
#include <drivers/inc/hpm_uart_drv.h>
Send one byte after checking thresh hold status.
| [in] | ptr | UART base address |
| c | Byte to be sent |
| status_success | only if it succeeds |
| hpm_stat_t uart_send_data | ( | UART_Type * | ptr, |
| uint8_t * | buf, | ||
| uint32_t | size_in_byte | ||
| ) |
#include <drivers/inc/hpm_uart_drv.h>
Send bytes blocking.
| [in] | ptr | UART base address |
| buf | Pointer to the buffer to be sent | |
| size_in_byte | Size in byte to be sent |
| status_success | only if it succeeds |
| hpm_stat_t uart_set_baudrate | ( | UART_Type * | ptr, |
| uint32_t | baudrate, | ||
| uint32_t | src_clock_hz | ||
| ) |
#include <drivers/inc/hpm_uart_drv.h>
Sets UART baudrate.
This function configures the UART module baud rate. This function is used to update the UART module baud rate after the UART module is initialized by the uart_init.
| ptr | UART base address |
| baudrate | UART baudrate to be set |
| src_clock_hz | UART clock source frequency in Hz. |
| status_uart_no_suitable_baudrate_parameter_found | Baudrate is not supported in the current clock source |
| status_success | Set baudrate succeeded. |
| void uart_set_signal_level | ( | UART_Type * | ptr, |
| uart_signal_t | signal, | ||
| uart_signal_level_t | level | ||
| ) |
#include <drivers/inc/hpm_uart_drv.h>
Set uart signal output level.
| [in] | ptr | UART base address |
| signal | Target signal | |
| level | Target signal level |
|
inlinestatic |
#include <drivers/inc/hpm_uart_drv.h>
uart software trigger transmit
This function immediately triggers the transfer, the transfer configed by uart_config_transfer_trig_mode()
| ptr | UART base address |
| hpm_stat_t uart_try_receive_byte | ( | UART_Type * | ptr, |
| uint8_t * | c | ||
| ) |
#include <drivers/inc/hpm_uart_drv.h>
Try to receive one byte without checking data ready status.
| [in] | ptr | UART base address |
| c | Pointer to buffer to save the byte received on UART |
| status_success | only if it succeeds |
|
inlinestatic |
#include <drivers/inc/hpm_uart_drv.h>
Write byte to TX.
| ptr | UART base address |
| c | data to be sent |