Modules | Functions
SERIAL

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_Serial_GetDevName()

IOTHINX_ERR ioThinx_Serial_GetDevName ( uint32_t  slot,
uint32_t  port,
uint8_t *  name 
)
Parameters
[in]slotSlot number of the module.
[in]portSpecifies the SERIAL port.
[out]nameA pointer that stores the device name.
Returns
IOTHINX_ERR_OK if everything is ok. Otherwise, refer to the IOTHINX_ERR.

◆ ioThinx_Serial_SetInterface()

IOTHINX_ERR ioThinx_Serial_SetInterface ( uint32_t  slot,
uint32_t  port,
uint32_t  interface 
)
Parameters
[in]slotSlot number of the module.
[in]portSpecifies the SERIAL port.
[in]interfaceStores the SERIAL interface.
Returns
IOTHINX_ERR_OK if everything is ok. Otherwise, refer to the IOTHINX_ERR.

◆ ioThinx_Serial_GetInterface()

IOTHINX_ERR ioThinx_Serial_GetInterface ( uint32_t  slot,
uint32_t  port,
uint32_t *  interface 
)
Parameters
[in]slotSlot number of the module.
[in]portSpecifies the SERIAL port.
[out]interfaceStores the SERIAL interface.
Returns
IOTHINX_ERR_OK if everything is ok. Otherwise, refer to the IOTHINX_ERR.