CARMA C++
sza::antenna::canbus::CanDevice Class Reference

A class for encapsulating devices for the SZA which will be attached to a CAN bus. More...

#include <carma/antenna/sza/antenna/canbus/CanDevice.h>

Inheritance diagram for sza::antenna::canbus::CanDevice:
carma::canbus::Device sza::antenna::control::Board

Public Member Functions

 CanDevice (sza::antenna::control::SzaShare *share, std::string boardName, carma::canbus::apiType api, carma::canbus::nodeType node, carma::canbus::CanOutput &io)
 Constructor. More...
 
virtual void enableMonitorPackets (bool timeStampEnable, bool blankingFrameEnable, bool slowMonitorEnable)
 Enable/Disable monitor packets. More...
 
CanMonitorPoint * findMonitorPoint (char *name)
 
void postMessage (carma::canbus::Message msg)
 Post a fully constructed message to this device. More...
 
std::vector
< carma::canbus::Message
sendDummyMsg (bool send)
 
virtual void sendTimeStamp ()
 Send the current mjd. More...
 
virtual void setRxId (sza::util::Rx::Id rxId)
 
virtual ~CanDevice ()
 Destructor. More...
 
- Public Member Functions inherited from carma::canbus::Device
carma::canbus::Message createDummyMsg () const
 Create a dummy CAN message. More...
 
carma::canbus::Message createMsgToAllNodes (msgType messageId) const
 Create a CAN message addressed to all nodes of this type. More...
 
carma::canbus::Message createMsgToHost (msgType messageId) const
 Create a CAN message addressed from this Device to the host. More...
 
carma::canbus::Message createMsgToNode (msgType messageId) const
 Create a CAN message addressed to this device from the host. More...
 
 Device (apiType api, nodeType node, CanOutput &io)
 Device constructor. More...
 
apiType getApi () const
 Return api code of device. More...
 
char getApiVersion () const
 Get API Version of this Device. More...
 
boardType getBoardType () const
 Return board type id of device. More...
 
busIdType getBusId () const
 Return bus Id that node resides on. More...
 
virtual MsgIdInfoMap getControls () const
 Return a map of devices controls. More...
 
keyType getKey () const
 Create a key unique to this api and node. More...
 
double getLastRxTime () const
 Get Last RX Time for device. More...
 
unsigned int getNlatePackets () const
 Get number of late packets. More...
 
nodeType getNode () const
 Return node location code of device. More...
 
serialNumberType getSerialNumber () const
 Return serial number of device. More...
 
deviceStateType getState () const
 Status access routine. More...
 
void reset ()
 Perform a software reset of module. More...
 
void setBoardType (boardType bt)
 Set board type of device. More...
 
void setBusId (busIdType busId)
 Set busId of device. More...
 
virtual void setLastRxTime (double rxMjd)
 Set latest rx time. More...
 
void setSerialNumber (serialNumberType sn)
 Set serial number of device. More...
 
virtual void setState (deviceStateType state)
 Set state of device. More...
 
void startChannelOneFastSampling (unsigned short fastItem)
 Start fast sampling the specified data item on channel 1. More...
 
void startChannelTwoFastSampling (unsigned short fastItem)
 Start fast sampling the specified data item on channel 2. More...
 
void stopChannelOneFastSampling ()
 Stop fast sampling on channel 1 This routine will stop fast sampling on channel 1 regardless of whether this node is fast sampling the channel or not! In other words the request goes out globally. More...
 
void stopChannelTwoFastSampling ()
 Stop fast sampling on channel 2 This routine will stop fast sampling on channel 2 regardless of whether this node is fast sampling the channel or not! In other words the request goes out globally. More...
 
virtual void updateFrameData ()
 Update device or monitor data on frame timescale... More...
 
virtual ~Device ()
 Device destructor. More...
 
- Public Member Functions inherited from sza::antenna::control::Board
 Board (SzaShare *share, std::string name)
 Constructor looks up a board by name and stores a pointer to it in private member board_ (below). More...
 
 Board (SzaShare *share, sza::util::AntNum ant)
 Constructor looks up the rx board corresponding to the requested antenna and stores a pointer to it in private member board_ (below) More...
 
 Board (SzaShare *share)
 Constructor for a virtual board. More...
 
RegMapBlock * findReg (char *name)
 Return a pointer to a register of the board managed by this object. More...
 
int getIndex ()
 Public function to return the index of this board in the register database. More...
 
