P8R8DIO
Visitor 216 |
Last updated Monday, 10-Mar-2003 12:28:00 CST |
Source Codes Tour
Device File
Ioctl Commands
Data Structures
Registers
Examples
/dev/ixisan
The n is the IxISA device number.
- IXISA_ADD_DEV
- Add a device (card) to the device list. Example: driver/ixisaadd.c.
- IXISA_DEL_DEV
- Remove a device from the device list.
- IXISA_GET_INFO
- Retrieve a device's information, and put it to a given structure ixisa_devinfo (ixisa_devinfo_t). Example: list.c.
- IXISA_READ_REG
- Read a specified register's value, and put the value to a given structure ixisa_reg (ixisa_reg_t). Example: p8r8dio/port.c.
- IXISA_WRITE_REG
- Write a given value to a specified register. Example: p8r8dio/port.c.
- ixisa_devinfo_t
- The data type of structure ixisa_devinfo that contains a device's id, irq, base address, and so on. Example: list.c.
- ixisa_reg_t
- The data type of structure ixisa_reg that contains a register's id and value. Example: p8r8dio/port.c.
Available registers which can be used in structure ixisa_reg for P8R8DIO.
- IXISA_DO R W
- Digital Output. Use the IXISA_DO to address the Relay Output Register.
- IXISA_DI R W
- Digital Input, the CH0 - CH7.
- list.c
- An example of ioctl command IXISA_GET_INFO.
- p8r8dio/dio.c
- An example for reading and writing registers by ioctl commands IXISA_READ_REG and IXISA_WRITE_REG.
Emmy Tsai <emmy@icpdas.com> | Service from ICPDAS <service@icpdas.com>