DIO-48

Visitor 411 Last updated Monday, 10-Mar-2003 12:27:31 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: dio48/port.c.
IXISA_SET_SIG
Set interrupt signaling condictions. Example: dio48/mode2.c.
IXISA_WRITE_REG
Write a given value to a specified register. Example: dio48/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: dio48/port.c.
ixisa_signal_t
The data type of structure ixisa_signal that contains process id, signal id, and signaling conditions. Example: dio48/mode2.c.

Registers

Available registers which can be used in structure ixisa_reg for DIO-48.

IXISA_CN1PA R W
CN1 Port A. IXISA_CN1PA is the short term of IXISA_CN1_PORT_A.
IXISA_CN1PB R W
CN1 Port B. IXISA_CN1PB is the short term of IXISA_CN1_PORT_B.
IXISA_CN1PC R W
CN1 Port C. IXISA_CN1PC is the short term of IXISA_CN1_PORT_C.
IXISA_CN1CR R W
CN1 Configured Word (Register.) IXISA_CN1CR is the short term of IXISA_CN1_CONFIGURED_WORD.
IXISA_CI R W
Clear Interrupt. IXISA_CI is the short term of IXISA_CLEAR_INTERRUPT_REQUEST.
IXISA_CN2PA R W
CN2 Port A. IXISA_CN2PA is the short term of IXISA_CN2_PORT_A.
IXISA_CN2PB R W
CN2 Port B. IXISA_CN2PB is the short term of IXISA_CN2_PORT_B.
IXISA_CN2PC R W
CN2 Port C. IXISA_CN2PC is the short term of IXISA_CN2_PORT_C.
IXISA_CN2CR R W
CN2 Configured Word (Register.) IXISA_CN2CR is short term of IXISA_CN2_CONFIGURED_WORD.
IXISA_SIT R W
Soft Interrupt Trigger. IXISA_SIT is the short term of IXISA_SOFT_INTERRUPT_TRIGGER.
IXISA_8254C0 R W
8254 Counter 0. IXISA_8254C0 is the short term of IXISA_8254_COUNTER_0.
IXISA_8254C1 R W
8254 Counter 1. IXISA_8254C1 is the short term of IXISA_8254_COUNTER_1.
IXISA_8254C2 R W
8254 Counter 2. IXISA_8254C2 is the short term of IXISA_8254_COUNTER_2.
IXISA_8254CR R W
8254 Control Word Register. IXISA_8254CR is the short term of IXISA_8254_CONTROL_WORD_REG.

Examples

list.c
An example of ioctl command IXISA_GET_INFO.
dio48/port.c
An example for reading and writing registers by ioctl commands IXISA_READ_REG and IXISA_WRITE_REG.
dio48/mode2.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>