opto_reg_t
typedef struct opto_reg {
unsigned char reg;
unsigned char val;
} opto_reg_t;
|
Description
Contains the register parameters. It is used for reading and
setting a value from and to a specified device register.
Members
This structure has the following members:
-
reg
specifies the register to operate on. It can be one of the
following values:
-
OPTOIN16_REG_IN0:
First input register (bits 0-7).
-
OPTOIN16_REG_IN1:
Second input register (bits 8-15).
-
OPTOIN16_REG_CNT0:
Counter 0, IO buffer.
-
OPTOIN16_REG_CNT1:
Counter 1.
-
OPTOIN16_REG_CNT2:
Counter 2.
-
OPTOIN16_REG_CTRL:
Control register.
-
OPTOIN16_REG_IRRISR:
PIC IRR_ISR register.
-
OPTOIN16_REG_IMR:
PIC IMR register.
-
val
holds the register contents.