TMPM4KxA Group Peripheral Driver User Manual
V1.0.4.0
|
This file provides API functions for UART driver. More...
Functions | |
__STATIC_INLINE int32_t | check_param_cts_handshake (uint32_t param) |
Check the CTS Handshake's parameter. More... | |
__STATIC_INLINE int32_t | check_param_rts_handshake (uint32_t param) |
Check the RTS Handshake's parameter. More... | |
__STATIC_INLINE int32_t | check_param_data_complemention (uint32_t param) |
Check the Data Complementation's parameter. More... | |
__STATIC_INLINE int32_t | check_param_data_direction (uint32_t param) |
Check the Data Direction's parameter. More... | |
__STATIC_INLINE int32_t | check_param_stop_bit (uint32_t param) |
Check the Stop Bit's parameter. More... | |
__STATIC_INLINE int32_t | check_param_parity_bit (uint32_t param) |
Check the Parity Bit's parameter. More... | |
__STATIC_INLINE int32_t | check_param_parity_enable (uint32_t param) |
Check the Parity Enable's parameter. More... | |
__STATIC_INLINE int32_t | check_param_data_length (uint32_t param) |
Check the Data Length's parameter. More... | |
__STATIC_INLINE int32_t | check_param_tx_fill_level_range (uint32_t param) |
Check the Tx Fill Level Range's parameter. More... | |
__STATIC_INLINE int32_t | check_param_rx_fill_level_range (uint32_t param) |
Check the Rx Fill Level's parameter. More... | |
__STATIC_INLINE int32_t | check_param_tx_fifo_int (uint32_t param) |
Check the Tx FIFO Interrpt's parameter. More... | |
__STATIC_INLINE int32_t | check_param_tx_int (uint32_t param) |
Check the Tx Interrpt's parameter. More... | |
__STATIC_INLINE int32_t | check_param_rx_fifo_int (uint32_t param) |
Check the Rx FIFO Interrpt's parameter. More... | |
__STATIC_INLINE int32_t | check_param_rx_int (uint32_t param) |
Check the Rx Interrpt's parameter. More... | |
__STATIC_INLINE int32_t | check_param_err_int (uint32_t param) |
Check the Error Interrupt's parameter. More... | |
__STATIC_INLINE int32_t | check_param_prescaler (uint32_t param) |
Check the Prescaler's parameter. More... | |
__STATIC_INLINE int32_t | check_param_division (uint32_t param) |
Check the Division's parameter. More... | |
__STATIC_INLINE int32_t | check_param_rangeK (uint32_t param) |
Check the Range K's parameter. More... | |
__STATIC_INLINE int32_t | check_param_rangeN (uint32_t param) |
Check the Range N's parameter. More... | |
__STATIC_INLINE int32_t | check_param_tx_buff_num (uint32_t param) |
Check the num of buff for transmit. More... | |
__STATIC_INLINE int32_t | check_param_rx_buff_num (uint32_t param) |
Check the num of buff for receive. More... | |
__STATIC_INLINE uint32_t | convert_tx_fifo_fill_level_to_reg (uint32_t level) |
Convert Tx FIFO fill level to register. More... | |
__STATIC_INLINE uint32_t | convert_rx_fifo_fill_level_to_reg (uint32_t level) |
Convert Rx FIFO fill level to register. More... | |
__STATIC_INLINE int32_t | check_param_noize_filter (uint32_t param) |
Check the Noize Fileter's parameter. More... | |
TXZ_Result | uart_init (uart_t *p_obj) |
Initialize the UART object. More... | |
TXZ_Result | uart_deinit (uart_t *p_obj) |
Release the UART object. More... | |
TXZ_Result | uart_discard_transmit (uart_t *p_obj) |
Discard transmit. More... | |
TXZ_Result | uart_discard_receive (uart_t *p_obj) |
Discard receive. More... | |
TXZ_Result | uart_transmitIt (uart_t *p_obj, uart_transmit_t *p_info) |
Transmit data. Non-Blocking Communication. More... | |
TXZ_Result | uart_receiveIt (uart_t *p_obj, uart_receive_t *p_info) |
Receive data. Non-Blocking Communication. More... | |
void | uart_transmit_irq_handler (uart_t *p_obj) |
IRQ Handler for transmit. More... | |
void | uart_receive_irq_handler (uart_t *p_obj) |
IRQ Handler for receive. More... | |
void | uart_error_irq_handler (uart_t *p_obj) |
IRQ Handler for error. More... | |
TXZ_Result | uart_get_status (uart_t *p_obj, uint32_t *p_status) |
Get status. More... | |
TXZ_Result | uart_get_error (uart_t *p_obj, uint32_t *p_error) |
Get error information. More... | |
TXZ_Result | uart_get_boudrate_setting (uint32_t clock, uart_clock_t *p_clk, uint32_t boudrate, uart_boudrate_t *p_brd) |
Get the setting of boudrate. More... | |
Variables | |
C | |
This file provides API functions for UART driver.
DO NOT USE THIS SOFTWARE WITHOUT THE SOFTWARE LICENSE AGREEMENT.
(C)Copyright TOSHIBA MICROELECTRONICS CORPORATION 2017 All rights reserved
__STATIC_INLINE int32_t check_param_cts_handshake | ( | uint32_t | param | ) |
Check the CTS Handshake's parameter.
param | :CTS Handshake's parameter |
UART_PARAM_OK | :Valid |
UART_PARAM_NG | :Invalid |
__STATIC_INLINE int32_t check_param_data_complemention | ( | uint32_t | param | ) |
Check the Data Complementation's parameter.
param | :Data Complementation's parameter |
UART_PARAM_OK | :Valid |
UART_PARAM_NG | :Invalid |
__STATIC_INLINE int32_t check_param_data_direction | ( | uint32_t | param | ) |
Check the Data Direction's parameter.
param | :Data Direction's parameter |
UART_PARAM_OK | :Valid |
UART_PARAM_NG | :Invalid |
__STATIC_INLINE int32_t check_param_data_length | ( | uint32_t | param | ) |
Check the Data Length's parameter.
param | :Data Length's parameter |
UART_PARAM_OK | :Valid |
UART_PARAM_NG | :Invalid |
__STATIC_INLINE int32_t check_param_division | ( | uint32_t | param | ) |
Check the Division's parameter.
param | :Division's parameter |
UART_PARAM_OK | :Valid |
UART_PARAM_NG | :Invalid |
__STATIC_INLINE int32_t check_param_err_int | ( | uint32_t | param | ) |
Check the Error Interrupt's parameter.
param | :Error Interrupt's parameter |
UART_PARAM_OK | :Valid |
UART_PARAM_NG | :Invalid |
__STATIC_INLINE int32_t check_param_noize_filter | ( | uint32_t | param | ) |
Check the Noize Fileter's parameter.
param | :Noize fileter's parameter |
UART_PARAM_OK | :Valid |
UART_PARAM_NG | :Invalid |
__STATIC_INLINE int32_t check_param_parity_bit | ( | uint32_t | param | ) |
Check the Parity Bit's parameter.
param | :Parity Bit's parameter |
UART_PARAM_OK | :Valid |
UART_PARAM_NG | :Invalid |
__STATIC_INLINE int32_t check_param_parity_enable | ( | uint32_t | param | ) |
Check the Parity Enable's parameter.
param | :Parity Enable's parameter |
UART_PARAM_OK | :Valid |
UART_PARAM_NG | :Invalid |
__STATIC_INLINE int32_t check_param_prescaler | ( | uint32_t | param | ) |
Check the Prescaler's parameter.
param | :Prescaler's parameter |
UART_PARAM_OK | :Valid |
UART_PARAM_NG | :Invalid |
__STATIC_INLINE int32_t check_param_rangeK | ( | uint32_t | param | ) |
Check the Range K's parameter.
param | :Range K's parameter |
UART_PARAM_OK | :Valid |
UART_PARAM_NG | :Invalid |
__STATIC_INLINE int32_t check_param_rangeN | ( | uint32_t | param | ) |
Check the Range N's parameter.
param | :Range N's parameter |
UART_PARAM_OK | :Valid |
UART_PARAM_NG | :Invalid |
__STATIC_INLINE int32_t check_param_rts_handshake | ( | uint32_t | param | ) |
Check the RTS Handshake's parameter.
param | :RTS Handshake's parameter |
UART_PARAM_OK | :Valid |
UART_PARAM_NG | :Invalid |
__STATIC_INLINE int32_t check_param_rx_buff_num | ( | uint32_t | param | ) |
Check the num of buff for receive.
param | :Num of buff. |
UART_PARAM_OK | :Valid |
UART_PARAM_NG | :Invalid |
__STATIC_INLINE int32_t check_param_rx_fifo_int | ( | uint32_t | param | ) |
Check the Rx FIFO Interrpt's parameter.
param | :Rx FIFO Interrpt's parameter |
UART_PARAM_OK | :Valid |
UART_PARAM_NG | :Invalid |
__STATIC_INLINE int32_t check_param_rx_fill_level_range | ( | uint32_t | param | ) |
Check the Rx Fill Level's parameter.
param | :Rx Fill Level's parameter |
UART_PARAM_OK | :Valid |
UART_PARAM_NG | :Invalid |
__STATIC_INLINE int32_t check_param_rx_int | ( | uint32_t | param | ) |
Check the Rx Interrpt's parameter.
param | :Rx Interrpt's parameter |
UART_PARAM_OK | :Valid |
UART_PARAM_NG | :Invalid |
__STATIC_INLINE int32_t check_param_stop_bit | ( | uint32_t | param | ) |
Check the Stop Bit's parameter.
param | :Stop Bit's parameter |
UART_PARAM_OK | :Valid |
UART_PARAM_NG | :Invalid |
__STATIC_INLINE int32_t check_param_tx_buff_num | ( | uint32_t | param | ) |
Check the num of buff for transmit.
param | :Num of buff. |
UART_PARAM_OK | :Valid |
UART_PARAM_NG | :Invalid |
__STATIC_INLINE int32_t check_param_tx_fifo_int | ( | uint32_t | param | ) |
Check the Tx FIFO Interrpt's parameter.
param | :Tx FIFO Interrpt's parameter |
UART_PARAM_OK | :Valid |
UART_PARAM_NG | :Invalid |
__STATIC_INLINE int32_t check_param_tx_fill_level_range | ( | uint32_t | param | ) |
Check the Tx Fill Level Range's parameter.
param | :Tx Fill Level Range's parameter |
UART_PARAM_OK | :Valid |
UART_PARAM_NG | :Invalid |
__STATIC_INLINE int32_t check_param_tx_int | ( | uint32_t | param | ) |
Check the Tx Interrpt's parameter.
param | :Tx Interrpt's parameter |
UART_PARAM_OK | :Valid |
UART_PARAM_NG | :Invalid |
__STATIC_INLINE uint32_t convert_rx_fifo_fill_level_to_reg | ( | uint32_t | level | ) |
Convert Rx FIFO fill level to register.
level | :Fill Level. |
Register | value. |
__STATIC_INLINE uint32_t convert_tx_fifo_fill_level_to_reg | ( | uint32_t | level | ) |
Convert Tx FIFO fill level to register.
level | :Fill Level. |
Register | value. |
C |
Disable to get bourate setting. Enable to get bourate setting. When the function finds within error margin, finish calculation. The function calculates all patern(calculates minimum error margin). Error Margin(%). Fiexd Point Bit.