PISO-P32A32

Visitor 47 Last updated Thursday, 18-Sep-2003 16:34:05 CST

Supported Models
PIO-821
PIO-D144
PIO-D168
PIO-D24
PIO-D48
PIO-D56
PIO-D64
PIO-D96
PIO-DA16/DA8/DA4
PISO-725
PISO-730
PISO-730A
PISO-813
PISO-A64
PISO-C64
PISO-DA2
PISO-ENC300/600
PISO-P32A32
PISO-P32C32
PISO-P64
PISO-P8R8/P8SSR8AC/P8SSR8DC
PISO-PS300
Valid XHTML 1.0! Valid CSS!

Source Codes Tour
Device File
ioctl Commands
Data Types
Registers
Examples

Device File

/dev/ixpion

The n is the PIO device number.

ioctl Commands

IXPIO_GET_INFO
Retrieve a device's information, and put it into the ixpio_devinfo (ixpio_devinfo_t) structure.
IXPIO_REG_READ
Read a specified register's value, and put the value into the ixpio_reg (ixpio_reg_t) structure.
IXPIO_REG_WRITE
Write a given value to a specified register.

Data Types

ixpio_devinfo_t
The data type of structure ixpio_devinfo which contains information to represent a device (card). This structure is generally used by the ioctl IXPIO_GET_INFO command.
ixpio_reg_t
The data type of structure ixpio_reg that contains a register's id and value. This structure is used by the ioctl IXPIO_REG* commands.

Registers

Available registers that can be used in the ixpio_reg structure for the PISO-P32A32.

IXPIO_RCR
Reset Control Register (R/W)
IXPIO_ACR
AUX Control Register (R/W)
IXPIO_ADR
AUX Data Register (R/W)
IXPIO_IMCR
INT Mask Control Register (R/W)
IXPIO_ASR
AUX Pin Status Register (R/W) The ASR is directly handled by device driver. Write to the register is not recommended! Instead of directly write to it, use the IXPIO_SIG ioctl command to set the interrupt signaling condictions.
IXPIO_IPCR
Interrupt Polarity Control Register (R/W) The IPCR is directly heandled by device driver. Write to the register is not recommended! Instead of directly write to it, use the IXPIO_SIG ioctl command to set the interrupt signaling condictions.
IXPIO_DI
The whole digital inputs (R)
IXPIO_DO
The whole digital outputs (W)
IXPIO_DIO
The whole digital IO (R/W)
IXPIO_DIO_a
Digital IO group a. The a is the port group number, which generally represents an 8-bit digital port. For example, the IXPIO_DIO_A represents the DIO0-7, the IXPIO_DIO_B represents the DIO8-15, and so on in the same rule. Some devices (cards) have four groups (A, B, C, D), some haven't, which can be found from the hardware manual.

Examples

list.c
An example for gatting device information.
pisop32a32/port.c
An example for IO port operating.
pisop32a32/port2.c
An example for the 32-bit digital I/O.

Emmy Tsai <emmy@omega.com> | We are at Your Service <service@omega.com>