- Main
- Tutorials
- Library
- Samples

Modules | Functions
UART
Library

## 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)
IOTHINX_ERR | ioThinx_Uart_SetMode (uint32_t slot, uint32_t port, uint32_t mode)

## 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] | slot | Slot number of the module.
  [in] | port | Specifies the UART port.
  [in] | mode | Stores the UART mode.
  [in] | baudrate | Stores the Baud Rate.
  [out] | fd | A 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.

IOTHINX_ERR ioThinx_Uart_SetMode | ( | uint32_t | slot,
|  | uint32_t | port,
|  | uint32_t | mode
| ) |  |

Parameters

  [in] | slot | Slot number of the module.
  [in] | port | Specifies the UART port.
  [in] | mode | Stores the UART mode.

Returns
  IOTHINX_ERR_OK if everything is ok. Otherwise, refer to the IOTHINX_ERR.