Changeset 41 in pacpussensors


Ignore:
Timestamp:
Mar 25, 2014, 10:35:44 AM (11 years ago)
Author:
phudelai
Message:

CANGATEWAY changed

Location:
trunk/CanGateway
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/CanGateway/CanGateway.cpp

    r4 r41  
    157157
    158158
     159bool CanGateway::sendFrame(const CanFrame frame)
     160{
     161        if (canIf_.canDriver_ == NULL)
     162                return false;
     163        else
     164        {
     165                if (canIf_.canDriver_->sendFrame(frame))
     166                        return true;
     167                else
     168                        return false;
     169        }
     170}
     171
     172
    159173
    160174/************************************************************************/
  • trunk/CanGateway/CanGateway.h

    r4 r41  
    4646  virtual ComponentBase::COMPONENT_CONFIGURATION configureComponent(XmlComponentConfig config);
    4747
    48 virtual  Win32CanInterface* getCanIf()
    49 {
    50         return &canIf_;
    51 }
     48  bool sendFrame(const CanFrame frame);
     49
     50  //virtual  Win32CanInterface* getCanIf()
     51  //{
     52  //    return &canIf_;
     53  //}
    5254
    5355protected:
  • trunk/CanGateway/Win32CanInterface.cpp

    r4 r41  
    2727  counter_ = 0;
    2828  receivedFramesArraySize_ = 0;
     29  canDriver_ = NULL;
    2930}
    3031
Note: See TracChangeset for help on using the changeset viewer.