Lines Matching full:usart

20 	SI32_USART_A_Type *usart;  member
42 if (SI32_USART_A_read_rx_fifo_count(config->usart) != 0) { in usart_si32_poll_in()
43 *c = SI32_USART_A_read_data_u8(config->usart); in usart_si32_poll_in()
54 while (SI32_USART_A_read_tx_fifo_count(config->usart) || in usart_si32_poll_out()
55 SI32_USART_A_is_tx_busy(config->usart)) { in usart_si32_poll_out()
59 SI32_USART_A_write_data_u8(config->usart, c); in usart_si32_poll_out()
67 if (SI32_USART_A_is_tx_fifo_error_interrupt_pending(config->usart)) { in usart_si32_err_check()
68 SI32_USART_A_clear_tx_fifo_error_interrupt(config->usart); in usart_si32_err_check()
71 if (SI32_USART_A_is_rx_overrun_interrupt_pending(config->usart)) { in usart_si32_err_check()
72 SI32_USART_A_clear_rx_overrun_error_interrupt(config->usart); in usart_si32_err_check()
76 if (SI32_USART_A_is_rx_parity_error_interrupt_pending(config->usart)) { in usart_si32_err_check()
77 SI32_USART_A_clear_rx_parity_error_interrupt(config->usart); in usart_si32_err_check()
81 if (SI32_USART_A_is_rx_frame_error_interrupt_pending(config->usart)) { in usart_si32_err_check()
82 SI32_USART_A_clear_rx_frame_error_interrupt(config->usart); in usart_si32_err_check()
99 for (i = 0; i < size && SI32_USART_A_read_tx_fifo_count(config->usart) == 0 && in usart_si32_fifo_fill()
100 !SI32_USART_A_is_tx_busy(config->usart); in usart_si32_fifo_fill()
102 SI32_USART_A_write_data_u8(config->usart, tx_data[i]); in usart_si32_fifo_fill()
114 if (!SI32_USART_A_read_rx_fifo_count(config->usart)) { in usart_si32_fifo_read()
118 rx_data[i] = SI32_USART_A_read_data_u8(config->usart); in usart_si32_fifo_read()
128 SI32_USART_A_enable_tx_data_request_interrupt(config->usart); in usart_si32_irq_tx_enable()
135 SI32_USART_A_disable_tx_data_request_interrupt(config->usart); in usart_si32_irq_tx_disable()
142 return SI32_USART_A_is_tx_data_request_interrupt_pending(config->usart); in usart_si32_irq_tx_ready()
149 return SI32_USART_A_is_tx_complete(config->usart); in usart_si32_irq_tx_complete()
156 SI32_USART_A_enable_rx_data_request_interrupt(config->usart); in usart_si32_irq_rx_enable()
163 SI32_USART_A_disable_rx_data_request_interrupt(config->usart); in usart_si32_irq_rx_disable()
170 return SI32_USART_A_is_rx_data_request_interrupt_pending(config->usart); in usart_si32_irq_rx_ready()
177 SI32_USART_A_enable_rx_error_interrupts(config->usart); in usart_si32_irq_err_enable()
178 SI32_USART_A_enable_tx_error_interrupts(config->usart); in usart_si32_irq_err_enable()
185 SI32_USART_A_disable_rx_error_interrupts(config->usart); in usart_si32_irq_err_disable()
186 SI32_USART_A_disable_tx_error_interrupts(config->usart); in usart_si32_irq_err_disable()
287 if (config->usart == SI32_USART_0) { in usart_si32_init()
290 } else if (config->usart == SI32_USART_1) { in usart_si32_init()
299 SI32_USART_A_exit_loopback_mode(config->usart); in usart_si32_init()
302 SI32_USART_A_enable_rts(config->usart); in usart_si32_init()
303 SI32_USART_A_select_rts_deassert_on_byte_free(config->usart); in usart_si32_init()
304 SI32_USART_A_disable_rts_inversion(config->usart); in usart_si32_init()
306 SI32_USART_A_enable_cts(config->usart); in usart_si32_init()
307 SI32_USART_A_disable_cts_inversion(config->usart); in usart_si32_init()
312 SI32_USART_A_select_tx_parity(config->usart, parity); in usart_si32_init()
313 SI32_USART_A_enable_tx_parity_bit(config->usart); in usart_si32_init()
315 SI32_USART_A_disable_tx_parity_bit(config->usart); in usart_si32_init()
317 SI32_USART_A_select_tx_data_length(config->usart, SI32_USART_A_DATA_LENGTH_8_BITS); in usart_si32_init()
318 SI32_USART_A_enable_tx_start_bit(config->usart); in usart_si32_init()
319 SI32_USART_A_enable_tx_stop_bit(config->usart); in usart_si32_init()
320 SI32_USART_A_select_tx_stop_bits(config->usart, SI32_USART_A_STOP_BITS_1_BIT); in usart_si32_init()
321 SI32_USART_A_set_tx_baudrate(config->usart, (uint16_t)baud_register_value); in usart_si32_init()
322 SI32_USART_A_select_tx_asynchronous_mode(config->usart); in usart_si32_init()
323 SI32_USART_A_disable_tx_signal_inversion(config->usart); in usart_si32_init()
324 SI32_USART_A_select_tx_fifo_threshold_for_request_to_1(config->usart); in usart_si32_init()
325 SI32_USART_A_enable_tx(config->usart); in usart_si32_init()
329 SI32_USART_A_select_rx_parity(config->usart, parity); in usart_si32_init()
330 SI32_USART_A_enable_rx_parity_bit(config->usart); in usart_si32_init()
332 SI32_USART_A_disable_rx_parity_bit(config->usart); in usart_si32_init()
334 SI32_USART_A_select_rx_data_length(config->usart, SI32_USART_A_DATA_LENGTH_8_BITS); in usart_si32_init()
335 SI32_USART_A_enable_rx_start_bit(config->usart); in usart_si32_init()
336 SI32_USART_A_enable_rx_stop_bit(config->usart); in usart_si32_init()
337 SI32_USART_A_select_rx_stop_bits(config->usart, SI32_USART_A_STOP_BITS_1_BIT); in usart_si32_init()
338 SI32_USART_A_set_rx_baudrate(config->usart, (uint16_t)baud_register_value); in usart_si32_init()
339 SI32_USART_A_select_rx_asynchronous_mode(config->usart); in usart_si32_init()
340 SI32_USART_A_disable_rx_signal_inversion(config->usart); in usart_si32_init()
341 SI32_USART_A_select_rx_fifo_threshold_1(config->usart); in usart_si32_init()
342 SI32_USART_A_enable_rx(config->usart); in usart_si32_init()
344 SI32_USART_A_flush_tx_fifo(config->usart); in usart_si32_init()
345 SI32_USART_A_flush_rx_fifo(config->usart); in usart_si32_init()
379 .usart = (SI32_USART_A_Type *)DT_INST_REG_ADDR(index), \