PISO-P8R8/P8SSR8AC/P8SSR8DC
Visitor 271 |
Last updated Wednesday, 13-Aug-2003 16:56:40 CST |
Source Codes Tour
Device File
ioctl Commands
Data Types
Registers
Examples
/dev/ixpion
The n is the PIO device number.
- IXPIO_GET_INFO
- Retrieve a device's information, and put it into the ixpio_devinfo (ixpio_devinfo_t) structure.
- IXPIO_REG_READ
- Read a specified register's value, and put the value into the ixpio_reg (ixpio_reg_t) structure.
- IXPIO_REG_WRITE
- Write a given value to a specified register.
- ixpio_devinfo_t
- The data type of structure ixpio_devinfo which contains information to represent a device (card). This structure is generally used by the ioctl IXPIO_GET_INFO command.
- ixpio_reg_t
- The data type of structure ixpio_reg that contains a register's id and value. This structure is used by the ioctl IXPIO_REG* commands.
Available registers that can be used in the ixpio_reg structure for the PISO-P8R8.
- IXPIO_RCR
- Reset Control Register (R/W)
- IXPIO_DI
- The whole digital inputs (R)
- IXPIO_DO
- The whole digital outputs (W)
- IXPIO_DIO
- The whole digital IO (R/W)
- list.c
- An example for gatting device information.
- pisop8r8/dio.c
- An example for digital I/O.
Emmy Tsai <emmy@omega.com> | We are at Your Service <service@omega.com>