int opto_cnt_init ( int fd; opto_cnt_t* ci ); |
Initializes one of the on-board counters of type CNT 8255. The initialization may or may not affect the current counter job, depending on the current counter mode.
This function accepts the following parameters:
On success, the function will return 0. On failure, it will return a non-null value, which is one of standard error codes.