wifi-tally_Oostendam/nodemcu-firmware/app/include/driver/switec.h

22 lines
452 B
C
Raw Normal View History

2021-09-27 19:52:27 +00:00
/*
* Definitions to access the Switec driver
*/
#ifndef __SWITEC_H__
#define __SWITEC_H__
#include <stdint.h>
#define SWITEC_CHANNEL_COUNT 3
int switec_setup(uint32_t channel, int *pin, int max_deg_per_sec, task_handle_t taskNumber );
int switec_close(uint32_t channel);
int switec_moveto(uint32_t channel, int pos);
int switec_reset(uint32_t channel);
int switec_getpos(uint32_t channel, int32_t *pos, int32_t *dir, int32_t *target);
#endif