• Ready for review
  • CANSetMode

    This function sets one mailbox through the index to RX or TX mode

    BOOL CANSetMode(HANDLE hCAN,DWORD index,CAN_MODE mode);

    Parameters

    HANDLE hCAN

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

    DWORD index

    index of mailbox (0..63)

    CAN_MODE mode

    Return Values

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

    Remarks

    Requirements

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

    See Also

    CANOpenHandle