26 #ifndef SERVO_STS3032_H
27 #define SERVO_STS3032_H
32 #include "generated/airframe.h"
75 #define ActuatorSTS3032Set(_i, _v) { if(sts3032_enabled) {sts3032_write_pos(&sts, sts.ids[_i], _v);} }
76 #define ActuatorsSTS3032Init() actuators_sts3032_init()
77 #define ActuatorsSTS3032Commit() {}
void actuators_sts3032_set_id(float future_id)
int sts3032_response_level
void actuators_sts3032_init(void)
void actuators_sts3032_set_response_level(float level)
void sts3032_write_pos(struct sts3032 *sts, uint8_t id, int16_t position)
uint8_t nb_bytes_expected
uint16_t pos[SERVOS_STS3032_NB]
uint8_t states[SERVOS_STS3032_NB]
void actuators_sts3032_event(void)
struct uart_periph * periph
void actuators_sts3032_move(float pos)
uint16_t nb_failed_checksum
enum sts3032_rx_state rx_state
struct circular_buffer msg_buf
void actuators_sts3032_lock_eprom(float lock)
uint8_t id_idx(struct sts3032 *sts, uint8_t id)
void actuators_sts3032_periodic(void)
uint8_t ids[SERVOS_STS3032_NB]
This is a general purpose circular buffer for storing buffers in a FIFO order.
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
short int16_t
Typedef defining 16 bit short type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.