bool isReachable ()
 Verify that this board is reachable. More...
 
virtual void readReg (RegMapBlock *blk, unsigned int first, unsigned int nreg, unsigned int *value)
 Method to read a register from this board. More...
 
virtual void reset ()
 Function to reset private members of a board-management object. More...
 
virtual void writeReg (RegMapBlock *blk, unsigned int first, unsigned int nreg, unsigned int *value)
 Methods to write to a register of this board. More...
 
virtual void writeReg (RegMapBlock *blk, unsigned int first, unsigned int nreg, bool *value)
 Methods to write to a register of this board. More...
 
virtual ~Board ()
 Declaration of destructor as pure virtual prevents instantiation of this base class. More...
 

Protected Types

enum  commonEngineeringCommands {
  ENGCMD_ERROR_LOG = 0x3F0, ENGCMD_ERROR_CLEAR = 0x3F4, ENGCMD_MONITOR_ENABLE = 0x3FB, ENGCMD_ID_REQUEST = 0x3FC,
  ENGCMD_START_DOWNLOAD = 0x3FD, ENGCMD_ASCII_STRING = 0x3FF
}
 
enum  commonHostCommands {
  HOSTCMD_RESET = 0x000, HOSTCMD_SET_TIME = 0x001, HOSTCMD_STOP_CHAN1 = 0x002, HOSTCMD_STOP_CHAN2 = 0x003,
  HOSTCMD_START_CHAN1 = 0x004, HOSTCMD_START_CHAN2 = 0x005
}
 
enum  defaultHalfSecMonitors {
  MONITOR_PACKET_1 = 0x0E0, MONITOR_PACKET_2 = 0x0E1, MONITOR_PACKET_3 = 0x0E2, MONITOR_PACKET_4 = 0x0E3,
  MONITOR_PACKET_5 = 0x0E4, MONITOR_PACKET_6 = 0x0E5, MONITOR_PACKET_7 = 0x0E6, MONITOR_PACKET_8 = 0x0E7,
  MONITOR_PACKET_9 = 0x0E8, MONITOR_PACKET_10 = 0x0E9, MONITOR_PACKET_11 = 0x0EA
}
 Blanking frame monitor packets are generally the same for all CAN nodes. More...
 
enum  engineeringMonitors { ENG_MONITOR_1 = 0x1F0, ENG_MONITOR_2 = 0x1F1, ENG_MONITOR_3 = 0x3FC, ENG_MONITOR_4 = 0x3FF }
 Engineering monitor packets. More...
 
enum  slowMonitors {
  SLOW_MONITOR_1 = 0x120, SLOW_MONITOR_2 = 0x121, SLOW_MONITOR_3 = 0x122, SLOW_MONITOR_4 = 0x123,
  SLOW_MONITOR_5 = 0x124
}
 Slow monitor packets will be the same for all CAN nodes. More...
 

Protected Member Functions

virtual void clearErrorLog ()
 Clear the error log. More...
 
virtual std::string controlPrefix ()
 Return an inheritor-specific prefix to use when constructing monitor points. More...
 
carma::canbus::idType createDummyId ()
 
carma::canbus::idType createEngId (bool host, carma::canbus::msgType mid)
 Return a CAN message ID constructed from the api, node and command ID. More...
 
carma::canbus::idType createId (bool host, carma::canbus::msgType mid)
 Return a CAN message ID constructed from the api, node and command ID. More...
 
carma::canbus::Message dummyMessage ()
 
carma::canbus::busIdType getBusId ()
 Return a CAN bus ID suitable for passing to Message constructor. More...
 
std::map
< carma::canbus::msgType,
std::string > 
getCommonControls ()
 A map of controls common to all devices. More...
 
std::map
< carma::canbus::msgType,
std::string > 
getControls ()
 Return a map of device controls. More...
 
virtual std::map
< carma::canbus::msgType,
std::string > 
getEngineeringMonitors () const
 Return a map of engineering monitor points. More...
 
virtual std::map
< carma::canbus::msgType,
std::string > 
getHalfSecMonitors () const
 Return a map of devices half second monitor points. More...
 
virtual std::map
< carma::canbus::msgType,
std::string > 
getSlowMonitors () const
 Return a map of slow monitor points. More...
 
virtual std::map
< carma::canbus::msgType,
std::string > 
getSpecificControls () const
 Get module-specific controls. More...
 
