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
Summary of Contents for NuCOM cPCI-7841
Page 4: ......
Page 14: ...6 Introduction ...