2020-01-30 09:28:01 +00:00
|
|
|
#ifndef __motor
|
|
|
|
#define __motor
|
|
|
|
|
|
|
|
|
2020-01-30 14:16:52 +00:00
|
|
|
// Low-level functions to control the motor
|
2020-01-30 09:28:01 +00:00
|
|
|
enum class MotorDirection
|
|
|
|
{
|
2020-02-01 15:55:33 +00:00
|
|
|
Up,
|
|
|
|
Down
|
2020-01-30 09:28:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-01-31 09:36:36 +00:00
|
|
|
extern void motorInit();
|
2020-01-30 09:28:01 +00:00
|
|
|
extern void motorStart(MotorDirection direction);
|
|
|
|
extern void motorStop();
|
2020-02-01 15:55:33 +00:00
|
|
|
extern bool motorIsOvercurrent();
|
2020-01-30 09:28:01 +00:00
|
|
|
|
|
|
|
#endif
|