virtual std::map
< carma::canbus::msgType,
std::string > 
getStatusMessages () const
 Return a map of status messages. More...
 
carma::canbus::Message hostMessage (carma::canbus::msgType mid, std::vector< carma::canbus::byteType > &data)
 Get an initialized host message. More...
 
carma::canbus::Message hostMessage (carma::canbus::msgType mid)
 Get an initialized host message with no intrinsic payload. More...
 
unsigned idOfBlankingFrameMonitorMsgType (carma::canbus::msgType mid)
 Return a standard enumerator for monitor packets. More...
 
unsigned idOfStatusMessageMsgType (carma::canbus::msgType mid)
 ...................................................................... More...
 
void initRegs ()
 Init registers common to all CAN devices. More...
 
void installHandler (carma::canbus::msgType mid, void(*handler)(void *arg1, unsigned arg2), void *arg1, unsigned arg2)
 
bool isBlankingFrameMonitor (carma::canbus::msgType mid)
 Return true if this is a valid blanking frame monitor packet. More...
 
bool isEngineeringMonitor (carma::canbus::msgType mid)
 Return true if this is a valid Engineering packet. More...
 
bool isSlowMonitor (carma::canbus::msgType mid)
 Return true if this is a slow monitor packet. More...
 
bool isStatusMessage (carma::canbus::msgType mid)
 Return true if this is a valid status message for this device. More...
 
std::string monthDayYearToString (unsigned int month, unsigned int day, unsigned year)
 
carma::canbus::msgType msgTypeOfBlankingFrameMonitorId (unsigned int id)
 Return the message id corresponding to a standard enumerator. More...
 
carma::canbus::Message nodeEngMessage (carma::canbus::msgType mid, std::vector< carma::canbus::byteType > &data)
 Get an initialized engineering node message. More...
 
carma::canbus::Message nodeMessage (carma::canbus::msgType mid, std::vector< carma::canbus::byteType > &data)
 Get an initialized node message. More...
 
carma::canbus::Message nodeMessage (carma::canbus::msgType mid)
 Get an initialized node message with no intrinsic payload. More...
 
void postDummyMessage ()
 
void postEngMessage (carma::canbus::msgType mid, std::vector< carma::canbus::byteType > &data)
 Post a message for this device. More...
 
void postMessage (carma::canbus::msgType mid, std::vector< carma::canbus::byteType > &data)
 Post a message for this device. More...
 
void postMessage (carma::canbus::msgType mid)
 Post a message with no intrinsic payload. More...
 
virtual void processBlankingFrameMonitor (carma::canbus::msgType mid, std::vector< carma::canbus::byteType > &data, bool isSim)
 Process a blanking frame monitor packet. More...
 
virtual void processBlankingFrameMonitor1 (std::vector< carma::canbus::byteType > &data, bool isSim)
 Stubs for processing up to 10 monitor packets. More...
 
virtual void processBlankingFrameMonitor10 (std::vector< carma::canbus::byteType > &data, bool isSim)
 
virtual void processBlankingFrameMonitor11 (std::vector< carma::canbus::byteType > &data, bool isSim)
 
virtual void processBlankingFrameMonitor2 (std::vector< carma::canbus::byteType > &data, bool isSim)
 
virtual void processBlankingFrameMonitor3 (std::vector< carma::canbus::byteType > &data, bool isSim)
 
virtual void processBlankingFrameMonitor4 (std::vector< carma::canbus::byteType > &data, bool isSim)
 
virtual void processBlankingFrameMonitor5 (std::vector< carma::canbus::byteType > &data, bool isSim)
 
virtual void processBlankingFrameMonitor6 (std::vector< carma::canbus::byteType > &data, bool isSim)
 
virtual void processBlankingFrameMonitor7 (std::vector< carma::canbus::byteType > &data, bool isSim)
 
virtual void processBlankingFrameMonitor8 (std::vector< carma::canbus::byteType > &data, bool isSim)
 
virtual void processBlankingFrameMonitor9 (std::vector< carma::canbus::byteType > &data, bool isSim)
 
virtual void processEngineeringMonitor (carma::canbus::msgType mid, std::vector< carma::canbus::byteType > &data, bool isSim)
 Process an engineering monitor packet. More...
 
virtual void processEngineeringMonitor1 (std::vector< carma::canbus::byteType > &data, bool isSim)
 
virtual void processEngineeringMonitor2 (std::vector< carma::canbus::byteType > &data, bool isSim)
 
