IO Sample for Embedded OPC UA Server More...
#include <unistd.h>#include <string.h>#include <iothinx/iothinxio.h>#include <mx_node_sdk/mx_node_interface_basic.h>#include <mx_node_sdk/mx_node_interface_data_access.h>#include "DataSet.h"#include "cJSON.h"Go to the source code of this file.
Enumerations | |
| enum | OPERATOR_STATE { OPERATOR_STATE_STOP, OPERATOR_STATE_STOPPING, OPERATOR_STATE_RUNNING, OPERATOR_STATE_STOP, OPERATOR_STATE_STOPPING, OPERATOR_STATE_RUNNING } |
| include interfaces More... | |
Functions | |
| struct timeval | now () |
| custom function More... | |
| MX_NODE_RESULT | add_io_nodes () |
| 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) |
Variables | |
| MX_NODE_NODE_OPERATOR_HANDLE | g_operator_handle |
| volatile OPERATOR_STATE | g_state |
| NODE ** | io_example |
| int | g_totalSlot |
| int * | g_slotNodeCountRecorder |
IO Sample for Embedded OPC UA Server
Introduction: This is IO sample code for Embedded OPC UA Server.
Definition in file io_node_operator.c.
| enum OPERATOR_STATE |
include interfaces
| Enumerator | |
|---|---|
| OPERATOR_STATE_STOP | |
| OPERATOR_STATE_STOPPING | |
| OPERATOR_STATE_RUNNING | |
| OPERATOR_STATE_STOP | |
| OPERATOR_STATE_STOPPING | |
| OPERATOR_STATE_RUNNING | |
Definition at line 38 of file io_node_operator.c.
| struct timeval now | ( | ) |
custom function
Definition at line 303 of file demo_node_operator.c.
| MX_NODE_RESULT add_io_nodes | ( | ) |
Definition at line 206 of file io_node_operator.c.
| 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.
| MX_NODE_NODE_OPERATOR_HANDLE g_operator_handle |
Definition at line 48 of file io_node_operator.c.
| volatile OPERATOR_STATE g_state |
Definition at line 49 of file io_node_operator.c.
| NODE** io_example |
Definition at line 51 of file io_node_operator.c.
| int g_totalSlot |
Definition at line 52 of file io_node_operator.c.
| int* g_slotNodeCountRecorder |
Definition at line 53 of file io_node_operator.c.