Professional Documents
Culture Documents
INDEX
Device drivers basics Types of drivers Driver Implementation Concepts Introduction to DP Boards & Drivers Details of DP-MM-1105 Details of DP-cPCI-3096 Details of DP-IP-4221 Details of DP-cPCI-4509
CHARACTER DRIVERS
struct file_operations dpxxxx_fops = { .read = dpxxxx_read, .write = dpxxxx_write, .ioctl = dpxxxx_ioctl, .open = dpxxxx_open, .release = dpxxxx_release };
BLOCK DRIVERS
Associated with request queue. Runs atomically. Asynchronous to user space process.
Implements a plug-in interface to allow the use of multiple I/O schedulers (or elevators).
NETWORK DRIVERS
application
IOCTL Layer
User Space Kernel Space
FIFO FIFO
Driver Module
Kernel
Hardware Device
DP Boards
DP Boards are categorized as follows: 1. 2. 3. 4. Data Acquisition Boards (DP-MM-1105) Input/Output Boards (DP-cPCI-3096) Communication Boards (DP-IP-4221) Relay Boards (DP-cPCI-4509)
DP Drivers
DP Drivers are Character drivers General driver API Calls
DPxxxx_FindNoOfBoards DPxxxx_Open (DPxxxx_RTOpen) DPxxxx_Close (DPxxxx_RTClose) DPxxxx_GetErrorMessage DPxxxx_GetDriverVersion
DP-MM-1105
DP-MM-1105 Features
Fast analog input M-Module
16 bit, Analog to Digital Conversion 8 differential voltage inputs or 16 single ended voltage inputs Programmable gain 1, 10,100 or 1000 512 Entry Scan RAM for Scan Sequencing 1 K Sample FIFO for converted data Numerically controlled Oscillator for flexible scan frequency Digitally isolated channel to system for high linearity
DP-MM-1105 Configuration
DP1105_CONFIGURATION Structure.
Input type (1 Single ended, 0 Differential).
Pacer Source (0 Internal, 1 External, 2 Software Pacer). Pace Frequency If Internal Pacer source is selected (in Hz). Trigger type (0 Internal Trigger (through software), 1 External Trigger). Continuous Trigger type (No Continuous Trigger 0, Timer Trigger Enable 1, Continuous Internal Trigger Enable 2). External Trigger Signal type (0 Positive Edge sensitive, 1 Negative Edge sensitive). Time Period Time period between two successive triggers if Timer Trigger is enable (In multiples of 100 microseconds). Buffer size The internal buffer size (in number of samples). Source Type The Parameter specifies the Voltage and Current type. Possible value are 1 and 2.
Primary Latch & Secondary Latch for Output Channels Programmable Debounce Time Feature Some of the DP I/O Modules are (3096 3069, 3015)
DP-cPCI-3096
DP-cPCI-3096 Features
48 Channel Isolated Digital Input / Interrupt 48 Channel Isolated Digital Open Collector Output with 200mA Sink Current Isolation in group of 16 channels Jumper selectable input levels of 5, 12, 24 & 48V DC Time programmable debounce for input Programmable interrupt (Maskable, Edge selectable). Build-in self test for each group. Additional 48 Input and 48 Output channel through rear I/O Relay coil flyback protection for output channels Hot swap compliant
DP-IP-4221
DP-IP-4221 Features
Provides eight asynchronous serial communication ports from a single IP carrier slot. Provides programmable Baud rates, character-sizes, stop bits, and parity. Each serial port is equipped with 128-byte FIFO buffers each on transmit and receive lines, minimizing CPU interaction for improved system performance.
DP-cPCI-4509
DP-cPCI-4509 Features
High voltage switching of up to 220V AC/ DC Relays can be operated individually, or in groups of 16 relays each Relay status provided through read back Rugged connectors for field terminations Hot swap feature
Question(?) Time
THANK YOU