36 #define ES08A_MIN_PULSE_WIDTH 600 37 #define ES08A_MAX_PULSE_WIDTH 2200 38 #define ES08A_PERIOD 20000 39 #define ES08A_MAX_ANGLE 180.0 55 uint32_t max_pulse_width;
56 uint32_t min_pulse_width;
72 int32_t max_pulse_width);
90 upm_result_t es08a_calc_pulse_travelling(
const es08a_context dev,
es08a_context es08a_init(int32_t pin, int32_t min_pulse_width, int32_t max_pulse_width)
Definition: es08a.c:28
void es08a_set_min_pulse_width(es08a_context dev, int width)
Definition: es08a.c:102
void es08a_halt(es08a_context dev)
Definition: es08a.c:61
upm_result_t es08a_set_angle(es08a_context dev, int32_t angle)
Definition: es08a.c:66
void es08a_set_max_pulse_width(es08a_context dev, int width)
Definition: es08a.c:106
int es08a_get_min_pulse_width(es08a_context dev)
Definition: es08a.c:110
struct _es08a_context * es08a_context
int es08a_get_max_pulse_width(es08a_context dev)
Definition: es08a.c:114