Modelica_DeviceDrivers.Communication.SoftingCAN_

Accompanying functions for the SoftingCAN object

Information

Extends from Modelica_DeviceDrivers.Utilities.Icons.DriverIcon (An icon for a package with device driver functions.).

Package Content

NameDescription
Modelica_DeviceDrivers.Communication.SoftingCAN_.defineObject defineObject Define available objects (CAN messages)
Modelica_DeviceDrivers.Communication.SoftingCAN_.startChip startChip Put CAN controllers of both CAN channels into operational mode (all object definitions have to be completed before!)
Modelica_DeviceDrivers.Communication.SoftingCAN_.writeObject writeObject Write object (CAN message) to transmit buffer
Modelica_DeviceDrivers.Communication.SoftingCAN_.readRcvData readRcvData Read data from object (CAN message)

Modelica_DeviceDrivers.Communication.SoftingCAN_.defineObject

Define available objects (CAN messages)

Inputs

NameDescription
softingCANHandle for device
identIdentifier of CAN message (CAN Id)
transTypetransmission type (receiving or sending)

Outputs

NameDescription
objectNumberObject number of message. Needed for further queries regarding receiving/transmitting the message

Modelica_DeviceDrivers.Communication.SoftingCAN_.startChip

Put CAN controllers of both CAN channels into operational mode (all object definitions have to be completed before!)

Inputs

NameDescription
softingCANHandle for device

Modelica_DeviceDrivers.Communication.SoftingCAN_.writeObject

Write object (CAN message) to transmit buffer

Inputs

NameDescription
softingCANHandle for device
objectNumberObject number of message (from defineObject(..))
dataLengthLength of message in bytes
dataThe payload data

Modelica_DeviceDrivers.Communication.SoftingCAN_.readRcvData

Read data from object (CAN message)

Inputs

NameDescription
softingCANHandle for device
objectNumberObject number of message (from defineObject(..))
bufferString which is capable to take at least 8 elements

Outputs

NameDescription
dataPayload data

Automatically generated Tue Oct 1 14:26:58 2013.