37 #include "ace/SOCK_Dgram.h"
43 #include "EoMotionControl.h"
44 #include "eODeb_eoProtoParser.h"
45 #include "eOtheEthLowLevelParser.h"
81 tstruct = *localtime(&now);
84 strftime(buf,
sizeof(buf),
"%d-%m-%Y %X", &tstruct);
92 static void my_cbk_onErrorSeqNum(eOethLowLevParser_packetInfo_t *pktInfo_ptr, uint32_t rec_seqNum, uint32_t expected_seqNum);
93 static void my_cbk_fullScaleFound(eOethLowLevParser_packetInfo_t *pktInfo_ptr, eODeb_eoProtoParser_ropAdditionalInfo_t *ropAddInfo_ptr);
104 EO_INIT(.cbk_onErrSeqNum) NULL,
109 EO_INIT(.NVs2searchArray)
113 EO_INIT(.capacity) eODeb_eoProtoParser_maxNV2find,
114 EO_INIT(.itemsize)
sizeof(eODeb_eoProtoParser_nv_identify_t),
137 EO_INIT(.invalidRopFrame)
182 static void my_cbk_onErrorSeqNum(eOethLowLevParser_packetInfo_t *pktInfo_ptr, uint32_t rec_seqNum, uint32_t expected_seqNum)
185 printf(
"ERR in SEQNUM from 0x%x; rec=%d expected=%d\n", pktInfo_ptr->src_addr, rec_seqNum, expected_seqNum );
190 static void my_cbk_fullScaleFound(eOethLowLevParser_packetInfo_t *pktInfo_ptr, eODeb_eoProtoParser_ropAdditionalInfo_t *ropAddInfo_ptr)
192 eOas_strain_config_t *straincfg_ptr = (eOas_strain_config_t *)ropAddInfo_ptr->desc.data;
199 printf(
"Calibration MSG found: from 0x%x to 0x%x protoId=0x%x (%d) ropcode=0x%x plussig=%d sig=%d seqnum=%ld\n",
200 pktInfo_ptr->src_addr,
201 pktInfo_ptr->dst_addr,
202 ropAddInfo_ptr->desc.id32,
203 ropAddInfo_ptr->desc.id32,
204 ropAddInfo_ptr->desc.ropcode,
205 ropAddInfo_ptr->desc.control.plussign,
206 ropAddInfo_ptr->desc.signature,
207 ropAddInfo_ptr->seqnum);
215 printf(
"Invalid ropframe rec from 0x%x\n", pktInfo_ptr->src_addr);
static void my_cbk_onErrorSeqNum(eOethLowLevParser_packetInfo_t *pktInfo_ptr, uint32_t rec_seqNum, uint32_t expected_seqNum)
const eODeb_eoProtoParser_cfg_t deb_eoParserCfg
static void my_cbk_onInvalidRopFrame(eOethLowLevParser_packetInfo_t *pktInfo_ptr)
const std::string currentDateTime()
static void my_cbk_fullScaleFound(eOethLowLevParser_packetInfo_t *pktInfo_ptr, eODeb_eoProtoParser_ropAdditionalInfo_t *ropAddInfo_ptr)
const eODeb_eoProtoParser_cfg_t * deb_eoParserCfg_ptr