opto_cnt_init

int opto_cnt_init (
    int fd;
    opto_cnt_t* ci
);

Description

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.

Parameters

This function accepts the following parameters:

Return Values

On success, the function will return 0. On failure, it will return a non-null value, which is one of standard error codes.