8#ifndef TMCDebugBridge_H_
9#define TMCDebugBridge_H_
22extern SPI_HandleTypeDef
HSPIDRV;
37 void cdcRcv(
char* Buf, uint32_t *Len);
40 std::string
getHelpstring(){
return "Compatible with TMCL-IDE. To use the FOC modes position, velocity and torque you first must manually select the encoder and wait for alignment.";}
53 .sequentialPI =
true});
56 .pid_torque_flux_ddt = 32767,
58 .pid_torque_flux = 32767,
60 .pid_vel_lim = 2147483647,
61 .pid_pos_low = -2147483647,
62 .pid_pos_high = 2147483647
64 static void sendCdc(
char* dat, uint32_t len);
65 std::unique_ptr<TMC4671>
drv;
SPI_HandleTypeDef HSPIDRV
virtual ~TMCDebugBridge()
const TMC4671PIDConf tmcpids
const ClassIdentifier getInfo()
static bool isCreatable()
std::string getHelpstring()
uint8_t checksum(std::vector< uint8_t > *buffer, uint8_t len)
CommandStatus command(const ParsedCommand &cmd, std::vector< CommandReply > &replies)
static void sendCdc(char *dat, uint32_t len)
const TMC4671Limits tmclimits
HAL_StatusTypeDef SPI_transmit_receive(uint8_t *tx_data, uint8_t *rx_data, uint16_t len, uint32_t timeout)
void cdcRcv(char *Buf, uint32_t *Len)
std::unique_ptr< TMC4671 > drv
static ClassIdentifier info