_DriverOpenH (FUN) ¶ FUNCTION _DriverOpenH : CAA.HANDLE Unmanaged implementation of DriverOpenH InOut: Scope Name Type Comment Return _DriverOpenH CAA.HANDLE handle of CAN interface or CAA.gc_hINVALID if failed. Input usiNetId USINT number of CAN network [0..n] uiBaudrate UINT Baudrate in kBit/s xSupport29Bits BOOL FALSE: only 11-Bit IDs, TRUE: support also 29-Bit ctMessages CAA.COUNT number of transmit messages which should be allocated peError POINTER TO ERROR optional pointer to error enum
_DriverOpenP (FUN) ¶ FUNCTION _DriverOpenP : CAA.HANDLE Unmanaged implementation of DriverOpenP InOut: Scope Name Type Comment Return _DriverOpenP CAA.HANDLE Input usiNetId USINT number of CAN channel uiBaudrate UINT baudrate in kBit/s xSupport29Bits BOOL FALSE: only 11-Bit IDs, TRUE: support also 29-Bit szMemSize CAA.SIZE size of allocated memory pMemory CAA.PVOID pointer to memory peError POINTER TO ERROR
_FreeMessage (FUN) ¶ FUNCTION _FreeMessage : ERROR Unmanaged implementation of FreeMessage InOut: Scope Name Type Comment Return _FreeMessage ERROR ERROR.NO_ERROR or appropriate error code Input hMessage CAA.HANDLE handle of message to be freed
_Read (FUN) ¶ FUNCTION _Read : CAA.HANDLE Unmanaged implementation of Read InOut: Scope Name Type Comment Return _Read CAA.HANDLE handle of received CAN message or CAA.gc_hINVALID if receiver is empty. Input hReceiverId CAA.HANDLE receiver handle pctMsgLeft POINTER TO CAA.COUNT Optional pointer to ctMsgLeft . After calling CL2.Read ctMsgLeft contains the number of remaining messages in receive queue. peError POINTER TO ERROR optional pointer to error enum
_ReadArrayReceiver (FUN) ¶ FUNCTION _ReadArrayReceiver : CAA.HANDLE Reads messages from an Array Receiver created by _CreateArrayReceiver InOut: Scope Name Type Comment Return _ReadArrayReceiver CAA.HANDLE handle of received CAN message or CAA.gc_hINVALID if receiver is empty. Input hArrayReceiver CAA.HANDLE handle of array receiver ctIndex CAA.COUNT specifies the array entry which should be read pctMsgLeft POINTER TO CAA.COUNT returns number of messages currently in the receiver peError POINTER TO ERROR optional pointer to error enum
_RegisterIdArea (FUN) ¶ FUNCTION _RegisterIdArea : ERROR Unmanaged implementation of RegisterIdArea InOut: Scope Name Type Comment Return _RegisterIdArea ERROR ERROR.NO_ERROR or appropriate error code Input hReceiverId CAA.HANDLE Handle from CreateIdAreaReceiver cobIdStart CL2I.COBID start id of message to be received cobIdEnd CL2I.COBID end id of message to be received xRTRValue BOOL Value RTR bit xRTRMask BOOL Mask RTR bit x29BitIdValue BOOL Value 29 Bit Id x29BitIdMask BOOL Mask 29 Bit Id xTransmitValue BOOL Value Transmit message xTransmitMask BOOL Mask Transmit message
_UnregisterIdArea (FUN) ¶ FUNCTION _UnregisterIdArea : ERROR Unmanaged implementation of UnregisterIdArea InOut: Scope Name Type Comment Return _UnregisterIdArea ERROR ERROR.NO_ERROR or appropriate error code Input hReceiverId CAA.HANDLE Handle returned by CreateIdAreaReceiver cobIdStart CL2I.COBID start id of message to be received cobIdEnd CL2I.COBID end id of message to be received xRTRValue BOOL Value RTR bit xRTRMask BOOL Mask RTR bit x29BitIdValue BOOL Value 29 Bit Id x29BitIdMask BOOL Mask 29 Bit Id xTransmitValue BOOL Value Transmit Message xTransmitMask BOOL Mask Transmit Message
_Write (FUN) ¶ FUNCTION _Write : ERROR Unmanaged implementation of Write InOut: Scope Name Type Comment Return _Write ERROR ERROR.NO_ERROR or appropriate error code Input hDriver CAA.HANDLE handle of CAN interface hMessage CAA.HANDLE handle of message to be written usiPriority USINT priority of message: 0: send immediately; 1-n: priority (1: high, n: low), default is n = 8 xEnableSyncWindow BOOL use SYNC window => not implemented; do not care
_GetBaudrate (FUN) ¶ FUNCTION _GetBaudrate : UINT Unmanaged implementation of GetBaudrate InOut: Scope Name Type Comment Return _GetBaudrate UINT baudrate in kBit/s Input hDriver CAA.HANDLE handle of CAN interface peError POINTER TO ERROR optional pointer to error enum
_GetBusAlarm (FUN) ¶ FUNCTION _GetBusAlarm : BOOL Unmanaged implementation of GetBusAlarm InOut: Scope Name Type Comment Return _GetBusAlarm BOOL TRUE if a bus alarm is pending. Input hDriver CAA.HANDLE handle of CAN interface peError POINTER TO ERROR optional pointer to error enum