TsctlDIOWaitDesc

From embeddedTS Manuals

The nh Array contains elements which are DIO numbers which match if they are high.

The nl Array contains elements which are DIO numbers which match if they are low.

Waits until the total number of DIOs that match their respective states is between min and max, inclusively.

Upon entry, the length of the match Array must be allocated or null. If it is null, it is ignored. Otherwise, upon return, the match Array length will be resized to the number of DIOs that match and will contain the DIO numbers that matched. If the match Array was not long enough to hold all the DIOs that matched, then the DIOs reported are truncated to the size of the Array as passed by the caller and it is returned length unchanged.

This function polls at the closest available interval to 10ms possible, using Time instance 1 (if available), or Time instance 0 (if instance 1 is not present).