2 can layer functions, Can-layer card initialization functions, Pm7841_install(base, irq_chn, 0xd000) – ADLINK PCI-7841/cPCI-7841 User Manual

Page 28: Getdriverversion(), Can layer functions

Advertising
background image

20

Function Reference

3.2 CAN LAYER Functions

CAN-layer Card Initialization Functions

PM7841_Install(base, irq_chn, 0xd000)

Purpose

Get the version of driver

Prototype

C/C++

int PM7841_Install(int baseAddr, int irq_chn, int memorySpace)
Parameters

baseAddr:Base Address of PM-7841(DIP
Switch)

Irq_chn:

IRQ channel (Jumpper)

MemorySpace:

Memory Mapping Range

Return Value

A signed integer
0 : Successful
-1: Failed

Remarks

PM7841 is PC104(ISA) CAN interface card.
It will need 32-bytes I/O space and 1K
memory space.

See Also

none

Usage

C/C++

#include “pm7841.h”
int ret;
ret = PM7841_Install(
baseAddr,
irq_ch,
memorySpace);

GetDriverVersion()

Purpose

Get the version of driver

Prototype

C/C++
WORD GetDriverVersion(void)

Parameters

none

Return Value

A 16-bit unsigned integer
High byte is the major version
Low byte is the major version

Advertising