Modules | Functions

Modules

 UART_MODE
 
 UART_PORT
 

Functions

IOTHINX_ERR ioThinx_Uart_Open (uint32_t slot, uint32_t port, uint32_t mode, uint32_t baudrate, int *fd)
 

Detailed Description

Sample Code:
uart.c

Function Documentation

IOTHINX_ERR ioThinx_Uart_Open ( uint32_t  slot,
uint32_t  port,
uint32_t  mode,
uint32_t  baudrate,
int *  fd 
)
Parameters
[in]slotSlot number of the module.
[in]portSpecifies the UART port.
[in]modeStores the UART mode.
[in]baudrateStores the Baud Rate.
[out]fdA pointer that stores the file descriptor of the opened UART port.
Returns
IOTHINX_ERR_OK if everything is ok. Otherwise, refer to the IOTHINX_ERR.