Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

The function CanReadRegister reads a register of the SJA1000-controller.

BOOL CanReadRegister(int RegAdr , int* RegVal);
BOOL DCanReadRegister(int devno, int RegAdr , int* RegVal);

Parameters

devno
Index of SJA1000-controller to use (starting with 0).
RegAdr
Offset to the base-address of the SJA1000-controller.
RegVal
Pointer to an integer receiving the read value.

Return Values

If this function succeeds, the return value is TRUE.
If the function fails, the return value is FALSE. Additional error-information is availlable through CanGetLastError

Remarks

Requirements

OS Versions: Windows CE 4.2 and later.
Header: gfcan32ce.h
Link Library: singlecan.lib (one sja1000-controller), dualcan.lib (two or more sja1000-controller)

See Also

SJA1000 Can Bus Support

  • No labels