-
-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #242 from pprasse/master-pylonforce-can
PYLONTECH ForceH* canbus support
- Loading branch information
Showing
10 changed files
with
755 additions
and
27 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
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
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#ifndef DIYBMS_PYLONFORCE_CANBUS_H_ | ||
#define DIYBMS_PYLONFORCE_CANBUS_H_ | ||
|
||
#include "defines.h" | ||
#include "Rules.h" | ||
#include <driver/twai.h> | ||
|
||
|
||
void pylonforce_handle_rx(twai_message_t *); | ||
void pylonforce_handle_tx(); | ||
|
||
|
||
extern uint8_t TotalNumberOfCells(); | ||
extern Rules rules; | ||
extern currentmonitoring_struct currentMonitor; | ||
extern diybms_eeprom_settings mysettings; | ||
extern std::string hostname; | ||
extern ControllerState _controller_state; | ||
extern uint32_t canbus_messages_failed_sent; | ||
extern uint32_t canbus_messages_sent; | ||
extern uint32_t canbus_messages_received; | ||
extern bool wifi_isconnected; | ||
|
||
extern void send_ext_canbus_message(const uint32_t identifier, const uint8_t *buffer, const uint8_t length); | ||
|
||
#endif |
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
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
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
Oops, something went wrong.