33 #if defined(PIOS_INCLUDE_SERVO)
61 int PIOS_Servo_SetMode(
const uint16_t *out_rate,
const int banks,
const uint16_t *channel_max,
const uint16_t *channel_min)
63 if (servo_cbs && servo_cbs->
set_mode) {
64 return servo_cbs->
set_mode(out_rate, banks, channel_max, channel_min);
77 if (servo_cbs && servo_cbs->
set) {
78 servo_cbs->
set(servo, position);
87 if (servo_cbs && servo_cbs->
update) {
int32_t PIOS_IRQ_Enable(void)
Main PiOS header to include all the compiled in PiOS options.
bool PIOS_Servo_IsDshot(uint8_t servo)
void PIOS_Servo_Set(uint8_t servo, float position)
int(* set_mode)(const uint16_t *out_rate, const int banks, const uint16_t *channel_max, const uint16_t *channel_min)
void PIOS_Servo_PrepareForReset()
Determines the APB clock used by a given timer.
void PIOS_Servo_SetCallbacks(const struct pios_servo_callbacks *cb)
int PIOS_Servo_SetMode(const uint16_t *out_rate, const int banks, const uint16_t *channel_max, const uint16_t *channel_min)
PIOS_Servo_SetMode Sets the PWM output frequency and resolution. An output rate of 0 indicates Synchr...
int32_t PIOS_Servo_Init(const struct pios_servo_cfg *cfg)
int32_t PIOS_IRQ_Disable(void)
void PIOS_Servo_Update(void)
void(* set)(uint8_t servo, float position)