DIO-144

Visitor 289 Last updated Monday, 27-Oct-2003 17:41:21 CST

Supported Models
A-626
A-628
A-8111
A-812PG
A-821
A-822
A-823
A-826
DIO-144
DIO-24
DIO-48
DIO-64
DIO-96
ENCODER-300
ISO-730
ISO-813
ISO-AD32
ISO-C64
ISO-DA16
ISO-LD
ISO-P32C32
ISO-P64
P8R8DIO
P16R16DIO
SERVO-300
STEP-200
TMC-10
Valid XHTML 1.0! Valid CSS!

Source Codes Tour
Device File
Ioctl Commands
Data Structures
Registers
Examples

Device File

/dev/ixisan

The n is the IxISA device number.

Ioctl Commands

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.

Data Structures

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.

Registers

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.

Examples

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>