forked from DCC-EX/CommandStation-EX
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cf1d78b
commit 3d55ba9
Showing
1 changed file
with
0 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1 @@ | ||
/* | ||
|
||
CanMsg.h | ||
Christophe Bobille - Locoduino | ||
The ESP32 requires to be connected to a CAN transceiver | ||
*/ | ||
|
||
#ifndef __CAN_MSG__ | ||
#define __CAN_MSG__ | ||
|
||
#include <ACAN_ESP32.h> | ||
#include "DCC.h" | ||
#include "TrackManager.h" | ||
#include "MotorDriver.h" | ||
|
||
class CanMsg | ||
{ | ||
private: | ||
static gpio_num_t RxPin; | ||
static gpio_num_t TxPin; | ||
static uint32_t DESIRED_BIT_RATE; | ||
|
||
public: | ||
CanMsg() = delete; | ||
static void begin(); | ||
static void loop(); | ||
static void sendMsg(CANMessage &); | ||
static void sendMsg(byte, byte, byte, byte); | ||
static void sendMsg(byte, byte, byte, byte, byte); | ||
static void sendMsg(byte, byte, byte, byte, byte, byte); | ||
static void sendMsg(byte, byte, byte, byte, byte, byte, byte); | ||
static void sendMsg(byte, byte, byte, byte, byte, byte, byte, byte); | ||
static void sendMsg(byte, byte, byte, byte, byte, byte, byte, byte, byte); | ||
static void sendMsg(byte, byte, byte, byte, byte, byte, byte, byte, byte, byte); | ||
static void sendMsg(byte, byte, byte, byte, byte, byte, byte, byte, byte, byte, byte); | ||
static void sendMsg(byte, byte, byte, byte, byte, byte, byte, byte, byte, byte, byte, byte); | ||
}; | ||
|
||
#endif |