virtual void processEngineeringMonitor3 (std::vector< carma::canbus::byteType > &data, bool isSim)
 
virtual void processEngineeringMonitor4 (std::vector< carma::canbus::byteType > &data, bool isSim)
 
virtual void processGenericStatusMessage (bool isSim)
 
virtual void processMsg (carma::canbus::msgType messageId, std::vector< carma::canbus::byteType > &data, bool isSim)
 Process a message for this device. More...
 
virtual void processSlowMonitor (carma::canbus::msgType mid, std::vector< carma::canbus::byteType > &data, bool isSim)
 Process a slow monitor packet. More...
 
virtual void processSlowMonitor1 (std::vector< carma::canbus::byteType > &data, bool isSim)
 Process the first slow monitor packet. More...
 
virtual void processSlowMonitor2 (std::vector< carma::canbus::byteType > &data, bool isSim)
 Process the second slow monitor packet. More...
 
virtual void processSlowMonitor3 (std::vector< carma::canbus::byteType > &data, bool isSim)
 Process the third slow monitor packet. More...
 
virtual void processSlowMonitor4 (std::vector< carma::canbus::byteType > &data, bool isSim)
 Process the fourth slow monitor packet. More...
 
virtual void processSlowMonitor5 (std::vector< carma::canbus::byteType > &data, bool isSim)
 Process the fifth slow monitor packet. More...
 
virtual void processStatusMessage (carma::canbus::msgType mid, bool isSim)
 Process an status message. More...
 
virtual void processStatusMessage1 (bool isSim)
 
virtual void processStatusMessage2 (bool isSim)
 
virtual void processStatusMessage3 (bool isSim)
 
void registerReceived (unsigned id, bool isSim)
 Register receipt of this monitor packet. More...
 
virtual void requestId ()
 Request the module ID. More...
 
virtual void retrieveErrorLogEntry (unsigned short recordNo)
 Retrieve a numbered error log entry. More...
 
virtual void sendAsciiString (std::string sendStr)
 Send a std::string of up to 8 characters to the CAN node. More...
 
virtual carma::canbus::Message simulateBlankingFrameMonitor (carma::canbus::msgType mid)
 Simulate blanking frame monitor packets. More...
 
virtual carma::canbus::Message simulateBlankingFrameMonitor1 ()
 
virtual carma::canbus::Message simulateBlankingFrameMonitor10 ()
 
virtual carma::canbus::Message simulateBlankingFrameMonitor11 ()
 
virtual carma::canbus::Message simulateBlankingFrameMonitor2 ()
 
virtual carma::canbus::Message simulateBlankingFrameMonitor3 ()
 
virtual carma::canbus::Message simulateBlankingFrameMonitor4 ()
 
virtual carma::canbus::Message simulateBlankingFrameMonitor5 ()
 
virtual carma::canbus::Message simulateBlankingFrameMonitor6 ()
 
virtual carma::canbus::Message simulateBlankingFrameMonitor7 ()
 
virtual carma::canbus::Message simulateBlankingFrameMonitor8 ()
 
virtual carma::canbus::Message simulateBlankingFrameMonitor9 ()
 
virtual carma::canbus::Message simulateGenericBlankingFrameMonitor (carma::canbus::msgType mid)
 Simulate a generic monitor packet. More...
 
virtual carma::canbus::Message simulateMsg (carma::canbus::msgType mid)
 Simulate messages to this device. More...
 
void skipByte (std::vector< carma::canbus::byteType > &data, unsigned short nByte)
 Skip a number of bytes in the data array. More...
 
virtual void startDownLoad ()
 Start downloading a new program. More...
 
- Protected Member Functions inherited from carma::canbus::Device
void incrementLatePacketCount ()
 Increment the late packet count by 1. More...
 
bool isPacketLate (double window=100.0)
 Determine if the last packet sent from this device was late. More...
 
void resetLatePacketCount ()
 Reset the late packet count to 0. More...
 
void setApiVersion (char api)
 Set API Version. More...
 

Protected Attributes

unsigned short apiNo_
 
unsigned char asciiString_ [8+1]
 
unsigned short communicationErrorCount_
 
unsigned short dongleId_
 
unsigned int errCnt_
 
unsigned int errCode_
 
unsigned int errData_
 
unsigned int errLog_
 
std::vector< HandlerInfo > handlers_
 
