PISO-813
Visitor 247 |
Last updated Wednesday, 13-Aug-2003 16:17:33 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-813.
- IXPIO_RCR
- Reset Control Register (R/W)
- IXPIO_AIL IXPIO_ADL
- Analog input, low byte.
- IXPIO_AIH IXPIO_ADH
- Analog input, high byte.
- IXPIO_AI IXPIO_AD
- Analog Input
- IXPIO_MCSR
- Multiplexer Channel Select Register (W)
- IXPIO_PGCR
- PGA Gain Code Register (W)
- IXPIO_ADTCR
- AD Trigger Control Register (W)
- list.c
- An example for gatting device information.
- piso813/ai.c
- An example for analog input.
Emmy Tsai <emmy@omega.com> | We are at Your Service <service@omega.com>