The following userland utilities are provided with the opto driver:
optoctl displays and sets the contents of the internal registers of the OPTOIN-16 card. optoctl uses the ioctl(2) interface exposed by the opto driver to communicate with the card (and the driver). Please take a look at its manpage, optoctl(1) for details.