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 »

This function receives and/or transmits Can Packets

BOOL CANTransfer(HANDLE hCAN, PCAN_TRANSFER_BLOCK pCANTransferBlock);

Parameters

HANDLE hCAN

HANDLE handle of the CAN Driver got from CANOpenHandle(LPCWSTR lpDevName);

PCAN_TRANSFER_BLOCK pCANTransferBlock

Pointer to Transferblock descriptor

Return Values

If this function succeeds, the returns TRUE
If the function fails, the return value is FALSE.

Remarks

When the CANTransfer function returns. It may be returning due to a receive or send timeout or as a result of a successful transfer (ret=TRUE).

iMX6 Receive: If the transfer was successful, pCANTransferBlock→iTransferStatus gives the index of the received mailbox (index + 1) else 0.

Requirements

OS Versions: Windows CE 6RE3 and later.
canbus.h
Link Library: cansdk.lib

See Also

CAN Data Structures
CANOpenHandle

  • No labels