P8R8DIO

Visitor 216 Last updated Monday, 10-Mar-2003 12:28:00 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: p8r8dio/port.c.
IXISA_WRITE_REG
Write a given value to a specified register. Example: p8r8dio/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: p8r8dio/port.c.

Registers

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.

Examples

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>