#include <sys/time.h>
#include <stdio.h>
#include <mx_node_sdk/mx_node_interface_basic.h>
#include <mx_node_sdk/mx_node_interface_data_access.h>
#include "cJSON.h"
Go to the source code of this file.
Data Structures | |
struct | _io_node |
Macros | |
#define | MX_PARSE_CONFIG_ERR -1 |
#define | MX_IO_CONTROL_OK 0 |
#define | MX_IO_CONTROL_ERR -1 |
Typedefs | |
typedef struct _io_node | NODE |
Enumerations | |
enum | FUNC_TYPE { OPC_DI_MODE = 10, OPC_DI_STATUS, OPC_DI_COUNTERSTATUS, OPC_DI_COUNTERVALUE, OPC_DO_MODE = 20, OPC_DO_STATUS, OPC_DO_PULSESTATUS, OPC_DO_PULSECOUNT, OPC_AI_MODE = 30, OPC_AI_STATUS, OPC_AI_RAWVALUE, OPC_AI_MINIMUMRAWVALUE, OPC_AI_MAXIMUMRAWVALUE, OPC_AI_SCALEDVALUE, OPC_RELAY_VALUE = 40 } |
Functions | |
int | parse_json_file (const char *filename) |
int | cJSON_to_struct_array (char *text) |
int | io_control_read (int slot, int index, MX_NODE_VARIANT *node_value) |
int | io_control_write (int slot, int index, const MX_NODE_VARIANT *node_value) |
struct timeval | Now () |
enum FUNC_TYPE |
Definition at line 27 of file DataSet.h.
int parse_json_file | ( | const char * | filename | ) |
Definition at line 311 of file io_node_operator.c.
int cJSON_to_struct_array | ( | char * | text | ) |
Definition at line 336 of file io_node_operator.c.
int io_control_read | ( | int | slot, |
int | index, | ||
MX_NODE_VARIANT * | node_value | ||
) |
Definition at line 445 of file io_node_operator.c.
int io_control_write | ( | int | slot, |
int | index, | ||
const MX_NODE_VARIANT * | node_value | ||
) |
Definition at line 618 of file io_node_operator.c.