- Main
- Tutorials
- Library
- Samples

Modules | Functions
SERIAL
Library

## Modules
| SERIAL_PORT
| SERIAL_INTERFACE

## Functions
IOTHINX_ERR | ioThinx_Serial_GetDevName (uint32_t slot, uint32_t port, uint8_t *name)
IOTHINX_ERR | ioThinx_Serial_SetInterface (uint32_t slot, uint32_t port, uint32_t interface)
IOTHINX_ERR | ioThinx_Serial_GetInterface (uint32_t slot, uint32_t port, uint32_t *interface)

## Detailed Description

Sample Code:
seria.c

## Function Documentation

IOTHINX_ERR ioThinx_Serial_GetDevName | ( | uint32_t | slot,
|  | uint32_t | port,
|  | uint8_t * | name
| ) |  |

Parameters

  [in] | slot | Slot number of the module.
  [in] | port | Specifies the SERIAL port.
  [out] | name | A pointer that stores the device name.

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

IOTHINX_ERR ioThinx_Serial_SetInterface | ( | uint32_t | slot,
|  | uint32_t | port,
|  | uint32_t | interface
| ) |  |

Parameters

  [in] | slot | Slot number of the module.
  [in] | port | Specifies the SERIAL port.
  [in] | interface | Stores the SERIAL interface.

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

IOTHINX_ERR ioThinx_Serial_GetInterface | ( | uint32_t | slot,
|  | uint32_t | port,
|  | uint32_t * | interface
| ) |  |

Parameters

  [in] | slot | Slot number of the module.
  [in] | port | Specifies the SERIAL port.
  [out] | interface | Stores the SERIAL interface.

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