Changeset 1140 for trunk/MagicSoft/Cosy/devdrv
- Timestamp:
- 12/21/01 12:36:22 (23 years ago)
- Location:
- trunk/MagicSoft/Cosy/devdrv
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/devdrv/macs.cc
r1109 r1140 24 24 } 25 25 26 void Macs::HandleSDO(WORD_t idx, BYTE_t subidx, LWORD_t val, struct timeval*tv)26 void Macs::HandleSDO(WORD_t idx, BYTE_t subidx, LWORD_t val, timeval_t *tv) 27 27 { 28 28 switch (idx) … … 325 325 } 326 326 327 void Macs::HandlePDO1(BYTE_t *data, struct timeval*tv)327 void Macs::HandlePDO1(BYTE_t *data, timeval_t *tv) 328 328 { 329 329 fPdoPos = (data[4]<<24) | (data[5]<<16) | (data[6]<<8) | data[7]; … … 335 335 } 336 336 337 void Macs::HandlePDO2(BYTE_t *data, struct timeval*tv)337 void Macs::HandlePDO2(BYTE_t *data, timeval_t *tv) 338 338 { 339 339 LWORDS_t errnum = (data[0]<<24) | (data[1]<<16) | (data[2]<<8) | data[3]; -
trunk/MagicSoft/Cosy/devdrv/macs.h
r1109 r1140 46 46 void StopDevice(); 47 47 48 void HandleSDO(WORD_t idx, BYTE_t subidx, LWORD_t val, struct timeval*tv);48 void HandleSDO(WORD_t idx, BYTE_t subidx, LWORD_t val, timeval_t *tv); 49 49 void HandleSDOOK(WORD_t idx, BYTE_t subidx); 50 50 void HandleSDOError(LWORD_t data) { NodeDrv::HandleSDOError(data); } 51 51 52 void HandlePDO1(BYTE_t *data, struct timeval*tv);53 void HandlePDO2(BYTE_t *data, struct timeval*tv);52 void HandlePDO1(BYTE_t *data, timeval_t *tv); 53 void HandlePDO2(BYTE_t *data, timeval_t *tv); 54 54 55 55 void SendMsg(BYTE_t data[6]); -
trunk/MagicSoft/Cosy/devdrv/shaftencoder.cc
r1109 r1140 24 24 } 25 25 26 void ShaftEncoder::HandleSDO(WORD_t idx, BYTE_t subidx, LWORD_t val, struct timeval*tv)26 void ShaftEncoder::HandleSDO(WORD_t idx, BYTE_t subidx, LWORD_t val, timeval_t *tv) 27 27 { 28 28 switch (idx) … … 115 115 } 116 116 117 void ShaftEncoder::HandlePDOType0(BYTE_t *data, struct timeval*tv)117 void ShaftEncoder::HandlePDOType0(BYTE_t *data, timeval_t *tv) 118 118 { 119 119 // … … 129 129 } 130 130 131 void ShaftEncoder::HandlePDOType1(BYTE_t *data, struct timeval*tv)131 void ShaftEncoder::HandlePDOType1(BYTE_t *data, timeval_t *tv) 132 132 { 133 133 // … … 147 147 } 148 148 149 void ShaftEncoder::HandlePDOType2(BYTE_t *data, struct timeval*tv)149 void ShaftEncoder::HandlePDOType2(BYTE_t *data, timeval_t *tv) 150 150 { 151 151 // -
trunk/MagicSoft/Cosy/devdrv/shaftencoder.h
r1109 r1140 26 26 Timer fTime; 27 27 28 void HandlePDOType0(BYTE_t *data, struct timeval*tv);29 void HandlePDOType1(BYTE_t *data, struct timeval*tv);30 void HandlePDOType2(BYTE_t *data, struct timeval*tv);28 void HandlePDOType0(BYTE_t *data, timeval_t *tv); 29 void HandlePDOType1(BYTE_t *data, timeval_t *tv); 30 void HandlePDOType2(BYTE_t *data, timeval_t *tv); 31 31 32 32 void ReqPos(); … … 43 43 void SetDisplay(TGLabel **label) { fLabel = label; } 44 44 45 void HandleSDO(WORD_t idx, BYTE_t subidx, LWORD_t val, struct timeval*tv);45 void HandleSDO(WORD_t idx, BYTE_t subidx, LWORD_t val, timeval_t *tv); 46 46 void HandleSDOOK(WORD_t idx, BYTE_t subidx) { NodeDrv::HandleSDOOK(idx, subidx); } 47 47 void HandleSDOError(LWORD_t data) { NodeDrv::HandleSDOError(data); } 48 48 49 void HandlePDO1(BYTE_t *data, struct timeval*tv) { HandlePDOType2(data, tv); }50 void HandlePDO2(BYTE_t *data, struct timeval*tv) { HandlePDOType2(data, tv); }49 void HandlePDO1(BYTE_t *data, timeval_t *tv) { HandlePDOType2(data, tv); } 50 void HandlePDO2(BYTE_t *data, timeval_t *tv) { HandlePDOType2(data, tv); } 51 51 52 52 LWORDS_t GetPos() { return fPos+fTurn*fTicks; }
Note:
See TracChangeset
for help on using the changeset viewer.