mirror of
https://github.com/m5stack/M5Stack.git
synced 2026-05-20 10:06:46 -07:00
21 lines
346 B
C++
21 lines
346 B
C++
#include "ESP32CAN.h"
|
|
|
|
int ESP32CAN::CANInit()
|
|
{
|
|
return CAN_init();
|
|
}
|
|
int ESP32CAN::CANWriteFrame(const CAN_frame_t* p_frame)
|
|
{
|
|
return CAN_write_frame(p_frame);
|
|
}
|
|
int ESP32CAN::CANStop()
|
|
{
|
|
return CAN_stop();
|
|
}
|
|
int ESP32CAN::CANConfigFilter(const CAN_filter_t* p_filter)
|
|
{
|
|
return CAN_config_filter(p_filter);
|
|
}
|
|
|
|
ESP32CAN ESP32Can;
|