Added missing file manual to repo

This commit is contained in:
2025-12-20 16:33:00 +01:00
parent 554c4a96cb
commit 65f4d7702e
7 changed files with 701 additions and 0 deletions

47
bccandrivertinycan.h Normal file
View 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