36 lines
758 B
C++
36 lines
758 B
C++
#include "tmc2130.h"
|
|
|
|
namespace hal {
|
|
namespace tmc2130 {
|
|
|
|
void TMC2130::SetMode(const MotorParams & /*params*/, MotorMode /*mode*/) {
|
|
// TODO
|
|
}
|
|
|
|
bool TMC2130::Init(const MotorParams & /*params*/,
|
|
const MotorCurrents & /*currents*/,
|
|
MotorMode /*mode*/) {
|
|
// TODO
|
|
return true;
|
|
}
|
|
|
|
void TMC2130::SetEnabled(const MotorParams & /*params*/, bool enabled) {
|
|
this->enabled = enabled;
|
|
}
|
|
|
|
void TMC2130::SetCurrents(const MotorParams & /*params*/, const MotorCurrents & /*currents*/) {
|
|
}
|
|
|
|
void TMC2130::Isr(const MotorParams & /*params*/) {
|
|
}
|
|
|
|
bool TMC2130::CheckForErrors(const MotorParams & /*params*/) {
|
|
return !errorFlags.Good();
|
|
}
|
|
|
|
void TMC2130::SetSGTHRS(const MotorParams & /*params*/) {
|
|
}
|
|
|
|
} // namespace tmc2130
|
|
} // namespace hal
|