| | |
| | | { |
| | | // 加入Pin初始化代码 |
| | | LOGI("<CBonder>initPins"); |
| | | addPin(SERVO::PinType::INPUT, _T("In")); |
| | | addPin(SERVO::PinType::OUTPUT, _T("Out")); |
| | | } |
| | | |
| | | void CBonder::onTimer(UINT nTimerid) |
| | |
| | | { |
| | | CEquipment::serialize(ar); |
| | | } |
| | | |
| | | int CBonder::recvSample(CPin* pPin, CSample* pSample) |
| | | { |
| | | ASSERT(pPin); |
| | | |
| | | CPin* pFromPin = pPin->getConnectedPin(); |
| | | ASSERT(pFromPin); |
| | | |
| | | CEquipment* pFromEq = pFromPin->getEquipment(); |
| | | ASSERT(pFromEq); |
| | | |
| | | |
| | | LOGI("<CBonder><%s-%s>收到来自<%s.%s>的Sample", |
| | | this->getName().c_str(), pPin->getName().c_str(), |
| | | pFromEq->getName().c_str(), pFromPin->getName().c_str()); |
| | | |
| | | delete pSample; |
| | | return 0; |
| | | } |
| | | } |