Infineon Logo AIROC BTSDK v4.9 - Documentation
 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
btsdk-include/wiced_hal_puart.h File Reference

List of parameters and defined functions needed to access the Peripheral Universal Asynchronous Receiver/Transmitter (PUART) driver. More...

Enumerations

enum  parity_t {
  PARITY_ODD, PARITY_EVEN, PARITY_NONE, PARITY_ODD,
  PARITY_EVEN, PARITY_NONE
}
 
enum  stop_bit_t { STOP_BIT_1, STOP_BIT_2, STOP_BIT_1, STOP_BIT_2 }
 

Functions

void wiced_hal_puart_init (void)
 Initialize the Peripheral UART interface with the default configuration parameters. More...
 
void wiced_hal_puart_flow_on (void)
 Enable flow control. More...
 
void wiced_hal_puart_flow_off (void)
 Disable flow control. More...
 
uint32_t wiced_hal_puart_select_uart_pads (uint8_t rxdPin, uint8_t txdPin, uint8_t ctsPin, uint8_t rtsPin)
 Select the TX/RX and optional CTS/RTS pins (P<pin>) for the UART hardware to use. More...
 
void wiced_hal_puart_print (char *string)
 Print/send a string of characters via the TX line. More...
 
void wiced_hal_puart_write (uint8_t byte)
 Print/send one byte via the TX line. More...
 
uint32_t wiced_hal_puart_read (uint8_t *rxByte)
 Read one byte via the RX line. More...
 
void wiced_hal_puart_disable_tx (void)
 Disable transmit capability. More...
 
void wiced_hal_puart_enable_tx (void)
 Enable transmit capability. More...
 
void wiced_hal_puart_enable_rx (void)
 Enable receive capability (specifically, by enabling PUART RX interrupts through the MIA driver). More...
 
void wiced_hal_puart_set_baudrate (uint32_t baudrate)
 Set the baud rate (Bd) to a value other than the default 115200 Bd. More...
 
void wiced_hal_puart_synchronous_read (uint8_t *buffer, uint32_t length)
 Read in a set of bytes sequentially. More...
 
void wiced_hal_puart_synchronous_write (uint8_t *buffer, uint32_t length)
 Write a set of bytes sequentially. More...
 
uint32_t wiced_hal_puart_rx_fifo_not_empty (void)
 Check to see if there is any data ready in the RX FIFO. More...
 
void wiced_hal_puart_reset_puart_interrupt (void)
 Clears and enables PUART interrupt. More...
 
void wiced_hal_puart_register_interrupt (void(*puart_rx_cbk)(void *))
 Register Interrupt handler with PUART. More...
 
void wiced_hal_puart_set_watermark_level (uint32_t watermark_level)
 updates the watermark level to the received value More...
 
uint32_t wiced_hal_puart_configuration (uint32_t baudrate, parity_t parity, stop_bit_t stop_bit)
 updates the parity and stop bits as per received value More...
 

Detailed Description

List of parameters and defined functions needed to access the Peripheral Universal Asynchronous Receiver/Transmitter (PUART) driver.