unsigned short hardwareErrorCount_
 
unsigned int initRequest_
 
unsigned int memoryErrors_
 
unsigned int mjd_
 
unsigned int mjdTime_
 
unsigned short moduleSerialNo_
 
unsigned int moduleType_
 
CanMonitor monitor_
 
unsigned int rxErrors_
 
sza::util::Rx::Id rxId_
 
unsigned short schedulerOverflowCount_
 
unsigned int serialNo_
 
unsigned short softwareErrorCount_
 
unsigned char softwareMajorVersion_
 
unsigned char softwareMinorVersion_
 
unsigned char softwareTestVersion_
 
unsigned int swVersionStr_ [3]
 
unsigned int systemErrors_
 
unsigned short timedSchedulerOverflowCount_
 
unsigned short timeErrorCount_
 
short timeOffset_
 
short timeStampDelta_
 
short timeStampInterval_
 
unsigned int txErrors_
 
- Protected Attributes inherited from carma::canbus::Device
const apiType api_
 
CanOutputio_
 Reference to CanOutput object. More...
 
const keyType key_
 
const nodeType node_
 
- Protected Attributes inherited from sza::antenna::control::Board
RegMapBoard * board_
 A pointer to the board this object refers to. More...
 
bool hasBoard_
 True if this Board has a real board corresponding to it. More...
 
SzaShareshare_
 The resource object of the shared memory database. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from carma::canbus::Device
static keyType createKey (apiType api, nodeType node)
 
- Static Protected Attributes inherited from carma::canbus::Device
static const msgType RESET = 0x0000
 Software reset message id. More...
 
static const msgType START_CHANNEL_1_FAST_SAMPLING = 0x0004
 Begin channel 1 fast sampling message id. More...
 
static const msgType START_CHANNEL_2_FAST_SAMPLING = 0x0005
 Begin channel 2 fast sampling message id. More...
 
static const msgType STOP_CHANNEL_1_FAST_SAMPLING = 0x0002
 Stop channel 1 fast sampling message id. More...
 
static const msgType STOP_CHANNEL_2_FAST_SAMPLING = 0x0003
 

Detailed Description

A class for encapsulating devices for the SZA which will be attached to a CAN bus.

CanDevice inherits the public interface of Device and the protected members of Board (SzaShare* share_ and RegMapBoard* board_)

Definition at line 56 of file CanDevice.h.

Member Enumeration Documentation

Blanking frame monitor packets are generally the same for all CAN nodes.

Definition at line 374 of file CanDevice.h.

Engineering monitor packets.

Same for all CAN devices.

Definition at line 566 of file CanDevice.h.

Slow monitor packets will be the same for all CAN nodes.

Definition at line 480 of file CanDevice.h.

Constructor & Destructor Documentation

sza::antenna::canbus::CanDevice::CanDevice ( sza::antenna::control::SzaShare share,
std::string  boardName,
carma::canbus::apiType  api,
carma::canbus::nodeType  node,
carma::canbus::CanOutput io 
)

Constructor.

Parameters
sharePointer to the shared memory object used for monitoring
boardNameThe name of the board in the shared memory object which this device will control.
apiAn identifier for the API version of inheritors of this class.
nodeThe CAN node id
ioReference to CanOutput class - should be obtained from downcasting the canbus::Master reference in inherited canbus::Master class.
virtual sza::antenna::canbus::CanDevice::~CanDevice ( )
virtual

Destructor.

Make this virtual so that inheritors' destructors will be properly called.

Member Function Documentation

virtual void sza::antenna::canbus::CanDevice::clearErrorLog ( )
protectedvirtual

Clear the error log.

virtual std::string sza::antenna::canbus::CanDevice::controlPrefix ( )
protectedvirtual

Return an inheritor-specific prefix to use when constructing monitor points.

carma::canbus::idType sza::antenna::canbus::CanDevice::createEngId ( bool  host,
carma::canbus::msgType  mid 
)
protected

Return a CAN message ID constructed from the api, node and command ID.

carma::canbus::idType sza::antenna::canbus::CanDevice::createId ( bool  host,
carma::canbus::msgType  mid 
)
protected

Return a CAN message ID constructed from the api, node and command ID.

virtual void sza::antenna::canbus::CanDevice::enableMonitorPackets ( bool  timeStampEnable,
bool  blankingFrameEnable,
bool  slowMonitorEnable 
)
virtual

Enable/Disable monitor packets.

