Add a new connection type - Lawicel. It works for some devices, not
all. More development needed but this is a start. Also added ability to set serial speed and bus speed in the device setup which may be useful for other connection devices too.
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
CANConnection::CANConnection(QString pPort,
|
||||
QString pDriver,
|
||||
CANCon::type pType,
|
||||
int pSerialSpeed,
|
||||
int pBusSpeed,
|
||||
int pNumBuses,
|
||||
int pQueueLen,
|
||||
bool pUseThread) :
|
||||
@@ -13,6 +15,7 @@ CANConnection::CANConnection(QString pPort,
|
||||
mPort(pPort),
|
||||
mDriver(pDriver),
|
||||
mType(pType),
|
||||
mSerialSpeed(pSerialSpeed),
|
||||
mIsCapSuspended(false),
|
||||
mStatus(CANCon::NOT_CONNECTED),
|
||||
mStarted(false),
|
||||
@@ -34,6 +37,8 @@ CANConnection::CANConnection(QString pPort,
|
||||
mBusData[i].mConfigured = false;
|
||||
}
|
||||
|
||||
if (pBusSpeed > 0) mBusData[0].mBus.setSpeed(pBusSpeed);
|
||||
|
||||
/* if needed, create a thread and move ourself into it */
|
||||
if(pUseThread) {
|
||||
mThread_p = new QThread();
|
||||
|
||||
Reference in New Issue
Block a user