mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-05 02:39:57 +02:00
18 lines
416 B
C++
18 lines
416 B
C++
#ifndef ESP32CAN_H
|
|
#define ESP32CAN_H
|
|
|
|
#include "../../lib/miwagner-ESP32-Arduino-CAN/CAN.h"
|
|
#include "../../lib/miwagner-ESP32-Arduino-CAN/CAN_config.h"
|
|
|
|
class ESP32CAN {
|
|
public:
|
|
bool tx_ok = true;
|
|
int CANInit();
|
|
int CANConfigFilter(const CAN_filter_t* p_filter);
|
|
int CANWriteFrame(const CAN_frame_t* p_frame);
|
|
int CANStop();
|
|
void CANSetCfg(CAN_device_t* can_cfg);
|
|
};
|
|
|
|
extern ESP32CAN ESP32Can;
|
|
#endif
|