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) |
Sample Code:
uart.c
| IOTHINX_ERR ioThinx_Uart_Open | ( | uint32_t | slot, |
| uint32_t | port, | ||
| uint32_t | mode, | ||
| uint32_t | baudrate, | ||
| int * | fd | ||
| ) |
| [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. |
| IOTHINX_ERR ioThinx_Uart_SetMode | ( | uint32_t | slot, |
| uint32_t | port, | ||
| uint32_t | mode | ||
| ) |
| [in] | slot | Slot number of the module. |
| [in] | port | Specifies the UART port. |
| [in] | mode | Stores the UART mode. |