Added missing file manual to repo
This commit is contained in:
47
bccandrivertinycan.h
Normal file
47
bccandrivertinycan.h
Normal file
@@ -0,0 +1,47 @@
|
||||
#ifndef BCCANDRIVERTINYCAN_H
|
||||
#define BCCANDRIVERTINYCAN_H
|
||||
|
||||
#include <bccandriver.h>
|
||||
|
||||
class BCCanDriverTinyCan : public BCCanDriver
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
|
||||
explicit BCCanDriverTinyCan( QObject* parent=nullptr );
|
||||
virtual ~BCCanDriverTinyCan() = default;
|
||||
|
||||
BCCanDriver::dState loadDriver() override;
|
||||
BCCanDriver::dState initDriver() override;
|
||||
|
||||
uint getValue( BCDevice::ID dev, BC::ID reg ) override;
|
||||
void setValue( BCDevice::ID dev, BC::ID reg, int value ) override;
|
||||
|
||||
QString getNodeName( unsigned char id );
|
||||
|
||||
protected:
|
||||
|
||||
// typen?
|
||||
//void setValue( unsigned char receipient, unsigned char reg, unsigned char value );
|
||||
//unsigned int getValue( unsigned char receipient, unsigned char reg );
|
||||
|
||||
void awaitReceiveBuf( int timeout );
|
||||
void awaitSendBuf(int timeout );
|
||||
|
||||
const char* CBCDLL_LIN = "libmhstcan.so";
|
||||
const char* CBCDLL_WIN = "mhstcan.dll";
|
||||
|
||||
static constexpr int cTIMEOUT_MS = 10; // 10ms
|
||||
static constexpr int cTIMEOUT_COUNT = 10;
|
||||
|
||||
|
||||
const unsigned int BATTERY = 0x010;
|
||||
const unsigned int MOTOR = 0x020;
|
||||
const unsigned int BIB = 0x048;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
#endif // BCCANDRIVERTINYCAN_H
|
||||
Reference in New Issue
Block a user