- 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 #define IOTHINX_ERR_RANGE 5
41 #define IOTHINX_ERR_COMMUNICATION 6
42
48 #define IOTHINX_BUS_OK 0
49 #define IOTHINX_BUS_ERROR 1
50
57 IOTHINX_ERR ioThinx_IO_Client_Init(void);
58
64 IOTHINX_ERR ioThinx_IO_GetBusStatus(uint8_t *p_status);
65
72 IOTHINX_ERR ioThinx_IO_Config_Reload(void);
74
87 //DI MODE
88 #define DI_MODE_DI 0
89 #define DI_MODE_COUNTER 1
90
96 //DI COUNTER TRIGGER TYPE
97 #define CNT_TRIGGER_RISING 0
98 #define CNT_TRIGGER_FALLING 1
99 #define CNT_TRIGGER_BOTH 2
100
110 IOTHINX_ERR ioThinx_DI_GetValues(uint32_t slot, uint32_t *p_values);
111
121 IOTHINX_ERR ioThinx_DI_GetCntValues(uint32_t slot, uint8_t start, uint8_t count, uint32_t buf[]);
122
132 IOTHINX_ERR ioThinx_DI_SetCntValues(uint32_t slot, uint8_t start, uint8_t count, uint32_t buf[]);
133
142 IOTHINX_ERR ioThinx_DI_GetCntStarts(uint32_t slot, uint32_t *p_starts);
143
152 IOTHINX_ERR ioThinx_DI_SetCntStarts(uint32_t slot, uint32_t starts);
153
162 IOTHINX_ERR ioThinx_DI_SetCntStops(uint32_t slot, uint32_t stops);
163
172 IOTHINX_ERR ioThinx_DI_GetCntOverflows(uint32_t slot, uint32_t *p_overflows);
173
182 IOTHINX_ERR ioThinx_DI_SetCntOverflows(uint32_t slot, uint32_t overflows);
183
193 IOTHINX_ERR ioThinx_DI_Config_GetModes(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[]);
194
204 IOTHINX_ERR ioThinx_DI_Config_SetModes(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[]);
205
216 IOTHINX_ERR ioThinx_DI_Config_GetFilters(uint32_t slot, uint8_t start, uint8_t count, uint16_t buf[]);
217
228 IOTHINX_ERR ioThinx_DI_Config_SetFilters(uint32_t slot, uint8_t start, uint8_t count, uint16_t buf[]);
229
239 IOTHINX_ERR ioThinx_DI_Config_GetCntTriggers(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[]);
240
250 IOTHINX_ERR ioThinx_DI_Config_SetCntTriggers(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[]);
251
261 IOTHINX_ERR ioThinx_DI_Config_GetCntValues(uint32_t slot, uint8_t start, uint8_t count, uint32_t buf[]);
262
272 IOTHINX_ERR ioThinx_DI_Config_SetCntValues(uint32_t slot, uint8_t start, uint8_t count, uint32_t buf[]);
273
275
276 // ----------------------------------------------------------------------------
290 //DO MODE
291 #define DO_MODE_DO 0
292 #define DO_MODE_PWM 1
293
303 IOTHINX_ERR ioThinx_DO_GetValues(uint32_t slot, uint32_t *p_values);
304
313 IOTHINX_ERR ioThinx_DO_SetValues(uint32_t slot, uint32_t values);
314
324 IOTHINX_ERR ioThinx_DO_GetPwmCounts(uint32_t slot, uint8_t start, uint8_t count, uint32_t buf[]);
325
335 IOTHINX_ERR ioThinx_DO_SetPwmCounts(uint32_t slot, uint8_t start, uint8_t count, uint32_t buf[]);
336
345 IOTHINX_ERR ioThinx_DO_GetPwmStarts(uint32_t slot, uint32_t *p_starts);
346
355 IOTHINX_ERR ioThinx_DO_SetPwmStarts(uint32_t slot, uint32_t starts);
356
365 IOTHINX_ERR ioThinx_DO_SetPwmStops(uint32_t slot, uint32_t stops);
366
378 IOTHINX_ERR ioThinx_DO_GetPwmConfigures(uint32_t slot, uint8_t start, uint8_t count, uint16_t frequencies[], uint16_t duty_cycles[]);
379
391 IOTHINX_ERR ioThinx_DO_SetPwmConfigures(uint32_t slot, uint8_t start, uint8_t count, uint16_t frequencies[], uint16_t duty_cycles[]);
392
402 IOTHINX_ERR ioThinx_DO_Config_GetModes(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[]);
403
413 IOTHINX_ERR ioThinx_DO_Config_SetModes(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[]);
414
424 IOTHINX_ERR ioThinx_DO_Config_GetPwmCounts(uint32_t slot, uint8_t start, uint8_t count, uint32_t buf[]);
425
435 IOTHINX_ERR ioThinx_DO_Config_SetPwmCounts(uint32_t slot, uint8_t start, uint8_t count, uint32_t buf[]);
436
448 IOTHINX_ERR ioThinx_DO_Config_GetPwmConfigures(uint32_t slot, uint8_t start, uint8_t count, uint16_t frequencies[], uint16_t duty_cycles[]);
449
461 IOTHINX_ERR ioThinx_DO_Config_SetPwmConfigures(uint32_t slot, uint8_t start, uint8_t count, uint16_t frequencies[], uint16_t duty_cycles[]);
462
464
465 // ----------------------------------------------------------------------------
482 IOTHINX_ERR ioThinx_Relay_GetValues(uint32_t slot, uint32_t *p_values);
483
492 IOTHINX_ERR ioThinx_Relay_SetValues(uint32_t slot, uint32_t values);
493
503 IOTHINX_ERR ioThinx_Relay_GetTotalCounts(uint32_t slot, uint8_t start, uint8_t count, uint32_t buf[]);
504
514 IOTHINX_ERR ioThinx_Relay_GetCurrentCounts(uint32_t slot, uint8_t start, uint8_t count, uint32_t buf[]);
515
524 IOTHINX_ERR ioThinx_Relay_ResetCurrentCounts(uint32_t slot, uint32_t resets);
526
527 // ----------------------------------------------------------------------------
539 //AI RANGE
540 #define AI_RANGE_DISABLE 0
541 #define AI_RANGE_0_10V 1
542 #define AI_RANGE_0_20mA 2
543 #define AI_RANGE_4_20mA_BURNOUT 3
544 #define AI_RANGE_4_20mA 4
545 #define AI_RANGE_10V 5
546
558 IOTHINX_ERR ioThinx_AI_GetEngs(uint32_t slot, uint8_t start, uint8_t count, float buf[]);
559
569 IOTHINX_ERR ioThinx_AI_GetMinEngs(uint32_t slot, uint8_t start, uint8_t count, float buf[]);
570
580 IOTHINX_ERR ioThinx_AI_GetMaxEngs(uint32_t slot, uint8_t start, uint8_t count, float buf[]);
581
591 IOTHINX_ERR ioThinx_AI_GetRaws(uint32_t slot, uint8_t start, uint8_t count, uint32_t buf[]);
592
602 IOTHINX_ERR ioThinx_AI_GetMinRaws(uint32_t slot, uint8_t start, uint8_t count, uint32_t buf[]);
603
613 IOTHINX_ERR ioThinx_AI_GetMaxRaws(uint32_t slot, uint8_t start, uint8_t count, uint32_t buf[]);
614
623 IOTHINX_ERR ioThinx_AI_ResetMins(uint32_t slot, uint32_t resets);
624
633 IOTHINX_ERR ioThinx_AI_ResetMaxs(uint32_t slot, uint32_t resets);
634
644 IOTHINX_ERR ioThinx_AI_GetStatuss(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[]);
645
655 IOTHINX_ERR ioThinx_AI_Config_GetRanges(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[]);
656
666 IOTHINX_ERR ioThinx_AI_Config_SetRanges(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[]);
667
678 IOTHINX_ERR ioThinx_AI_Config_GetBurnoutValues(uint32_t slot, uint8_t start, uint8_t count, float buf[]);
679
690 IOTHINX_ERR ioThinx_AI_Config_SetBurnoutValues(uint32_t slot, uint8_t start, uint8_t count, float buf[]);
691
693 // ----------------------------------------------------------------------------
705 //AO RANGE
706 #define AO_RANGE_DISABLE 0
707 #define AO_RANGE_0_10_V 1
708 #define AO_RANGE_0_20mA 2
709 #define AO_RANGE_4_20mA 3
710
721 IOTHINX_ERR ioThinx_AO_GetEngs(uint32_t slot, uint8_t start, uint8_t count, float buf[]);
722
732 IOTHINX_ERR ioThinx_AO_SetEngs(uint32_t slot, uint8_t start, uint8_t count, float buf[]);
733
743 IOTHINX_ERR ioThinx_AO_GetRaws(uint32_t slot, uint8_t start, uint8_t count, uint16_t buf[]);
744
754 IOTHINX_ERR ioThinx_AO_SetRaws(uint32_t slot, uint8_t start, uint8_t count, uint16_t buf[]);
755
765 IOTHINX_ERR ioThinx_AO_GetStatuss(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[]);
766
776 IOTHINX_ERR ioThinx_AO_Config_GetRanges(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[]);
777
787 IOTHINX_ERR ioThinx_AO_Config_SetRanges(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[]);
788
790
791 // ----------------------------------------------------------------------------
804 #define TC_SENSOR_TYPE_J 0 // (0 to 750 Celsius degree)
805 #define TC_SENSOR_TYPE_K 1 // (-200 to 1250 Celsius degree)
806 #define TC_SENSOR_TYPE_T 2 // (-200 to 350 Celsius degree)
807 #define TC_SENSOR_TYPE_E 3 // (-200 to 900 Celsius degree)
808 #define TC_SENSOR_TYPE_R 4 // (-50 to 1600 Celsius degree)
809 #define TC_SENSOR_TYPE_S 5 // (-50 to 1760 Celsius degree)
810 #define TC_SENSOR_TYPE_B 6 // (600 to 1700 Celsius degree)
811 #define TC_SENSOR_TYPE_N 7 // (-200 to 1300 Celsius degree)
812 #define TC_SENSOR_TYPE_75_126_MV 14 // (+/- 78.126 mV)
813 #define TC_SENSOR_TYPE_39_062_MV 15 // (+/- 39.062 mV)
814 #define TC_SENSOR_TYPE_19_532_MV 16 // (+/- 19.532 mV)
815 #define TC_SENSOR_TYPE_DISABLE 63
816
827 IOTHINX_ERR ioThinx_TC_GetValues(uint32_t slot, uint8_t start, uint8_t count, float buf[]);
828
838 IOTHINX_ERR ioThinx_TC_GetMinValues(uint32_t slot, uint8_t start, uint8_t count, float buf[]);
839
849 IOTHINX_ERR ioThinx_TC_GetMaxValues(uint32_t slot, uint8_t start, uint8_t count, float buf[]);
850
860 IOTHINX_ERR ioThinx_TC_ResetMins(uint32_t slot, uint32_t resets);
861
871 IOTHINX_ERR ioThinx_TC_ResetMaxs(uint32_t slot, uint32_t resets);
872
882 IOTHINX_ERR ioThinx_TC_GetStatuss(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[]);
883
893 IOTHINX_ERR ioThinx_TC_SetCalibrations(uint32_t slot, uint8_t start, uint8_t count, float buf[]);
894
902 IOTHINX_ERR ioThinx_TC_ResetCalibrations(uint32_t slot, uint8_t start, uint8_t count);
903
913 IOTHINX_ERR ioThinx_TC_Config_GetSensorTypes(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[]);
914
924 IOTHINX_ERR ioThinx_TC_Config_SetSensorTypes(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[]);
925
927
928 // ----------------------------------------------------------------------------
941 #define RTD_SENSOR_TYPE_PT50 0 // (-200 to 850 Celsius degree)
942 #define RTD_SENSOR_TYPE_PT100 1 // (-200 to 850 Celsius degree)
943 #define RTD_SENSOR_TYPE_PT200 2 // (-200 to 850 Celsius degree)
944 #define RTD_SENSOR_TYPE_PT500 3 // (-200 to 850 Celsius degree)
945 #define RTD_SENSOR_TYPE_PT1000 4 // (-200 to 350 Celsius degree)
946 #define RTD_SENSOR_TYPE_8X 14 // (310 ohm)
947 #define RTD_SENSOR_TYPE_4X 15 // (620 ohm)
948 #define RTD_SENSOR_TYPE_2X 16 // (1250 ohm)
949 #define RTD_SENSOR_TYPE_1X 17 // (2200 ohm)
950 #define RTD_SENSOR_TYPE_JPT100 20 // (-200 to 640 Celsius degree)
951 #define RTD_SENSOR_TYPE_JPT200 21 // (-200 to 640 Celsius degree)
952 #define RTD_SENSOR_TYPE_JPT500 22 // (-200 to 640 Celsius degree)
953 #define RTD_SENSOR_TYPE_JPT1000 23 // (-200 to 350 Celsius degree)
954 #define RTD_SENSOR_TYPE_NI100 30 // (-60 to 250 Celsius degree)
955 #define RTD_SENSOR_TYPE_NI200 31 // (-60 to 250 Celsius degree)
956 #define RTD_SENSOR_TYPE_NI500 32 // (-60 to 250 Celsius degree)
957 #define RTD_SENSOR_TYPE_NI1000 33 // (-60 to 150 Celsius degree)
958 #define RTD_SENSOR_TYPE_NI120 34 // (-80 to 260 Celsius degree)
959 #define RTD_SENSOR_TYPE_DISABLE 63
960
971 IOTHINX_ERR ioThinx_RTD_GetValues(uint32_t slot, uint8_t start, uint8_t count, float buf[]);
972
982 IOTHINX_ERR ioThinx_RTD_GetMinValues(uint32_t slot, uint8_t start, uint8_t count, float buf[]);
983
993 IOTHINX_ERR ioThinx_RTD_GetMaxValues(uint32_t slot, uint8_t start, uint8_t count, float buf[]);
994
1004 IOTHINX_ERR ioThinx_RTD_ResetMins(uint32_t slot, uint32_t resets);
1005
1015 IOTHINX_ERR ioThinx_RTD_ResetMaxs(uint32_t slot, uint32_t resets);
1016
1026 IOTHINX_ERR ioThinx_RTD_GetStatuss(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[]);
1027
1037 IOTHINX_ERR ioThinx_RTD_SetCalibrations(uint32_t slot, uint8_t start, uint8_t count, float buf[]);
1038
1046 IOTHINX_ERR ioThinx_RTD_ResetCalibrations(uint32_t slot, uint8_t start, uint8_t count);
1047
1057 IOTHINX_ERR ioThinx_RTD_Config_GetSensorTypes(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[]);
1058
1068 IOTHINX_ERR ioThinx_RTD_Config_SetSensorTypes(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[]);
1069
1071
1072
1073 // ----------------------------------------------------------------------------
1085 #define SYS_PWR_STATUS_CONNECTED 0
1086 #define SYS_PWR_STATUS_WARNING 1 // system power under setting
1087 #define FIELD_PWR_STATUS_CONNECTED 0
1088 #define FIELD_PWR_STATUS_DISCONNECTED 1
1089 #define FIELD_PWR_STATUS_WARNING 2 // field power over Spec.
1090
1101 IOTHINX_ERR ioThinx_PWR_GetSysStatus(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[]);
1102
1112 IOTHINX_ERR ioThinx_PWR_GetFieldStatus(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[]);
1113
1123 IOTHINX_ERR ioThinx_PWR_Config_GetAlarms(uint32_t slot, uint8_t start, uint8_t count, float buf[]);
1124
1125
1135 IOTHINX_ERR ioThinx_PWR_Config_SetAlarms(uint32_t slot, uint8_t start, uint8_t count, float buf[]);
1137
1138 // ----------------------------------------------------------------------------
1151 struct MODULE_INFO
1152 {
1153 uint8_t model_name[20];
1154 uint32_t product_id;
1155 uint16_t fwr_version;
1156 uint32_t fwr_build_date;
1157 uint8_t serial_number[13];
1158 };
1160
1165 #define LED_STATE_DARK 0
1166 #define LED_STATE_GREEN 1
1167 #define LED_STATE_RED 2
1168
1173 #define LED_CHANNEL_U1 1
1174 #define LED_CHANNEL_U2 2
1175
1183 IOTHINX_ERR ioThinx_Misc_GetModuleInfo(uint8_t slot, struct MODULE_INFO *p_module_info);
1184
1192 IOTHINX_ERR ioThinx_Misc_GetModuleInfoML(uint8_t slot, struct MODULE_INFO *p_module_info);
1193
1199 IOTHINX_ERR ioThinx_Misc_GetModuleCount(uint32_t *p_module_count);
1200
1206 IOTHINX_ERR ioThinx_Misc_GetModuleCountML(uint32_t *p_module_count);
1207
1214 IOTHINX_ERR ioThinx_Misc_GetRotarySwitchState(uint32_t slot, uint8_t *p_state);
1215
1223 IOTHINX_ERR ioThinx_Misc_SetUserLedState(uint32_t slot, uint8_t channel, uint8_t state);
1224
1231 IOTHINX_ERR ioThinx_Misc_GetPushButtonState(uint32_t slot, uint8_t *p_state);
1232
1239 IOTHINX_ERR ioThinx_Misc_GetLocateState(uint32_t slot, uint8_t *p_state);
1240
1247 IOTHINX_ERR ioThinx_Misc_SetLocateState(uint32_t slot, uint8_t state);
1248
1250
1251 // ----------------------------------------------------------------------------
1263 #define SERIAL_PORT_1 0
1264 #define SERIAL_PORT_2 1
1265 #define SERIAL_PORT_3 2
1266 #define SERIAL_PORT_4 3
1267
1272 #define SERIAL_INTERFACE_RS232 0
1273 #define SERIAL_INTERFACE_RS485_2WIRE 1
1274 #define SERIAL_INTERFACE_RS422 2
1275
1283 IOTHINX_ERR ioThinx_Serial_GetDevName(uint32_t slot, uint32_t port, uint8_t *name);
1284
1292 IOTHINX_ERR ioThinx_Serial_SetInterface(uint32_t slot, uint32_t port, uint32_t interface);
1293
1301 IOTHINX_ERR ioThinx_Serial_GetInterface(uint32_t slot, uint32_t port, uint32_t *interface);
1302
1304
1306
1307 #ifdef __cplusplus
1308 } // extern "C"
1309 #endif
1310
1311 #endif // __IOTHINXIO_H__
ioThinx_AO_SetRaws
IOTHINX_ERR ioThinx_AO_SetRaws(uint32_t slot, uint8_t start, uint8_t count, uint16_t buf[])
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_AO_SetEngs
IOTHINX_ERR ioThinx_AO_SetEngs(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_Misc_GetModuleInfoML
IOTHINX_ERR ioThinx_Misc_GetModuleInfoML(uint8_t slot, struct MODULE_INFO *p_module_info)
ioThinx_AO_GetRaws
IOTHINX_ERR ioThinx_AO_GetRaws(uint32_t slot, uint8_t start, uint8_t count, uint16_t 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_Misc_GetModuleCountML
IOTHINX_ERR ioThinx_Misc_GetModuleCountML(uint32_t *p_module_count)
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:1155
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:1156
MODULE_INFO::model_name
uint8_t model_name[20]
Definition: iothinxio.h:1153
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_AO_GetStatuss
IOTHINX_ERR ioThinx_AO_GetStatuss(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[])
ioThinx_RTD_Config_SetSensorTypes
IOTHINX_ERR ioThinx_RTD_Config_SetSensorTypes(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[])
name
const char *const name
Definition: cJSON.h:258
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:1154
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[])
ioThinx_AO_Config_SetRanges
IOTHINX_ERR ioThinx_AO_Config_SetRanges(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[])
MODULE_INFO::serial_number
uint8_t serial_number[13]
Definition: iothinxio.h:1157
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:1151
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_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_Serial_SetInterface
IOTHINX_ERR ioThinx_Serial_SetInterface(uint32_t slot, uint32_t port, uint32_t interface)
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_Serial_GetInterface
IOTHINX_ERR ioThinx_Serial_GetInterface(uint32_t slot, uint32_t port, uint32_t *interface)
ioThinx_AO_Config_GetRanges
IOTHINX_ERR ioThinx_AO_Config_GetRanges(uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[])
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_Serial_GetDevName
IOTHINX_ERR ioThinx_Serial_GetDevName(uint32_t slot, uint32_t port, uint8_t *name)
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_AO_GetEngs
IOTHINX_ERR ioThinx_AO_GetEngs(uint32_t slot, uint8_t start, uint8_t count, float buf[])
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[])