From 08758c848dffc80d9d1dc7a8b7474c971182d759 Mon Sep 17 00:00:00 2001 From: Samuel Sadok Date: Fri, 27 Apr 2018 18:22:38 -0700 Subject: [PATCH] update endpoint header --- ArduinoI2C/odrive_endpoints.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/ArduinoI2C/odrive_endpoints.h b/ArduinoI2C/odrive_endpoints.h index 765da575..f82c2b6a 100644 --- a/ArduinoI2C/odrive_endpoints.h +++ b/ArduinoI2C/odrive_endpoints.h @@ -12,7 +12,7 @@ namespace odrive { -static constexpr const uint16_t json_crc = 0x64cd; +static constexpr const uint16_t json_crc = 0xbe97; static constexpr const uint16_t per_axis_offset = 101; @@ -50,10 +50,12 @@ enum { CONFIG__DC_BUS_UNDERVOLTAGE_TRIP_LEVEL = 31, CONFIG__DC_BUS_OVERVOLTAGE_TRIP_LEVEL = 32, TEST_PROPERTY = 235, - SAVE_CONFIGURATION = 242, - ERASE_CONFIGURATION = 243, - REBOOT = 244, - ENTER_DFU_MODE = 245, + ADC_GPIO1 = 242, + ADC_GPIO2 = 243, + SAVE_CONFIGURATION = 244, + ERASE_CONFIGURATION = 245, + REBOOT = 246, + ENTER_DFU_MODE = 247, // Per-Axis endpoints (to be used with read_axis_property and write_axis_property) AXIS__ERROR = 33, @@ -186,6 +188,8 @@ template<> struct endpoint_type { typedef boo template<> struct endpoint_type { typedef float type; }; template<> struct endpoint_type { typedef float type; }; template<> struct endpoint_type { typedef uint32_t type; }; +template<> struct endpoint_type { typedef uint16_t type; }; +template<> struct endpoint_type { typedef uint16_t type; }; template<> struct endpoint_type { typedef void type; }; template<> struct endpoint_type { typedef void type; }; template<> struct endpoint_type { typedef void type; };