Modules | Functions

Modules

 TC_SENSOR_TYPE
 

Functions

IOTHINX_ERR ioThinx_TC_GetValues (uint32_t slot, uint8_t start, uint8_t count, float buf[])
 
IOTHINX_ERR ioThinx_TC_GetMinValues (uint32_t slot, uint8_t start, uint8_t count, float buf[])
 
IOTHINX_ERR ioThinx_TC_GetMaxValues (uint32_t slot, uint8_t start, uint8_t count, float buf[])
 
IOTHINX_ERR ioThinx_TC_ResetMins (uint32_t slot, uint32_t resets)
 
IOTHINX_ERR ioThinx_TC_ResetMaxs (uint32_t slot, uint32_t resets)
 
IOTHINX_ERR ioThinx_TC_GetStatuss (uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[])
 
IOTHINX_ERR ioThinx_TC_SetCalibrations (uint32_t slot, uint8_t start, uint8_t count, float buf[])
 
IOTHINX_ERR ioThinx_TC_ResetCalibrations (uint32_t slot, uint8_t start, uint8_t count)
 
IOTHINX_ERR ioThinx_TC_Config_GetSensorTypes (uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[])
 
IOTHINX_ERR ioThinx_TC_Config_SetSensorTypes (uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[])
 

Detailed Description

Sample Code:
tc.c
tc_calibration.c

Function Documentation

◆ ioThinx_TC_GetValues()

IOTHINX_ERR ioThinx_TC_GetValues ( uint32_t  slot,
uint8_t  start,
uint8_t  count,
float  buf[] 
)
Parameters
[in]slotSlot number of the I/O module.
[in]startSpecifies the start channel.
[in]countThe number of channels to be get.
[out]bufAn array that stores the TC value for the contiguous channels. buf[0] represents the value of the start channel.
Returns
IOTHINX_ERR_OK if everything is ok. Otherwise, refer to the IOTHINX_ERR.

◆ ioThinx_TC_GetMinValues()

IOTHINX_ERR ioThinx_TC_GetMinValues ( uint32_t  slot,
uint8_t  start,
uint8_t  count,
float  buf[] 
)
Parameters
[in]slotSlot number of the I/O module.
[in]startSpecifies the start channel.
[in]countThe number of channels to be get.
[out]bufAn array that stores the minimal TC value for the contiguous channels. buf[0] represents the value of the start channel.
Returns
IOTHINX_ERR_OK if everything is ok. Otherwise, refer to the IOTHINX_ERR.

◆ ioThinx_TC_GetMaxValues()

IOTHINX_ERR ioThinx_TC_GetMaxValues ( uint32_t  slot,
uint8_t  start,
uint8_t  count,
float  buf[] 
)
Parameters
[in]slotSlot number of the I/O module.
[in]startSpecifies the start channel.
[in]countThe number of channels to be get.
[out]bufAn array that stores the maximal TC value for the contiguous channels. buf[0] represents the value of the start channel.
Returns
IOTHINX_ERR_OK if everything is ok. Otherwise, refer to the IOTHINX_ERR.

◆ ioThinx_TC_ResetMins()

IOTHINX_ERR ioThinx_TC_ResetMins ( uint32_t  slot,
uint32_t  resets 
)
Parameters
[in]slotSlot number of the I/O module.
[in]resetsStores the minimal value reset flags of the contiguous channels (0: ignore, 1: reset); each bit holds one channel's flag. The bit 0 represents value of the channel 0 and so on.
Returns
IOTHINX_ERR_OK if everything is ok. Otherwise, refer to the IOTHINX_ERR.
Note
This API only reset the minimal value, reset is setting the value to be current value.

◆ ioThinx_TC_ResetMaxs()

IOTHINX_ERR ioThinx_TC_ResetMaxs ( uint32_t  slot,
uint32_t  resets 
)
Parameters
[in]slotSlot number of the I/O module.
[in]resetsStores the maximal value reset flags of the contiguous channels (0: ignore, 1: reset); each bit holds one channel's flag. The bit 0 represents value of the channel 0 and so on.
Returns
IOTHINX_ERR_OK if everything is ok. Otherwise, refer to the IOTHINX_ERR.
Note
This API only reset the maximal value, reset is setting the value to be current value.

◆ ioThinx_TC_GetStatuss()

IOTHINX_ERR ioThinx_TC_GetStatuss ( uint32_t  slot,
uint8_t  start,
uint8_t  count,
uint8_t  buf[] 
)
Parameters
[in]slotSlot number of the I/O module.
[in]startSpecifies the start channel.
[in]countThe number of channels to be get.
[out]bufAn array that stores the TC status for the contiguous channels. buf[0] represents the value of the start channel.
Returns
IOTHINX_ERR_OK if everything is ok. Otherwise, refer to the IOTHINX_ERR.

◆ ioThinx_TC_SetCalibrations()

IOTHINX_ERR ioThinx_TC_SetCalibrations ( uint32_t  slot,
uint8_t  start,
uint8_t  count,
float  buf[] 
)
Parameters
[in]slotSlot number of the I/O module.
[in]startSpecifies the start channel.
[in]countThe number of channels to be get.
[in]bufAn array that stores the current temperatures for the contiguous channels. buf[0] represents the value of the start channel.
Returns
IOTHINX_ERR_OK if everything is ok. Otherwise, refer to the IOTHINX_ERR.

◆ ioThinx_TC_ResetCalibrations()

IOTHINX_ERR ioThinx_TC_ResetCalibrations ( uint32_t  slot,
uint8_t  start,
uint8_t  count 
)
Parameters
[in]slotSlot number of the I/O module.
[in]startSpecifies the start channel.
[in]countThe number of channels to be reset.
Returns
IOTHINX_ERR_OK if everything is ok. Otherwise, refer to the IOTHINX_ERR.

◆ ioThinx_TC_Config_GetSensorTypes()

IOTHINX_ERR ioThinx_TC_Config_GetSensorTypes ( uint32_t  slot,
uint8_t  start,
uint8_t  count,
uint8_t  buf[] 
)
Parameters
[in]slotSlot number of the I/O module.
[in]startSpecifies the start channel.
[in]countThe number of channels to be get.
[out]bufAn array that stores the TC type for the contiguous channels. buf[0] represents the value of the start channel.
Returns
IOTHINX_ERR_OK if everything is ok. Otherwise, refer to the IOTHINX_ERR.

◆ ioThinx_TC_Config_SetSensorTypes()

IOTHINX_ERR ioThinx_TC_Config_SetSensorTypes ( uint32_t  slot,
uint8_t  start,
uint8_t  count,
uint8_t  buf[] 
)
Parameters
[in]slotSlot number of the I/O module.
[in]startSpecifies the start channel.
[in]countThe number of channels to be get.
[in]bufAn array that stores the TC type for the contiguous channels. buf[0] represents the value of the start channel.
Returns
IOTHINX_ERR_OK if everything is ok. Otherwise, refer to the IOTHINX_ERR.