54 for (
int i = 0; i < _packRequest.size(); i++)
56 tempReturn =
AddPacket(_packRequest.at(i).first);
61 returnValue = tempReturn;
63 else if (tempReturn < 0)
202 printf(
"Packet Id: %d, Packet Type: %s\n", it->first,
packetTypeStr_[it->first].c_str());
215 printf(
"Packet id: %d, Size: %d\n", it->first,
packetSize_[it->first]);
KVH Geo Fog 3D driver class header.
int AddPacket(packet_id_e)
std::map< packet_id_e, std::string > packetTypeStr_
Holds the string value for the different types of structs.
KVH Packet storing class header.
std::map< packet_id_e, int > packetSize_
Map relating packet id's to the associated struct size. Used for baudrate calculation.
std::vector< std::pair< packet_id_e, uint16_t > > KvhPacketRequest
int Init(KvhPacketRequest &)
Correctly sets up a KvhPacketMap for the requested packets.
int SetPacketUpdated(packet_id_e, bool)
bool PacketIsUpdated(packet_id_e)
static void PrintPacketTypes()
static void PrintPacketSizes()
bool Contains(packet_id_e)