We make this public so that tasks can call it on start up.

carma::canbus::busIdType sza::antenna::canbus::CanDevice::getBusId ( )
protected

Return a CAN bus ID suitable for passing to Message constructor.

std::map<carma::canbus::msgType, std::string> sza::antenna::canbus::CanDevice::getCommonControls ( )
protected

A map of controls common to all devices.

std::map<carma::canbus::msgType, std::string> sza::antenna::canbus::CanDevice::getControls ( )
protected

Return a map of device controls.

virtual std::map<carma::canbus::msgType, std::string> sza::antenna::canbus::CanDevice::getEngineeringMonitors ( ) const
protectedvirtual

Return a map of engineering monitor points.

virtual std::map<carma::canbus::msgType, std::string> sza::antenna::canbus::CanDevice::getHalfSecMonitors ( ) const
protectedvirtual

Return a map of devices half second monitor points.

Implements carma::canbus::Device.

virtual std::map<carma::canbus::msgType, std::string> sza::antenna::canbus::CanDevice::getSlowMonitors ( ) const
protectedvirtual

Return a map of slow monitor points.

Implements carma::canbus::Device.

virtual std::map<carma::canbus::msgType, std::string> sza::antenna::canbus::CanDevice::getSpecificControls ( ) const
protectedvirtual

Get module-specific controls.

virtual std::map<carma::canbus::msgType, std::string> sza::antenna::canbus::CanDevice::getStatusMessages ( ) const
protectedvirtual

Return a map of status messages.

carma::canbus::Message sza::antenna::canbus::CanDevice::hostMessage ( carma::canbus::msgType  mid,
std::vector< carma::canbus::byteType > &  data 
)
protected

Get an initialized host message.

carma::canbus::Message sza::antenna::canbus::CanDevice::hostMessage ( carma::canbus::msgType  mid)
protected

Get an initialized host message with no intrinsic payload.

unsigned sza::antenna::canbus::CanDevice::idOfBlankingFrameMonitorMsgType ( carma::canbus::msgType  mid)
protected

Return a standard enumerator for monitor packets.

unsigned sza::antenna::canbus::CanDevice::idOfStatusMessageMsgType ( carma::canbus::msgType  mid)
protected

......................................................................

Return a standard id corresponding to this status frame id

void sza::antenna::canbus::CanDevice::initRegs ( )
protected

Init registers common to all CAN devices.

bool sza::antenna::canbus::CanDevice::isBlankingFrameMonitor ( carma::canbus::msgType  mid)
protected

Return true if this is a valid blanking frame monitor packet.

bool sza::antenna::canbus::CanDevice::isEngineeringMonitor ( carma::canbus::msgType  mid)
protected

Return true if this is a valid Engineering packet.

bool sza::antenna::canbus::CanDevice::isSlowMonitor ( carma::canbus::msgType  mid)
protected

Return true if this is a slow monitor packet.

bool sza::antenna::canbus::CanDevice::isStatusMessage ( carma::canbus::msgType  mid)
protected

Return true if this is a valid status message for this device.

carma::canbus::msgType sza::antenna::canbus::CanDevice::msgTypeOfBlankingFrameMonitorId ( unsigned int  id)
protected

Return the message id corresponding to a standard enumerator.

carma::canbus::Message sza::antenna::canbus::CanDevice::nodeEngMessage ( carma::canbus::msgType  mid,
std::vector< carma::canbus::byteType > &  data 
)
protected

Get an initialized engineering node message.

carma::canbus::Message sza::antenna::canbus::CanDevice::nodeMessage ( carma::canbus::msgType  mid,
std::vector< carma::canbus::byteType > &  data 
)
protected

Get an initialized node message.

carma::canbus::Message sza::antenna::canbus::CanDevice::nodeMessage ( carma::canbus::msgType  mid)
protected

Get an initialized node message with no intrinsic payload.

void sza::antenna::canbus::CanDevice::postEngMessage ( carma::canbus::msgType  mid,
std::vector< carma::canbus::byteType > &  data 
)
protected

Post a message for this device.

void sza::antenna::canbus::CanDevice::postMessage ( carma::canbus::Message  msg)

Post a fully constructed message to this device.

void sza::antenna::canbus::CanDevice::postMessage ( carma::canbus::msgType  mid,
std::vector< carma::canbus::byteType > &  data 
)
protected

Post a message for this device.

