Ignore:
Timestamp:
12/21/01 12:36:22 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Cosy/devdrv
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/devdrv/macs.cc

    r1109 r1140  
    2424}
    2525
    26 void Macs::HandleSDO(WORD_t idx, BYTE_t subidx, LWORD_t val, struct timeval *tv)
     26void Macs::HandleSDO(WORD_t idx, BYTE_t subidx, LWORD_t val, timeval_t *tv)
    2727{
    2828    switch (idx)
     
    325325}
    326326
    327 void Macs::HandlePDO1(BYTE_t *data, struct timeval *tv)
     327void Macs::HandlePDO1(BYTE_t *data, timeval_t *tv)
    328328{
    329329    fPdoPos    = (data[4]<<24) | (data[5]<<16) | (data[6]<<8) | data[7];
     
    335335}
    336336
    337 void Macs::HandlePDO2(BYTE_t *data, struct timeval *tv)
     337void Macs::HandlePDO2(BYTE_t *data, timeval_t *tv)
    338338{
    339339    LWORDS_t errnum = (data[0]<<24) | (data[1]<<16) | (data[2]<<8) | data[3];
  • trunk/MagicSoft/Cosy/devdrv/macs.h

    r1109 r1140  
    4646    void StopDevice();
    4747
    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);
    4949    void HandleSDOOK(WORD_t idx, BYTE_t subidx);
    5050    void HandleSDOError(LWORD_t data)           { NodeDrv::HandleSDOError(data); }
    5151
    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);
    5454
    5555    void SendMsg(BYTE_t data[6]);
  • trunk/MagicSoft/Cosy/devdrv/shaftencoder.cc

    r1109 r1140  
    2424}
    2525
    26 void ShaftEncoder::HandleSDO(WORD_t idx, BYTE_t subidx, LWORD_t val, struct timeval *tv)
     26void ShaftEncoder::HandleSDO(WORD_t idx, BYTE_t subidx, LWORD_t val, timeval_t *tv)
    2727{
    2828    switch (idx)
     
    115115}
    116116
    117 void ShaftEncoder::HandlePDOType0(BYTE_t *data, struct timeval *tv)
     117void ShaftEncoder::HandlePDOType0(BYTE_t *data, timeval_t *tv)
    118118{
    119119    //
     
    129129}
    130130
    131 void ShaftEncoder::HandlePDOType1(BYTE_t *data, struct timeval *tv)
     131void ShaftEncoder::HandlePDOType1(BYTE_t *data, timeval_t *tv)
    132132{
    133133    //
     
    147147}
    148148
    149 void ShaftEncoder::HandlePDOType2(BYTE_t *data, struct timeval *tv)
     149void ShaftEncoder::HandlePDOType2(BYTE_t *data, timeval_t *tv)
    150150{
    151151    //
  • trunk/MagicSoft/Cosy/devdrv/shaftencoder.h

    r1109 r1140  
    2626    Timer fTime;
    2727
    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);
    3131
    3232    void ReqPos();
     
    4343    void SetDisplay(TGLabel **label) { fLabel = label; }
    4444
    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);
    4646    void HandleSDOOK(WORD_t idx, BYTE_t subidx) { NodeDrv::HandleSDOOK(idx, subidx); }
    4747    void HandleSDOError(LWORD_t data)           { NodeDrv::HandleSDOError(data); }
    4848
    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); }
    5151
    5252    LWORDS_t GetPos() { return fPos+fTurn*fTicks; }
Note: See TracChangeset for help on using the changeset viewer.