|
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[]) |
|
Sample Code:
tc.c
tc_calibration.c
◆ ioThinx_TC_GetValues()
IOTHINX_ERR ioThinx_TC_GetValues |
( |
uint32_t |
slot, |
|
|
uint8_t |
start, |
|
|
uint8_t |
count, |
|
|
float |
buf[] |
|
) |
| |
- Parameters
-
[in] | slot | Slot number of the I/O module. |
[in] | start | Specifies the start channel. |
[in] | count | The number of channels to be get. |
[out] | buf | An 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] | slot | Slot number of the I/O module. |
[in] | start | Specifies the start channel. |
[in] | count | The number of channels to be get. |
[out] | buf | An 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] | slot | Slot number of the I/O module. |
[in] | start | Specifies the start channel. |
[in] | count | The number of channels to be get. |
[out] | buf | An 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] | slot | Slot number of the I/O module. |
[in] | resets | Stores 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] | slot | Slot number of the I/O module. |
[in] | resets | Stores 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] | slot | Slot number of the I/O module. |
[in] | start | Specifies the start channel. |
[in] | count | The number of channels to be get. |
[out] | buf | An 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] | slot | Slot number of the I/O module. |
[in] | start | Specifies the start channel. |
[in] | count | The number of channels to be get. |
[in] | buf | An 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] | slot | Slot number of the I/O module. |
[in] | start | Specifies the start channel. |
[in] | count | The 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] | slot | Slot number of the I/O module. |
[in] | start | Specifies the start channel. |
[in] | count | The number of channels to be get. |
[out] | buf | An 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] | slot | Slot number of the I/O module. |
[in] | start | Specifies the start channel. |
[in] | count | The number of channels to be get. |
[in] | buf | An 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.