PISO-A64
Visitor 53 |
Last updated Thursday, 05-Feb-2004 11:56:39 CST |
Source Codes Tour
Device File
ioctl Commands
Data Types
Registers
Examples
/dev/ixpion
The n is the PIO device number.
- 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.
- 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.
Available registers that can be used in the ixpio_reg structure for the PISO-A64.
- 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_DO_a
- Digital Output group a. The a is the port group number, which generally represents an 8-bit digital port. For example, the IXPIO_DO_A represents the DO0-7, the IXPIO_DO_B represents the DO8-15, and so on in the same rule. Some devices (cards) have eight groups (A, B, C, D, E, F, G, H), some haven't, which can be found from the hardware manual.
- list.c
- An example for gatting device information.
- pisoa64/port.c
- An example for DO port operating.
Emmy Tsai <emmy@icpdas.com> | We are at Your Service <service@icpdas.com>