void sza::antenna::canbus::CanDevice::postMessage ( carma::canbus::msgType  mid)
protected

Post a message with no intrinsic payload.

virtual void sza::antenna::canbus::CanDevice::processBlankingFrameMonitor ( carma::canbus::msgType  mid,
std::vector< carma::canbus::byteType > &  data,
bool  isSim 
)
protectedvirtual

Process a blanking frame monitor packet.

virtual void sza::antenna::canbus::CanDevice::processBlankingFrameMonitor1 ( std::vector< carma::canbus::byteType > &  data,
bool  isSim 
)
protectedvirtual

Stubs for processing up to 10 monitor packets.

Definition at line 416 of file CanDevice.h.

virtual void sza::antenna::canbus::CanDevice::processEngineeringMonitor ( carma::canbus::msgType  mid,
std::vector< carma::canbus::byteType > &  data,
bool  isSim 
)
protectedvirtual

Process an engineering monitor packet.

virtual void sza::antenna::canbus::CanDevice::processMsg ( carma::canbus::msgType  messageId,
std::vector< carma::canbus::byteType > &  data,
bool  isSim 
)
protectedvirtual

Process a message for this device.

Implements carma::canbus::Device.

virtual void sza::antenna::canbus::CanDevice::processSlowMonitor ( carma::canbus::msgType  mid,
std::vector< carma::canbus::byteType > &  data,
bool  isSim 
)
protectedvirtual

Process a slow monitor packet.

virtual void sza::antenna::canbus::CanDevice::processSlowMonitor1 ( std::vector< carma::canbus::byteType > &  data,
bool  isSim 
)
protectedvirtual

Process the first slow monitor packet.

virtual void sza::antenna::canbus::CanDevice::processSlowMonitor2 ( std::vector< carma::canbus::byteType > &  data,
bool  isSim 
)
protectedvirtual

Process the second slow monitor packet.

virtual void sza::antenna::canbus::CanDevice::processSlowMonitor3 ( std::vector< carma::canbus::byteType > &  data,
bool  isSim 
)
protectedvirtual

Process the third slow monitor packet.

virtual void sza::antenna::canbus::CanDevice::processSlowMonitor4 ( std::vector< carma::canbus::byteType > &  data,
bool  isSim 
)
protectedvirtual

Process the fourth slow monitor packet.

virtual void sza::antenna::canbus::CanDevice::processSlowMonitor5 ( std::vector< carma::canbus::byteType > &  data,
bool  isSim 
)
protectedvirtual

Process the fifth slow monitor packet.

virtual void sza::antenna::canbus::CanDevice::processStatusMessage ( carma::canbus::msgType  mid,
bool  isSim 
)
protectedvirtual

Process an status message.

void sza::antenna::canbus::CanDevice::registerReceived ( unsigned  id,
bool  isSim 
)
protected

Register receipt of this monitor packet.

virtual void sza::antenna::canbus::CanDevice::requestId ( )
protectedvirtual

Request the module ID.

virtual void sza::antenna::canbus::CanDevice::retrieveErrorLogEntry ( unsigned short  recordNo)
protectedvirtual

Retrieve a numbered error log entry.

virtual void sza::antenna::canbus::CanDevice::sendAsciiString ( std::string  sendStr)
protectedvirtual

Send a std::string of up to 8 characters to the CAN node.

virtual void sza::antenna::canbus::CanDevice::sendTimeStamp ( )
virtual

Send the current mjd.

virtual carma::canbus::Message sza::antenna::canbus::CanDevice::simulateBlankingFrameMonitor ( carma::canbus::msgType  mid)
protectedvirtual

Simulate blanking frame monitor packets.

virtual carma::canbus::Message sza::antenna::canbus::CanDevice::simulateGenericBlankingFrameMonitor ( carma::canbus::msgType  mid)
protectedvirtual

Simulate a generic monitor packet.

virtual carma::canbus::Message sza::antenna::canbus::CanDevice::simulateMsg ( carma::canbus::msgType  mid)
protectedvirtual

Simulate messages to this device.

Implements carma::canbus::Device.

void sza::antenna::canbus::CanDevice::skipByte ( std::vector< carma::canbus::byteType > &  data,
unsigned short  nByte 
)
protected

Skip a number of bytes in the data array.

virtual void sza::antenna::canbus::CanDevice::startDownLoad ( )
protectedvirtual

Start downloading a new program.


The documentation for this class was generated from the following file: