diff --git a/src/ArduinoMCP2515.cpp b/src/ArduinoMCP2515.cpp index 2090607..cc490fa 100644 --- a/src/ArduinoMCP2515.cpp +++ b/src/ArduinoMCP2515.cpp @@ -32,7 +32,11 @@ static CanBitRateConfig const BIT_RATE_CONFIG_ARRAY[] = BitRate_125kBPS_8MHz, BitRate_250kBPS_8MHz, BitRate_500kBPS_8MHz, - BitRate_1000kBPS_8MHz + BitRate_1000kBPS_8MHz, + BitRate_125kBPS_10MHz, + BitRate_250kBPS_10MHz, + BitRate_500kBPS_10MHz, + BitRate_1000kBPS_10MHz }; /************************************************************************************** diff --git a/src/ArduinoMCP2515.h b/src/ArduinoMCP2515.h index 20c04fe..23c5523 100644 --- a/src/ArduinoMCP2515.h +++ b/src/ArduinoMCP2515.h @@ -50,7 +50,11 @@ enum class CanBitRate : size_t BR_125kBPS_8MHZ = 4, BR_250kBPS_8MHZ = 5, BR_500kBPS_8MHZ = 6, - BR_1000kBPS_8MHZ = 7 + BR_1000kBPS_8MHZ = 7, + BR_125kBPS_10MHZ = 8, + BR_250kBPS_10MHZ = 9, + BR_500kBPS_10MHZ = 10, + BR_1000kBPS_10MHZ = 11 }; typedef std::function MicroSecondFunc; diff --git a/src/MCP2515/MCP2515_Config.h b/src/MCP2515/MCP2515_Config.h index f8b10ad..c3f83b7 100644 --- a/src/MCP2515/MCP2515_Config.h +++ b/src/MCP2515/MCP2515_Config.h @@ -55,6 +55,11 @@ static CanBitRateConfig constexpr BitRate_500kBPS_8MHz = {0x00, 0x90, 0x02}; static CanBitRateConfig constexpr BitRate_125kBPS_8MHz = {0x01, 0xb1, 0x05}; static CanBitRateConfig constexpr BitRate_1000kBPS_8MHz = {0x00, 0x80, 0x00}; +static CanBitRateConfig constexpr BitRate_250kBPS_10MHz = {0x00, 0xB6, 0x04}; +static CanBitRateConfig constexpr BitRate_500kBPS_10MHz = {0x00, 0x9A, 0x01}; +static CanBitRateConfig constexpr BitRate_125kBPS_10MHz = {0x01, 0xB6, 0x04}; +static CanBitRateConfig constexpr BitRate_1000kBPS_10MHz = {0x00, 0x80, 0x01}; + /************************************************************************************** * CTOR/DTOR **************************************************************************************/