Implement Multi-Bus CAN Interfaces
This commit is contained in:
@@ -3,4 +3,5 @@
|
||||
#include "mcp2521_toplevel.hpp"
|
||||
#include "mcp2521_command.hpp"
|
||||
#include "mcp2521_hardware_esp.hpp"
|
||||
#include "mcp2521_hardware_esp_bus_factory.hpp"
|
||||
#include "mcp2521_addresses.hpp"
|
||||
@@ -40,9 +40,9 @@ struct rx_info {
|
||||
uint8_t length;
|
||||
};
|
||||
|
||||
class MCP2521_Command_Interface {
|
||||
class MCP2521_CommandInterface {
|
||||
private:
|
||||
MCP2521_Hardware_Handle * hardware_handle;
|
||||
I_MCP2521_HardwareHandle * hardware_handle;
|
||||
|
||||
intHandlerFunction_t rx0_handler;
|
||||
intHandlerFunction_t rx1_handler;
|
||||
@@ -63,8 +63,8 @@ private:
|
||||
void * message_error_handler_arg;
|
||||
public:
|
||||
|
||||
MCP2521_Command_Interface(
|
||||
MCP2521_Hardware_Handle * hardware_handle
|
||||
MCP2521_CommandInterface(
|
||||
I_MCP2521_HardwareHandle * hardware_handle
|
||||
);
|
||||
|
||||
void handleInterrupt();
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include "mcp2521_command.hpp"
|
||||
#include "mcp2521_addresses.hpp"
|
||||
|
||||
class MCP2521 : public MCP2521_Command_Interface {
|
||||
class MCP2521 : public MCP2521_CommandInterface {
|
||||
private:
|
||||
public:
|
||||
void set_tx_id(MCP2521_TX_BUFFER buffer, uint16_t id, bool extended);
|
||||
|
||||
Reference in New Issue
Block a user