My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
gcp::util::NetMsg Class Reference

Public Types

enum  MsgType {
  GREETING = gcp::control::NET_GREETING_MSG, LOG = gcp::control::NET_LOG_MSG, ID = gcp::control::NET_ID_MSG, NAV_UPDATE = gcp::control::NET_NAV_UPDATE_MSG,
  DRIVE_DONE = gcp::control::NET_DRIVE_DONE_MSG, BENCH_DONE = gcp::control::NET_BENCH_DONE_MSG, SCAN_DONE = gcp::control::NET_SCAN_DONE_MSG, SOURCE_SET = gcp::control::NET_SOURCE_SET_MSG,
  CALTERT_DONE = gcp::control::NET_CALTERT_DONE_MSG, IFMOD_DONE = gcp::control::NET_IFMOD_DONE_MSG, CAN_DONE = gcp::control::NET_CAN_DONE_MSG, SCRIPT_DONE = gcp::control::NET_SCRIPT_DONE_MSG
}
 

Public Member Functions

void setAntId (AntNum::Id antId)
 
void packGreetingMsg (unsigned int id, unsigned revision, unsigned nReg, unsigned nByte)
 
unsigned maxMsgLen ()
 
void packLogMsg (std::string message, bool isError, unsigned seq=0, bool end=0)
 
void packAntennaIdMsg (unsigned int id)
 
void packNavUpdateMsg ()
 
void packDriveDoneMsg (unsigned seq)
 
void packBenchDoneMsg (unsigned seq)
 
void packScanDoneMsg (unsigned seq)
 
void packScriptDoneMsg (unsigned seq)
 
void packSourceSetMsg (unsigned seq)
 
void packCalTertDoneMsg (unsigned seq)
 
void packIFModDoneMsg (unsigned seq)
 
void packCanCommandDoneMsg (unsigned seq)
 

Public Attributes

MsgType type
 
gcp::control::RtcNetMsg body
 

Friends

std::ostream & operator<< (std::ostream &os, const NetMsg &rhs)
 

Member Enumeration Documentation

Enumerate supported message types.

Member Data Documentation

gcp::control::RtcNetMsg gcp::util::NetMsg::body

The contents of the message.

MsgType gcp::util::NetMsg::type

A type for this message


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