|
|
|
@ -8,6 +8,7 @@ |
|
|
|
#ifndef SPLITFLAP_H_ |
|
|
|
#ifndef SPLITFLAP_H_ |
|
|
|
#define SPLITFLAP_H_ |
|
|
|
#define SPLITFLAP_H_ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <stdbool.h> |
|
|
|
#include "McuULN2003.h" |
|
|
|
#include "McuULN2003.h" |
|
|
|
#include "McuGPIO.h" |
|
|
|
#include "McuGPIO.h" |
|
|
|
|
|
|
|
|
|
|
|
@ -38,9 +39,12 @@ typedef struct { |
|
|
|
* Initialization will be made inside the SF_Init method */ |
|
|
|
* Initialization will be made inside the SF_Init method */ |
|
|
|
SF_Handle_t SF_Init(SF_Config_t* instance, int id); |
|
|
|
SF_Handle_t SF_Init(SF_Config_t* instance, int id); |
|
|
|
|
|
|
|
|
|
|
|
/* split flab moves number of steps maybe uint16_t? */ |
|
|
|
/* split flap moves number of steps maybe uint16_t? */ |
|
|
|
void SF_MoveSteps(SF_Handle_t instance, uint8_t steps); |
|
|
|
void SF_MoveSteps(SF_Handle_t instance, uint8_t steps); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* get mag sensor state. returns true if sensor is at zero position, otherwise false */ |
|
|
|
|
|
|
|
bool SF_GetMagSensorAtZeroPosition(SF_Handle_t instance); |
|
|
|
|
|
|
|
|
|
|
|
/* split flap deinitialization */ |
|
|
|
/* split flap deinitialization */ |
|
|
|
void SF_Deinit(SF_Handle_t instance); |
|
|
|
void SF_Deinit(SF_Handle_t instance); |
|
|
|
|
|
|
|
|
|
|
|
|