Skip to main content

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 valueDescription
0The function is called successfully
-101Invalid input parameter
-102The target object does not exist. This typically occurs when the system initialization is incomplete, and calling other functions may return this value
-103The target object is currently in an inoperable state

Parameter Option

ParameterTypeDescription
sumintThe number of custom IO dins, parameter range: sum >= 0
addrint*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);