NRC_SetCustomIODoutConfig(int sum, int* addr)
Set custom IO dout configuration
Set the number and corresponding address of custom IO dout, 1 means high level, 0 means low level
Type
int =>Set custom IO dout 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 douts, parameter range: sum >= 0 |
addr | int* | The corresponding addresses of custom IO douts, where one int value corresponds to one port |
Sample code
int sum=16;
int addrDout[16] = {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1};
NRC_SetCustomIODoutConfig(sum, addrDout);