- Main
- Tutorials
- Library
- Samples

- File List
- Globals

iothinxio.h
Go to the documentation of this file.
1 /* Copyright (C) 2019 Moxa Inc. All rights reserved. */
2 /* SPDX-License-Identifier: Apache-2.0 */
12 #ifndef __IOTHINXIO_H__
13 #define __IOTHINXIO_H__
14
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18
19 #include <stdint.h>
20
34 typedef int32_t IOTHINX_ERR;
35 #define IOTHINX_ERR_OK 0
36 #define IOTHINX_ERR_INIT 1
37 #define IOTHINX_ERR_SLOT 2
38 #define IOTHINX_ERR_ARGUMENT 3
39 #define IOTHINX_ERR_CONFIG 4
40
46 #define IOTHINX_BUS_OK 0
47 #define IOTHINX_BUS_ERROR 1
48
55 IOTHINX_ERR ioThinx_IO_Client_Init(void);
56
62 IOTHINX_ERR ioThinx_IO_GetBusStatus(uint8_t *p_status);
63
70 IOTHINX_ERR ioThinx_IO_Config_Reload(void);
72
85 //DI MODE
86 #define DI_MODE_DI 0
87 #define DI_MODE_COUNTER 1
88
94 //DI COUNTER TRIGGER TYPE
95 #define CNT_TRIGGER_RISING 0
96 #define CNT_TRIGGER_FALLING 1
97 #define CNT_TRIGGER_BOTH 2
98
108 IOTHINX_ERR ioThinx_DI_GetValues(uint32_t slot, uint32_t *p_values);
109
119 IOTHINX_ERR ioThinx_DI_GetCntValues(uint32_t slot, uint8_t start, uint8_t count, uint32_t buf[]);
120
130 IOTHINX_ERR ioThinx_DI_SetCntValues(uint32_t slot, uint8_t start, uint8_t count, uint32_t buf[]);
131
140 IOTHINX_ERR ioThinx_DI_GetCntStarts(uint32_t slot, uint32_t *p_starts);
141
150 IOTHINX_ERR ioThinx_DI_SetCntStarts(uint32_t slot, uint32_t starts);
151
160 IOTHINX_ERR ioThinx_DI_SetCntStops(uint32_t slot, uint32_t stops);
161
170 IOTHINX_ERR ioThinx_DI_GetCntOverflows(uint32_t slot, uint32_t *p_overflows);
171
180 IOTHINX_ERR ioThinx_DI_SetCntOverflows(uint32_t slot, uint32_t overflows);
181
191 IOTHINX_ERR ioThinx_DI_Config_GetModes(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[]);
192
202 IOTHINX_ERR ioThinx_DI_Config_SetModes(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[]);
203
214 IOTHINX_ERR ioThinx_DI_Config_GetFilters(uint32_t slot, uint8_t start, uint8_t count, uint16_t buf[]);
215
226 IOTHINX_ERR ioThinx_DI_Config_SetFilters(uint32_t slot, uint8_t start, uint8_t count, uint16_t buf[]);
227
237 IOTHINX_ERR ioThinx_DI_Config_GetCntTriggers(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[]);
238
248 IOTHINX_ERR ioThinx_DI_Config_SetCntTriggers(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[]);
249
259 IOTHINX_ERR ioThinx_DI_Config_GetCntValues(uint32_t slot, uint8_t start, uint8_t count, uint32_t buf[]);
260
270 IOTHINX_ERR ioThinx_DI_Config_SetCntValues(uint32_t slot, uint8_t start, uint8_t count, uint32_t buf[]);
271
273
274 // ----------------------------------------------------------------------------
288 //DO MODE
289 #define DO_MODE_DO 0
290 #define DO_MODE_PWM 1
291
301 IOTHINX_ERR ioThinx_DO_GetValues(uint32_t slot, uint32_t *p_values);
302
311 IOTHINX_ERR ioThinx_DO_SetValues(uint32_t slot, uint32_t values);
312
322 IOTHINX_ERR ioThinx_DO_GetPwmCounts(uint32_t slot, uint8_t start, uint8_t count, uint32_t buf[]);
323
333 IOTHINX_ERR ioThinx_DO_SetPwmCounts(uint32_t slot, uint8_t start, uint8_t count, uint32_t buf[]);
334
343 IOTHINX_ERR ioThinx_DO_GetPwmStarts(uint32_t slot, uint32_t *p_starts);
344
353 IOTHINX_ERR ioThinx_DO_SetPwmStarts(uint32_t slot, uint32_t starts);
354
363 IOTHINX_ERR ioThinx_DO_SetPwmStops(uint32_t slot, uint32_t stops);
364
376 IOTHINX_ERR ioThinx_DO_GetPwmConfigures(uint32_t slot, uint8_t start, uint8_t count, uint16_t frequencies[], uint16_t duty_cycles[]);
377
389 IOTHINX_ERR ioThinx_DO_SetPwmConfigures(uint32_t slot, uint8_t start, uint8_t count, uint16_t frequencies[], uint16_t duty_cycles[]);
390
400 IOTHINX_ERR ioThinx_DO_Config_GetModes(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[]);
401
411 IOTHINX_ERR ioThinx_DO_Config_SetModes(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[]);
412
422 IOTHINX_ERR ioThinx_DO_Config_GetPwmCounts(uint32_t slot, uint8_t start, uint8_t count, uint32_t buf[]);
423
433 IOTHINX_ERR ioThinx_DO_Config_SetPwmCounts(uint32_t slot, uint8_t start, uint8_t count, uint32_t buf[]);
434
446 IOTHINX_ERR ioThinx_DO_Config_GetPwmConfigures(uint32_t slot, uint8_t start, uint8_t count, uint16_t frequencies[], uint16_t duty_cycles[]);
447
459 IOTHINX_ERR ioThinx_DO_Config_SetPwmConfigures(uint32_t slot, uint8_t start, uint8_t count, uint16_t frequencies[], uint16_t duty_cycles[]);
460
462
463 // ----------------------------------------------------------------------------
480 IOTHINX_ERR ioThinx_Relay_GetValues(uint32_t slot, uint32_t *p_values);
481
490 IOTHINX_ERR ioThinx_Relay_SetValues(uint32_t slot, uint32_t values);
491
501 IOTHINX_ERR ioThinx_Relay_GetTotalCounts(uint32_t slot, uint8_t start, uint8_t count, uint32_t buf[]);
502
512 IOTHINX_ERR ioThinx_Relay_GetCurrentCounts(uint32_t slot, uint8_t start, uint8_t count, uint32_t buf[]);
513
522 IOTHINX_ERR ioThinx_Relay_ResetCurrentCounts(uint32_t slot, uint32_t resets);
524
525 // ----------------------------------------------------------------------------
537 //AI RANGE
538 #define AI_RANGE_DISABLE 0
539 #define AI_RANGE_0_10V 1
540 #define AI_RANGE_0_20mA 2
541 #define AI_RANGE_4_20mA_BURNOUT 3
542 #define AI_RANGE_4_20mA 4
543 #define AI_RANGE_10V 5
544
556 IOTHINX_ERR ioThinx_AI_GetEngs(uint32_t slot, uint8_t start, uint8_t count, float buf[]);
557
567 IOTHINX_ERR ioThinx_AI_GetMinEngs(uint32_t slot, uint8_t start, uint8_t count, float buf[]);
568
578 IOTHINX_ERR ioThinx_AI_GetMaxEngs(uint32_t slot, uint8_t start, uint8_t count, float buf[]);
579
589 IOTHINX_ERR ioThinx_AI_GetRaws(uint32_t slot, uint8_t start, uint8_t count, uint32_t buf[]);
590
600 IOTHINX_ERR ioThinx_AI_GetMinRaws(uint32_t slot, uint8_t start, uint8_t count, uint32_t buf[]);
601
611 IOTHINX_ERR ioThinx_AI_GetMaxRaws(uint32_t slot, uint8_t start, uint8_t count, uint32_t buf[]);
612
621 IOTHINX_ERR ioThinx_AI_ResetMins(uint32_t slot, uint32_t resets);
622
631 IOTHINX_ERR ioThinx_AI_ResetMaxs(uint32_t slot, uint32_t resets);
632
642 IOTHINX_ERR ioThinx_AI_GetStatuss(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[]);
643
653 IOTHINX_ERR ioThinx_AI_Config_GetRanges(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[]);
654
664 IOTHINX_ERR ioThinx_AI_Config_SetRanges(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[]);
665
676 IOTHINX_ERR ioThinx_AI_Config_GetBurnoutValues(uint32_t slot, uint8_t start, uint8_t count, float buf[]);
677
688 IOTHINX_ERR ioThinx_AI_Config_SetBurnoutValues(uint32_t slot, uint8_t start, uint8_t count, float buf[]);
689
691
692 // ----------------------------------------------------------------------------
705 #define TC_SENSOR_TYPE_J 0 // (0 to 750 Celsius degree)
706 #define TC_SENSOR_TYPE_K 1 // (-200 to 1250 Celsius degree)
707 #define TC_SENSOR_TYPE_T 2 // (-200 to 350 Celsius degree)
708 #define TC_SENSOR_TYPE_E 3 // (-200 to 900 Celsius degree)
709 #define TC_SENSOR_TYPE_R 4 // (-50 to 1600 Celsius degree)
710 #define TC_SENSOR_TYPE_S 5 // (-50 to 1760 Celsius degree)
711 #define TC_SENSOR_TYPE_B 6 // (600 to 1700 Celsius degree)
712 #define TC_SENSOR_TYPE_N 7 // (-200 to 1300 Celsius degree)
713 #define TC_SENSOR_TYPE_75_126_MV 14 // (+/- 78.126 mV)
714 #define TC_SENSOR_TYPE_39_062_MV 15 // (+/- 39.062 mV)
715 #define TC_SENSOR_TYPE_19_532_MV 16 // (+/- 19.532 mV)
716 #define TC_SENSOR_TYPE_DISABLE 63
717
728 IOTHINX_ERR ioThinx_TC_GetValues(uint32_t slot, uint8_t start, uint8_t count, float buf[]);
729
739 IOTHINX_ERR ioThinx_TC_GetMinValues(uint32_t slot, uint8_t start, uint8_t count, float buf[]);
740
750 IOTHINX_ERR ioThinx_TC_GetMaxValues(uint32_t slot, uint8_t start, uint8_t count, float buf[]);
751
761 IOTHINX_ERR ioThinx_TC_ResetMins(uint32_t slot, uint32_t resets);
762
772 IOTHINX_ERR ioThinx_TC_ResetMaxs(uint32_t slot, uint32_t resets);
773
783 IOTHINX_ERR ioThinx_TC_GetStatuss(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[]);
784
794 IOTHINX_ERR ioThinx_TC_SetCalibrations(uint32_t slot, uint8_t start, uint8_t count, float buf[]);
795
803 IOTHINX_ERR ioThinx_TC_ResetCalibrations(uint32_t slot, uint8_t start, uint8_t count);
804
814 IOTHINX_ERR ioThinx_TC_Config_GetSensorTypes(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[]);
815
825 IOTHINX_ERR ioThinx_TC_Config_SetSensorTypes(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[]);
826
828
829 // ----------------------------------------------------------------------------
842 #define RTD_SENSOR_TYPE_PT50 0 // (-200 to 850 Celsius degree)
843 #define RTD_SENSOR_TYPE_PT100 1 // (-200 to 850 Celsius degree)
844 #define RTD_SENSOR_TYPE_PT200 2 // (-200 to 850 Celsius degree)
845 #define RTD_SENSOR_TYPE_PT500 3 // (-200 to 850 Celsius degree)
846 #define RTD_SENSOR_TYPE_PT1000 4 // (-200 to 350 Celsius degree)
847 #define RTD_SENSOR_TYPE_8X 14 // (310 ohm)
848 #define RTD_SENSOR_TYPE_4X 15 // (620 ohm)
849 #define RTD_SENSOR_TYPE_2X 16 // (1250 ohm)
850 #define RTD_SENSOR_TYPE_1X 17 // (2200 ohm)
851 #define RTD_SENSOR_TYPE_JPT100 20 // (-200 to 640 Celsius degree)
852 #define RTD_SENSOR_TYPE_JPT200 21 // (-200 to 640 Celsius degree)
853 #define RTD_SENSOR_TYPE_JPT500 22 // (-200 to 640 Celsius degree)
854 #define RTD_SENSOR_TYPE_JPT1000 23 // (-200 to 350 Celsius degree)
855 #define RTD_SENSOR_TYPE_NI100 30 // (-60 to 250 Celsius degree)
856 #define RTD_SENSOR_TYPE_NI200 31 // (-60 to 250 Celsius degree)
857 #define RTD_SENSOR_TYPE_NI500 32 // (-60 to 250 Celsius degree)
858 #define RTD_SENSOR_TYPE_NI1000 33 // (-60 to 150 Celsius degree)
859 #define RTD_SENSOR_TYPE_NI120 34 // (-80 to 260 Celsius degree)
860 #define RTD_SENSOR_TYPE_DISABLE 63
861
872 IOTHINX_ERR ioThinx_RTD_GetValues(uint32_t slot, uint8_t start, uint8_t count, float buf[]);
873
883 IOTHINX_ERR ioThinx_RTD_GetMinValues(uint32_t slot, uint8_t start, uint8_t count, float buf[]);
884
894 IOTHINX_ERR ioThinx_RTD_GetMaxValues(uint32_t slot, uint8_t start, uint8_t count, float buf[]);
895
905 IOTHINX_ERR ioThinx_RTD_ResetMins(uint32_t slot, uint32_t resets);
906
916 IOTHINX_ERR ioThinx_RTD_ResetMaxs(uint32_t slot, uint32_t resets);
917
927 IOTHINX_ERR ioThinx_RTD_GetStatuss(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[]);
928
938 IOTHINX_ERR ioThinx_RTD_SetCalibrations(uint32_t slot, uint8_t start, uint8_t count, float buf[]);
939
947 IOTHINX_ERR ioThinx_RTD_ResetCalibrations(uint32_t slot, uint8_t start, uint8_t count);
948
958 IOTHINX_ERR ioThinx_RTD_Config_GetSensorTypes(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[]);
959
969 IOTHINX_ERR ioThinx_RTD_Config_SetSensorTypes(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[]);
970
972
973
974 // ----------------------------------------------------------------------------
986 #define SYS_PWR_STATUS_CONNECTED 0
987 #define SYS_PWR_STATUS_WARNING 1 // system power under setting
988 #define FIELD_PWR_STATUS_CONNECTED 0
989 #define FIELD_PWR_STATUS_DISCONNECTED 1
990 #define FIELD_PWR_STATUS_WARNING 2 // field power over Spec.
991
1002 IOTHINX_ERR ioThinx_PWR_GetSysStatus(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[]);
1003
1013 IOTHINX_ERR ioThinx_PWR_GetFieldStatus(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[]);
1014
1024 IOTHINX_ERR ioThinx_PWR_Config_GetAlarms(uint32_t slot, uint8_t start, uint8_t count, float buf[]);
1025
1026
1036 IOTHINX_ERR ioThinx_PWR_Config_SetAlarms(uint32_t slot, uint8_t start, uint8_t count, float buf[]);
1038
1039 // ----------------------------------------------------------------------------
1052 struct MODULE_INFO
1053 {
1054 uint8_t model_name[20];
1055 uint32_t product_id;
1056 uint16_t fwr_version;
1057 uint32_t fwr_build_date;
1058 uint8_t serial_number[13];
1059 };
1061
1066 #define LED_STATE_DARK 0
1067 #define LED_STATE_GREEN 1
1068 #define LED_STATE_RED 2
1069
1074 #define LED_CHANNEL_U1 1
1075 #define LED_CHANNEL_U2 2
1076
1084 IOTHINX_ERR ioThinx_Misc_GetModuleInfo(uint8_t slot, struct MODULE_INFO *p_module_info);
1085
1091 IOTHINX_ERR ioThinx_Misc_GetModuleCount(uint32_t *p_module_count);
1092
1099 IOTHINX_ERR ioThinx_Misc_GetRotarySwitchState(uint32_t slot, uint8_t *p_state);
1100
1108 IOTHINX_ERR ioThinx_Misc_SetUserLedState(uint32_t slot, uint8_t channel, uint8_t state);
1109
1116 IOTHINX_ERR ioThinx_Misc_GetPushButtonState(uint32_t slot, uint8_t *p_state);
1117
1124 IOTHINX_ERR ioThinx_Misc_GetLocateState(uint32_t slot, uint8_t *p_state);
1125
1132 IOTHINX_ERR ioThinx_Misc_SetLocateState(uint32_t slot, uint8_t state);
1133
1135
1136 // ----------------------------------------------------------------------------
1148 #define UART_MODE_RS232 0
1149 #define UART_MODE_RS485_2WIRE 1
1150 #define UART_MODE_RS422 2
1151
1156 #define UART_PORT_1 0
1157 #define UART_PORT_2 1
1158
1169 IOTHINX_ERR ioThinx_Uart_Open(uint32_t slot, uint32_t port, uint32_t mode, uint32_t baudrate, int *fd);
1170
1178 IOTHINX_ERR ioThinx_Uart_SetMode(uint32_t slot, uint32_t port, uint32_t mode);
1179
1181
1183
1184 #ifdef __cplusplus
1185 } // extern "C"
1186 #endif
1187
1188 #endif // __IOTHINXIO_H__
ioThinx_Misc_GetRotarySwitchState
IOTHINX_ERR ioThinx_Misc_GetRotarySwitchState(uint32_t slot, uint8_t *p_state)
ioThinx_DO_SetPwmCounts
IOTHINX_ERR ioThinx_DO_SetPwmCounts(uint32_t slot, uint8_t start, uint8_t count, uint32_t buf[])
ioThinx_DO_Config_GetPwmCounts
IOTHINX_ERR ioThinx_DO_Config_GetPwmCounts(uint32_t slot, uint8_t start, uint8_t count, uint32_t buf[])
ioThinx_AI_Config_GetBurnoutValues
IOTHINX_ERR ioThinx_AI_Config_GetBurnoutValues(uint32_t slot, uint8_t start, uint8_t count, float buf[])
ioThinx_AI_ResetMaxs
IOTHINX_ERR ioThinx_AI_ResetMaxs(uint32_t slot, uint32_t resets)
ioThinx_DI_SetCntStops
IOTHINX_ERR ioThinx_DI_SetCntStops(uint32_t slot, uint32_t stops)
ioThinx_AI_GetMinRaws
IOTHINX_ERR ioThinx_AI_GetMinRaws(uint32_t slot, uint8_t start, uint8_t count, uint32_t buf[])
ioThinx_TC_GetMinValues
IOTHINX_ERR ioThinx_TC_GetMinValues(uint32_t slot, uint8_t start, uint8_t count, float buf[])
ioThinx_DI_GetCntStarts
IOTHINX_ERR ioThinx_DI_GetCntStarts(uint32_t slot, uint32_t *p_starts)
ioThinx_Relay_GetCurrentCounts
IOTHINX_ERR ioThinx_Relay_GetCurrentCounts(uint32_t slot, uint8_t start, uint8_t count, uint32_t buf[])
ioThinx_TC_ResetMaxs
IOTHINX_ERR ioThinx_TC_ResetMaxs(uint32_t slot, uint32_t resets)
ioThinx_AI_GetMaxEngs
IOTHINX_ERR ioThinx_AI_GetMaxEngs(uint32_t slot, uint8_t start, uint8_t count, float buf[])
ioThinx_RTD_SetCalibrations
IOTHINX_ERR ioThinx_RTD_SetCalibrations(uint32_t slot, uint8_t start, uint8_t count, float buf[])
ioThinx_RTD_GetMaxValues
IOTHINX_ERR ioThinx_RTD_GetMaxValues(uint32_t slot, uint8_t start, uint8_t count, float buf[])
ioThinx_TC_GetMaxValues
IOTHINX_ERR ioThinx_TC_GetMaxValues(uint32_t slot, uint8_t start, uint8_t count, float buf[])
ioThinx_RTD_ResetCalibrations
IOTHINX_ERR ioThinx_RTD_ResetCalibrations(uint32_t slot, uint8_t start, uint8_t count)
ioThinx_DO_GetPwmConfigures
IOTHINX_ERR ioThinx_DO_GetPwmConfigures(uint32_t slot, uint8_t start, uint8_t count, uint16_t frequencies[], uint16_t duty_cycles[])
ioThinx_RTD_ResetMins
IOTHINX_ERR ioThinx_RTD_ResetMins(uint32_t slot, uint32_t resets)
ioThinx_DI_SetCntStarts
IOTHINX_ERR ioThinx_DI_SetCntStarts(uint32_t slot, uint32_t starts)
MODULE_INFO::fwr_version
uint16_t fwr_version
Definition: iothinxio.h:1056
ioThinx_DO_SetPwmStops
IOTHINX_ERR ioThinx_DO_SetPwmStops(uint32_t slot, uint32_t stops)
ioThinx_DO_GetPwmCounts
IOTHINX_ERR ioThinx_DO_GetPwmCounts(uint32_t slot, uint8_t start, uint8_t count, uint32_t buf[])
ioThinx_Relay_GetValues
IOTHINX_ERR ioThinx_Relay_GetValues(uint32_t slot, uint32_t *p_values)
ioThinx_DO_SetValues
IOTHINX_ERR ioThinx_DO_SetValues(uint32_t slot, uint32_t values)
MODULE_INFO::fwr_build_date
uint32_t fwr_build_date
Definition: iothinxio.h:1057
MODULE_INFO::model_name
uint8_t model_name[20]
Definition: iothinxio.h:1054
ioThinx_DI_Config_GetCntTriggers
IOTHINX_ERR ioThinx_DI_Config_GetCntTriggers(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[])
ioThinx_DI_Config_SetModes
IOTHINX_ERR ioThinx_DI_Config_SetModes(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[])
ioThinx_Relay_GetTotalCounts
IOTHINX_ERR ioThinx_Relay_GetTotalCounts(uint32_t slot, uint8_t start, uint8_t count, uint32_t buf[])
ioThinx_TC_ResetCalibrations
IOTHINX_ERR ioThinx_TC_ResetCalibrations(uint32_t slot, uint8_t start, uint8_t count)
ioThinx_IO_GetBusStatus
IOTHINX_ERR ioThinx_IO_GetBusStatus(uint8_t *p_status)
ioThinx_DO_GetPwmStarts
IOTHINX_ERR ioThinx_DO_GetPwmStarts(uint32_t slot, uint32_t *p_starts)
ioThinx_PWR_GetSysStatus
IOTHINX_ERR ioThinx_PWR_GetSysStatus(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[])
ioThinx_PWR_Config_GetAlarms
IOTHINX_ERR ioThinx_PWR_Config_GetAlarms(uint32_t slot, uint8_t start, uint8_t count, float buf[])
ioThinx_DI_GetCntValues
IOTHINX_ERR ioThinx_DI_GetCntValues(uint32_t slot, uint8_t start, uint8_t count, uint32_t buf[])
ioThinx_Misc_GetPushButtonState
IOTHINX_ERR ioThinx_Misc_GetPushButtonState(uint32_t slot, uint8_t *p_state)
ioThinx_RTD_Config_SetSensorTypes
IOTHINX_ERR ioThinx_RTD_Config_SetSensorTypes(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[])
ioThinx_AI_GetMaxRaws
IOTHINX_ERR ioThinx_AI_GetMaxRaws(uint32_t slot, uint8_t start, uint8_t count, uint32_t buf[])
ioThinx_TC_GetValues
IOTHINX_ERR ioThinx_TC_GetValues(uint32_t slot, uint8_t start, uint8_t count, float buf[])
ioThinx_TC_Config_SetSensorTypes
IOTHINX_ERR ioThinx_TC_Config_SetSensorTypes(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[])
ioThinx_RTD_GetValues
IOTHINX_ERR ioThinx_RTD_GetValues(uint32_t slot, uint8_t start, uint8_t count, float buf[])
ioThinx_Relay_SetValues
IOTHINX_ERR ioThinx_Relay_SetValues(uint32_t slot, uint32_t values)
ioThinx_DO_Config_SetModes
IOTHINX_ERR ioThinx_DO_Config_SetModes(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[])
ioThinx_RTD_GetStatuss
IOTHINX_ERR ioThinx_RTD_GetStatuss(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[])
ioThinx_AI_GetRaws
IOTHINX_ERR ioThinx_AI_GetRaws(uint32_t slot, uint8_t start, uint8_t count, uint32_t buf[])
ioThinx_AI_ResetMins
IOTHINX_ERR ioThinx_AI_ResetMins(uint32_t slot, uint32_t resets)
ioThinx_DI_SetCntOverflows
IOTHINX_ERR ioThinx_DI_SetCntOverflows(uint32_t slot, uint32_t overflows)
MODULE_INFO::product_id
uint32_t product_id
Definition: iothinxio.h:1055
count
int count
Definition: cJSON.h:212
ioThinx_TC_ResetMins
IOTHINX_ERR ioThinx_TC_ResetMins(uint32_t slot, uint32_t resets)
ioThinx_TC_GetStatuss
IOTHINX_ERR ioThinx_TC_GetStatuss(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[])
ioThinx_DI_Config_GetModes
IOTHINX_ERR ioThinx_DI_Config_GetModes(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[])
ioThinx_DI_Config_SetFilters
IOTHINX_ERR ioThinx_DI_Config_SetFilters(uint32_t slot, uint8_t start, uint8_t count, uint16_t buf[])
IOTHINX_ERR
int32_t IOTHINX_ERR
Definition: iothinxio.h:34
ioThinx_TC_SetCalibrations
IOTHINX_ERR ioThinx_TC_SetCalibrations(uint32_t slot, uint8_t start, uint8_t count, float buf[])
ioThinx_DI_Config_GetCntValues
IOTHINX_ERR ioThinx_DI_Config_GetCntValues(uint32_t slot, uint8_t start, uint8_t count, uint32_t buf[])
ioThinx_AI_GetEngs
IOTHINX_ERR ioThinx_AI_GetEngs(uint32_t slot, uint8_t start, uint8_t count, float buf[])
ioThinx_AI_Config_GetRanges
IOTHINX_ERR ioThinx_AI_Config_GetRanges(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[])
MODULE_INFO::serial_number
uint8_t serial_number[13]
Definition: iothinxio.h:1058
ioThinx_IO_Config_Reload
IOTHINX_ERR ioThinx_IO_Config_Reload(void)
ioThinx_Misc_GetModuleCount
IOTHINX_ERR ioThinx_Misc_GetModuleCount(uint32_t *p_module_count)
ioThinx_DI_Config_SetCntTriggers
IOTHINX_ERR ioThinx_DI_Config_SetCntTriggers(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[])
ioThinx_Relay_ResetCurrentCounts
IOTHINX_ERR ioThinx_Relay_ResetCurrentCounts(uint32_t slot, uint32_t resets)
MODULE_INFO
Definition: iothinxio.h:1052
ioThinx_Misc_SetUserLedState
IOTHINX_ERR ioThinx_Misc_SetUserLedState(uint32_t slot, uint8_t channel, uint8_t state)
ioThinx_DO_Config_SetPwmConfigures
IOTHINX_ERR ioThinx_DO_Config_SetPwmConfigures(uint32_t slot, uint8_t start, uint8_t count, uint16_t frequencies[], uint16_t duty_cycles[])
ioThinx_Misc_GetLocateState
IOTHINX_ERR ioThinx_Misc_GetLocateState(uint32_t slot, uint8_t *p_state)
ioThinx_DI_Config_SetCntValues
IOTHINX_ERR ioThinx_DI_Config_SetCntValues(uint32_t slot, uint8_t start, uint8_t count, uint32_t buf[])
ioThinx_PWR_Config_SetAlarms
IOTHINX_ERR ioThinx_PWR_Config_SetAlarms(uint32_t slot, uint8_t start, uint8_t count, float buf[])
ioThinx_AI_GetMinEngs
IOTHINX_ERR ioThinx_AI_GetMinEngs(uint32_t slot, uint8_t start, uint8_t count, float buf[])
ioThinx_DI_SetCntValues
IOTHINX_ERR ioThinx_DI_SetCntValues(uint32_t slot, uint8_t start, uint8_t count, uint32_t buf[])
ioThinx_DI_GetValues
IOTHINX_ERR ioThinx_DI_GetValues(uint32_t slot, uint32_t *p_values)
ioThinx_AI_Config_SetBurnoutValues
IOTHINX_ERR ioThinx_AI_Config_SetBurnoutValues(uint32_t slot, uint8_t start, uint8_t count, float buf[])
ioThinx_Uart_Open
IOTHINX_ERR ioThinx_Uart_Open(uint32_t slot, uint32_t port, uint32_t mode, uint32_t baudrate, int *fd)
ioThinx_RTD_ResetMaxs
IOTHINX_ERR ioThinx_RTD_ResetMaxs(uint32_t slot, uint32_t resets)
ioThinx_DI_GetCntOverflows
IOTHINX_ERR ioThinx_DI_GetCntOverflows(uint32_t slot, uint32_t *p_overflows)
ioThinx_DO_Config_GetPwmConfigures
IOTHINX_ERR ioThinx_DO_Config_GetPwmConfigures(uint32_t slot, uint8_t start, uint8_t count, uint16_t frequencies[], uint16_t duty_cycles[])
ioThinx_Misc_GetModuleInfo
IOTHINX_ERR ioThinx_Misc_GetModuleInfo(uint8_t slot, struct MODULE_INFO *p_module_info)
ioThinx_RTD_Config_GetSensorTypes
IOTHINX_ERR ioThinx_RTD_Config_GetSensorTypes(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[])
ioThinx_RTD_GetMinValues
IOTHINX_ERR ioThinx_RTD_GetMinValues(uint32_t slot, uint8_t start, uint8_t count, float buf[])
ioThinx_TC_Config_GetSensorTypes
IOTHINX_ERR ioThinx_TC_Config_GetSensorTypes(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[])
ioThinx_DO_Config_GetModes
IOTHINX_ERR ioThinx_DO_Config_GetModes(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[])
ioThinx_Uart_SetMode
IOTHINX_ERR ioThinx_Uart_SetMode(uint32_t slot, uint32_t port, uint32_t mode)
ioThinx_AI_Config_SetRanges
IOTHINX_ERR ioThinx_AI_Config_SetRanges(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[])
ioThinx_DI_Config_GetFilters
IOTHINX_ERR ioThinx_DI_Config_GetFilters(uint32_t slot, uint8_t start, uint8_t count, uint16_t buf[])
ioThinx_IO_Client_Init
IOTHINX_ERR ioThinx_IO_Client_Init(void)
ioThinx_DO_GetValues
IOTHINX_ERR ioThinx_DO_GetValues(uint32_t slot, uint32_t *p_values)
ioThinx_DO_SetPwmConfigures
IOTHINX_ERR ioThinx_DO_SetPwmConfigures(uint32_t slot, uint8_t start, uint8_t count, uint16_t frequencies[], uint16_t duty_cycles[])
ioThinx_DO_SetPwmStarts
IOTHINX_ERR ioThinx_DO_SetPwmStarts(uint32_t slot, uint32_t starts)
ioThinx_AI_GetStatuss
IOTHINX_ERR ioThinx_AI_GetStatuss(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[])
ioThinx_Misc_SetLocateState
IOTHINX_ERR ioThinx_Misc_SetLocateState(uint32_t slot, uint8_t state)
ioThinx_DO_Config_SetPwmCounts
IOTHINX_ERR ioThinx_DO_Config_SetPwmCounts(uint32_t slot, uint8_t start, uint8_t count, uint32_t buf[])
ioThinx_PWR_GetFieldStatus
IOTHINX_ERR ioThinx_PWR_GetFieldStatus(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[])