Ready for review
CanWriteRegister
The function CanWriteRegister writes to a register of the SJA1000-controller.
BOOL CanWriteRegister(int RegAdr, int RegVal);
BOOL DCanWriteRegister(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
Value to write to the register. Only the LSB will be used.
Return Values
If this function succeeds, the return value is TRUE.
If the function fails, the return value is FALSE. Additional error-information is available 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)