30 lines
560 B
C++
30 lines
560 B
C++
#include "tmc2130.h"
|
|
|
|
namespace hal {
|
|
namespace tmc2130 {
|
|
|
|
void TMC2130::SetMode(const MotorParams ¶ms, MotorMode mode) {
|
|
// TODO
|
|
}
|
|
|
|
bool TMC2130::Init(const MotorParams ¶ms,
|
|
const MotorCurrents ¤ts,
|
|
MotorMode mode) {
|
|
// TODO
|
|
return true;
|
|
}
|
|
|
|
void TMC2130::SetEnabled(const MotorParams ¶ms, bool enabled) {
|
|
this->enabled = enabled;
|
|
}
|
|
|
|
void TMC2130::Isr(const MotorParams ¶ms) {
|
|
}
|
|
|
|
bool TMC2130::CheckForErrors(const MotorParams ¶ms) {
|
|
return !errorFlags.Good();
|
|
}
|
|
|
|
} // namespace tmc2130
|
|
} // namespace hal
|