Add initial board, HAL, and executor modules
This commit is contained in:
1 parent
3b9e129c88
commit
0b2eebe76d
82 files changed
+20611
No files matched your search
@@ -0,0 +1,25 @@
|
||||
#ifndef DRV8428_DRIVER_H
|
||||
#define DRV8428_DRIVER_H
|
||||
|
||||
#include "stepper_driver.h"
|
||||
#include "io_expansion_board.h"
|
||||
#include "esp_log.h"
|
||||
|
||||
class Drv8428Driver : public StepperDriver
|
||||
{
|
||||
public:
|
||||
explicit Drv8428Driver(IOExpansionBoard &ioExp);
|
||||
virtual ~Drv8428Driver() = default;
|
||||
|
||||
esp_err_t Init() override;
|
||||
esp_err_t Enable(bool enable) override;
|
||||
esp_err_t SetDirection(bool dir) override;
|
||||
esp_err_t Sleep(bool sleep) override;
|
||||
esp_err_t SetMicrosteps(int microsteps) override;
|
||||
|
||||
private:
|
||||
IOExpansionBoard &io_expansion_;
|
||||
const char* TAG = "Drv8428Driver";
|
||||
};
|
||||
|
||||
#endif // DRV8428_DRIVER_H
|
||||
Reference in new issue
Block a user