Canread(), Canwrite(), Can-layer i/o functions – ADLINK PCI-7841/cPCI-7841 User Manual

Page 32: Canenablereceive(), Canread() canwrite() can-layer i/o functions

Advertising
background image

24

Function Reference

CanConfigPort(handle, &port_struct);
CanCloseDriver(handle);

Visual Basic(Windows 95/98/NT)

CanRead()

Purpose

Direct read the register of PCI-7841.

Prototype

C/C++
BYTE CanRead(int handle, int offset)

Parameters

handle : handle retrieve from CanOpen-
Driver()
offset : offset of register

Return Value

Return data read from port.

Remarks

Direct read the register of PCI-7841.

See Also

CanWrite()

Usage

none

CanWrite()

Purpose

Direct write the register of PCI-7841.

Prototype

C/C++
void CanWrite(int handle, int offset, BYTE
data)

Parameters

handle : handle retrieve from CanOpen-
Driver()
Offset : offset of register
data : data write to the port

Return Value

none

Remarks

Call this function to directly write a register
of PCI-7841

See Also

CanRead()

Usage

none

CAN-layer I/O Functions

CanEnableReceive()

Purpose

Enable receive of a CAN port.

Prototype

C/C++

Advertising