DIO-144
Visitor 289 |
Last updated Monday, 27-Oct-2003 17:41:21 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: dio144/port.c.
- IXISA_SET_SIG
- Set interrupt signaling condictions. Example: dio144/int.c.
- IXISA_WRITE_REG
- Write a given value to a specified register. Example: dio144/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: dio144/port.c.
- ixisa_signal_t
- The data type of structure ixisa_signal that contains process id, signal id, and signaling conditions. Example: dio144/int.c.
Available registers which can be used in structure ixisa_reg for DIO-144.
- IXISA_CNnPA R W
- CNn Port A. IXISA_CNnPA is the short term of IXISA_CNn_PORT_A. The n is an available connector number. The available connector numbers are 0 ~ 5 for 144-bit mode, 0 ~ 3 for 96-bit mode. For example IXISA_CN2PA.
- IXISA_CNnPB R W
- CNn Port B. IXISA_CNnPB is the short term of IXISA_CNn_PORT_B.
- IXISA_CNnPC R W
- CNn Port C. IXISA_CNnPC is the short term of IXISA_CNn_PORT_C.
- IXISA_CNnCR R W
- CNn Configured Word (Register.) IXISA_CNnCR is the short term of IXISA_CNn_CONFIGURED_WORD.
- list.c
- An example of ioctl command IXISA_GET_INFO.
- dio144/port.c
- An example for reading and writing registers by ioctl commands IXISA_READ_REG and IXISA_WRITE_REG.
- dio144/int.c
- An example for the mode 2 interrupt signaling condictions by ioctl command IXISA_SET_SIG.
Emmy Tsai <emmy@icpdas.com> | Service from ICPDAS <service@icpdas.com>