Changeset 41 in pacpussensors for trunk/CanGateway
- Timestamp:
- Mar 25, 2014, 10:35:44 AM (11 years ago)
- Location:
- trunk/CanGateway
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CanGateway/CanGateway.cpp
r4 r41 157 157 158 158 159 bool 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 159 173 160 174 /************************************************************************/ -
trunk/CanGateway/CanGateway.h
r4 r41 46 46 virtual ComponentBase::COMPONENT_CONFIGURATION configureComponent(XmlComponentConfig config); 47 47 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 //} 52 54 53 55 protected: -
trunk/CanGateway/Win32CanInterface.cpp
r4 r41 27 27 counter_ = 0; 28 28 receivedFramesArraySize_ = 0; 29 canDriver_ = NULL; 29 30 } 30 31
Note:
See TracChangeset
for help on using the changeset viewer.