Arduino_VESC_Library
|
utility class to get or append data More...
#include <vesc_utility.h>
Static Public Member Functions | |
static void | utility_append_int16 (uint8_t *buffer, int16_t number, int32_t *index) |
append int16 to buffer More... | |
static void | utility_append_uint16 (uint8_t *buffer, uint16_t number, int32_t *index) |
append uint16 to buffer More... | |
static void | utility_append_int32 (uint8_t *buffer, int32_t number, int32_t *index) |
append int32 to buffer More... | |
static void | utility_append_uint32 (uint8_t *buffer, uint32_t number, int32_t *index) |
append uint32 to buffer More... | |
static void | utility_append_float16 (uint8_t *buffer, float number, float scale, int32_t *index) |
append float16 to buffer More... | |
static void | utility_append_float32 (uint8_t *buffer, float number, float scale, int32_t *index) |
append float32 to buffer More... | |
static void | utility_append_float32_auto (uint8_t *buffer, float number, int32_t *index) |
append float32 to buffer auto scale More... | |
static int16_t | utility_get_int16 (const uint8_t *buffer, int32_t *index) |
get int16 from buffer More... | |
static uint16_t | utility_get_uint16 (const uint8_t *buffer, int32_t *index) |
get uint16_t from buffer More... | |
static int32_t | utility_get_int32 (const uint8_t *buffer, int32_t *index) |
get int32_t from buffer More... | |
static uint32_t | utility_get_uint32 (const uint8_t *buffer, int32_t *index) |
get uint32_t from buffer More... | |
static float | utility_get_float16 (const uint8_t *buffer, float scale, int32_t *index) |
get float16 from buffer More... | |
static float | utility_get_float32 (const uint8_t *buffer, float scale, int32_t *index) |
get float32 from buffer More... | |
static float | utility_get_float32_auto (const uint8_t *buffer, int32_t *index) |
get float32 from buffer auto scale More... | |
utility class to get or append data
Definition at line 24 of file vesc_utility.h.
|
static |
append float16 to buffer
buffer | to write |
number | to store |
scale | to applicate to number |
index | of buffer |
Definition at line 83 of file vesc_utility.cpp.
References utility_append_int16().
|
static |
append float32 to buffer
buffer | to write |
number | to store |
scale | to applicate to number |
index | of buffer |
Definition at line 95 of file vesc_utility.cpp.
References utility_append_int32().
Referenced by Vesc::setHandbrake().
|
static |
append float32 to buffer auto scale
buffer | to write |
number | to store |
index | of buffer |
Definition at line 106 of file vesc_utility.cpp.
References utility_append_uint32().
|
static |
append int16 to buffer
buffer | to write |
number | to store |
index | of buffer |
Definition at line 30 of file vesc_utility.cpp.
Referenced by utility_append_float16().
|
static |
append int32 to buffer
buffer | to write |
number | to store |
index | of buffer |
Definition at line 54 of file vesc_utility.cpp.
Referenced by Vesc::setBrakeCurrent(), Vesc::setCurrent(), Vesc::setDuty(), Vesc::setPosition(), Vesc::setRPM(), and utility_append_float32().
|
static |
append uint16 to buffer
buffer | to write |
number | to store |
index | of buffer |
Definition at line 42 of file vesc_utility.cpp.
|
static |
append uint32 to buffer
buffer | to write |
number | to store |
index | of buffer |
Definition at line 68 of file vesc_utility.cpp.
Referenced by Vesc::getRealtimeValuesSelective(), and utility_append_float32_auto().
|
static |
get float16 from buffer
buffer | to read |
scale | to applicate to number |
index | of buffer |
Definition at line 193 of file vesc_utility.cpp.
References utility_get_int16().
Referenced by Vesc::getDutyCycleNow(), Vesc::getFetTemperature(), Vesc::getInputVoltage(), Vesc::getMosfetsTemperature(), Vesc::getMotorTemperature(), and Vesc::getRealtimeValues().
|
static |
get float32 from buffer
buffer | to read |
scale | to applicate to number |
index | of buffer |
Definition at line 205 of file vesc_utility.cpp.
References utility_get_int32().
Referenced by Vesc::getaAmpHoursCharged(), Vesc::getAmpHours(), Vesc::getAvgInputCurrent(), Vesc::getAvgMotorCurrent(), Vesc::getPidPosNow(), Vesc::getRealtimeValues(), Vesc::getResetAvgId(), Vesc::getResetAvgIq(), Vesc::getResetAvgVd(), Vesc::getResetAvgVq(), Vesc::getRPM(), Vesc::getWattHours(), and Vesc::getWattHoursCharged().
|
static |
get float32 from buffer auto scale
buffer | to read |
index | of buffer |
Definition at line 216 of file vesc_utility.cpp.
References utility_get_uint32().
Referenced by Vesc::getMotorConfiguration().
|
static |
get int16 from buffer
buffer | to read |
index | of buffer |
Definition at line 132 of file vesc_utility.cpp.
Referenced by Vesc::getMotorConfiguration(), and utility_get_float16().
|
static |
get int32_t from buffer
buffer | to read |
index | of buffer |
Definition at line 160 of file vesc_utility.cpp.
Referenced by Vesc::getMotorConfiguration(), Vesc::getRealtimeValues(), Vesc::getTachometerAbsValue(), Vesc::getTachometerValue(), and utility_get_float32().
|
static |
get uint16_t from buffer
buffer | to read |
index | of buffer |
Definition at line 146 of file vesc_utility.cpp.
|
static |
get uint32_t from buffer
buffer | to read |
index | of buffer |
Definition at line 176 of file vesc_utility.cpp.
Referenced by Vesc::getMotorConfiguration(), and utility_get_float32_auto().