Tcl Channel for CAN Sockets.
More...
Tcl Channel for CAN Sockets.
This module defines a Tcl Channel type for CAN Sockets. These are much like TCP Sockets, except the read/write code translates CAN frames to/from GridConnect messages. This module is only available under Linux, since only Linux has kernel support for the CAN socket family (AF_CAN).
- Author
- Robert Heller <heller@deepsoft.com>
◆ SocketCAN()
int SocketCAN |
( |
Tcl_Interp * |
interp, |
|
|
const char * |
candev |
|
) |
| |
Open a CAN Socket.
This function opens a read/write connection to a CAN socket to the named interface. The result of this function is the name of a Tcl Channel and can be used as an argument to any Tcl Channel function (such as gets, puts, or fileevent).
- Parameters
-
candev | The name of the CAN interface to connect to. |
- Returns
- The name of a Tcl Channel.
◆ Tclsocketcan_SafeInit()
SWIGEXPORT int Tclsocketcan_SafeInit |
( |
Tcl_Interp * |
| ) |
|
Initial value:{
#define SWIG_name
#define SWIG_version
%}
int SocketCAN(Tcl_Interp *interp, const char *candev)
Open a CAN Socket.
Referenced by lcc::CANGridConnect::_flags0(), cmri::CMri::_readbyte(), TTSupport::Stop::AddNote(), TTSupport::Train::AddNoteToTrain(), TTSupport::TimeTableSystem::AddStorageTrack(), lcc::GridConnectReply::basicFormatCheck(), lcc::CanAlias::CanAlias(), lcc::CANGridConnectOverUSBSerial::CANGridConnectOverUSBSerial(), FCFSupport::System::CarTypesOrder(), TTSupport::TimeTableSystem::DuplicateStationIndex(), FCFSupport::System::FindDivisionByIndex(), FCFSupport::System::FindIndustryByIndex(), TTSupport::TimeTableSystem::FindStorageTrack(), FCFSupport::System::FindTrainByIndex(), FCFSupport::Industry::IncrementStatsLen(), TTSupport::TimeTableSystem::IthStation(), TTSupport::TimeTableSystem::Note(), TTSupport::Stop::Note(), TTSupport::Train::Note(), FCFSupport::Owner::Owner(), TTSupport::TimeTableSystem::SetDuplicateStationIndex(), TTSupport::TimeTableSystem::SetNote(), TTSupport::TimeTableSystem::SMile(), TTSupport::TimeTableSystem::StationName(), TTSupport::Train::StopI(), FCFSupport::System::TheCar(), FCFSupport::Industry::TheCar(), FCFSupport::System::TheCarGroup(), FCFSupport::System::TheDivision(), FCFSupport::System::TheIndustry(), FCFSupport::Station::TheIndustry(), FCFSupport::System::TheStation(), FCFSupport::Division::TheStation(), FCFSupport::System::TrainByIndex(), and FCFSupport::PDFFileStructures::IndirectFloatVector::WriteDirect().
◆ TclSocketCAN
Initial value:{
static const char rcsid[] = "@(#) : $Id$"