PISO-PS300
Visitor 83 |
Last updated Tuesday, 18-Nov-2003 11:21:55 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-PS300.
- IXPIO_FIFO1
- FIFO1 Register (W)
- IXPIO_FIFO2
- FIFO2 Register (R)
- IXPIO_RR
- RSTFIFO1 Register (W)
- IXPIO_MR
- MSC Register (R)
- IXPIO_DI
- The whole digital inputs (R)
- IXPIO_DO
- The whole digital outputs (W)
- IXPIO_TJ_CNTL
- set reset and others (W)
- IXPIO_TJ_AUXC
- AUX pin control register 1:output (W)
- list.c
- An example for gatting device information.
pisops300/demo1.cAn example for hand wheel input.
pisops300/demo2.cAn example for hand wheel input.
Emmy Tsai <emmy@icpdas.com> | We are at Your Service <service@icpdas.com>