30 lines
582 B
C++
30 lines
582 B
C++
#include "cdutils_k.h"
|
|
#include "cdutils_core.h"
|
|
|
|
using namespace CDUtils;
|
|
|
|
KInterface K;
|
|
|
|
|
|
KInterface::KInterface(): Interface(CDType::cdK) {
|
|
CONNECTU(core, K_Sended, this, sended);
|
|
CONNECTU(core, K_SendFail, this, sendFailed);
|
|
CONNECTU(core, K_Received, this, received);
|
|
CONNECTU(core, K_ReceiveFail, this, receiveFailed);
|
|
}
|
|
|
|
|
|
void KInterface::send() {
|
|
core->K_Send();
|
|
}
|
|
|
|
|
|
void KInterface::request() {
|
|
core->K_Request();
|
|
}
|
|
|
|
|
|
void KInterface::directChange(const CDType & k, double v) {
|
|
core->K_DirectChange(k.path(), PIString::fromNumber(v));
|
|
}
|