COBID (ALIAS) ¶ TYPE COBID : UDINT Defines a CAN ID
DATA (ALIAS) ¶ TYPE DATA : ARRAY[0..7] OF USINT Defines the data array of a CAN message.
GetReceivePoolSize (FUN) ¶ FUNCTION GetReceivePoolSize : CAA.COUNT Returns the number of free receive messages in global receive pool. Should be greater 0. Otherwise no more messages can be received. Diagnostic Information can be also read by GetDiagnosis . InOut: Scope Name Type Comment Return GetReceivePoolSize CAA.COUNT number of free receive messages in global receive pool Input hDriver CAA.HANDLE handle of CAN interface peError POINTER TO ERROR optional pointer to error enum
GetReceiveQueueLength (FUN) ¶ FUNCTION GetReceiveQueueLength : CAA.COUNT Returns the number of messages in receive queue waiting for being processed by application or stack. Diagnostic Information can be also read by GetDiagnosis . InOut: Scope Name Type Comment Return GetReceiveQueueLength CAA.COUNT number of messages in receive queue Input hDriver CAA.HANDLE handle of CAN interface peError POINTER TO ERROR optional pointer to error enum
GetTransmitCounter (FUN) ¶ FUNCTION GetTransmitCounter : CAA.COUNT Returns a counter which is incremented with each sent message. Diagnostic Information can be also read by GetDiagnosis . InOut: Scope Name Type Comment Return GetTransmitCounter CAA.COUNT number of sent messages Input hDriver CAA.HANDLE handle of CAN interface peError POINTER TO ERROR optional pointer to error enum
GetTransmitErrorCounter (FUN) ¶ FUNCTION GetTransmitErrorCounter : CAA.COUNT Returns a counter which is incremented with each transmit error. Diagnostic Information can be also read by GetDiagnosis . InOut: Scope Name Type Comment Return GetTransmitErrorCounter CAA.COUNT number of transmit errors Input hDriver CAA.HANDLE handle of CAN interface peError POINTER TO ERROR optional pointer to error enum
GetTransmitPoolSize (FUN) ¶ FUNCTION GetTransmitPoolSize : CAA.COUNT Returns the number of free transmit messages in the transmit message pool of the current driver. Should be greater 0. Otherwise no more messages can be sent. Diagnostic Information can be also read by GetDiagnosis . InOut: Scope Name Type Comment Return GetTransmitPoolSize CAA.COUNT number of free transmit messages in transmit pool. Input hDriver CAA.HANDLE handle of CAN interface peError POINTER TO ERROR optional pointer to error enum
GetTransmitQueueLength (FUN) ¶ FUNCTION GetTransmitQueueLength : CAA.COUNT Returns number of messages in transmit queue waiting for being processed by CAN Minidriver. Diagnostic Information can be also read by GetDiagnosis . InOut: Scope Name Type Comment Return GetTransmitQueueLength CAA.COUNT number of messages in transmit queue. Input hDriver CAA.HANDLE handle of CAN interface peError POINTER TO ERROR optional pointer to error enum
IsSendingActive (FUN) ¶ FUNCTION IsSendingActive : BOOL This function specifies whether the CAN hardware is busy sending CAN messages or whether further messages are stored and waiting to be sent. InOut: Scope Name Type Comment Return IsSendingActive BOOL FALSE if the sending queue is empty and the CAN hardware is actually not transmitting a message. Input hDriver CAA.HANDLE handle of CAN interface peError POINTER TO ERROR optional pointer to error enum
ResetBusAlarm (FUN) ¶ FUNCTION ResetBusAlarm : ERROR In case of a Bus Alarm ( GetBusAlarm returns TRUE ) this function can be called to reset the CAN Hardware. InOut: Scope Name Type Comment Return ResetBusAlarm ERROR ERROR.NO_ERROR or appropriate error code Input hDriver CAA.HANDLE handle of CAN interface