NRC_SetCustomIODinConfig(int sum, int* addr)
Set custom IO din configuration
Set the number and corresponding address of custom IO din, 1 means high level, 0 means low level
Type
int =>Set custom IO din configuration
Return value | Description |
---|---|
0 | The function is called successfully |
-101 | Invalid input parameter |
-102 | The target object does not exist. This typically occurs when the system initialization is incomplete, and calling other functions may return this value |
-103 | The target object is currently in an inoperable state |
Parameter Option
Parameter | Type | Description |
---|---|---|
sum | int | The number of custom IO dins, parameter range: sum >= 0 |
addr | int* | The corresponding addresses of custom IO dins, where one int value corresponds to one port |
Sample code
int sum=16;
int addrDin[16] = {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1};
NRC_SetCustomIODinConfig(sum, addrDin);