void ControlPack::send_ports(uint8_t dst) { uint8_t ports = 0; switch (_model) { case CP_MODEL_4PACK: ports = 4; break; case CP_MODEL_8PACK: ports = 8; break; } sendb1(CPC_PORT_INFO, dst, ports); }
int DlgStatus::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: on_butinit_clicked(); break; case 1: rev(); break; case 2: warming(); break; case 3: sendallb0(); break; case 4: sendd1(); break; case 5: setd1(); break; case 6: sendb1(); break; case 7: on_pushButton_clicked(); break; case 8: on_butquit_clicked(); break; case 9: on_butfind_clicked(); break; default: ; } _id -= 10; } return _id; }
void ControlPack::send_model(uint8_t dst) { sendb1(CPC_MODEL_INFO, dst, _model); }
void ControlPack::send_port_on(uint8_t dst, uint8_t port) { sendb1(CPC_PORT_ON, dst, port); }