Loading...
Searching...
No Matches
servo_params_t Struct Reference

Configuration parameters for a servo. More...

Detailed Description

Configuration parameters for a servo.

Definition at line 120 of file servo.h.

#include <servo.h>

Data Fields

const servo_pwm_params_tpwm
 Specification of the PWM device the servo is connected to.
 
const servo_timer_params_ttimer
 Specification of the timer to use.
 
gpio_t servo_pin
 GPIO pin the servo is connected to.
 
uint16_t min_us
 Duration of high phase (in µs) for min extension.
 
uint16_t max_us
 Duration of high phase (in µs) for max extension.
 

Field Documentation

◆ max_us

uint16_t servo_params_t::max_us

Duration of high phase (in µs) for max extension.

Definition at line 144 of file servo.h.

◆ min_us

uint16_t servo_params_t::min_us

Duration of high phase (in µs) for min extension.

Definition at line 143 of file servo.h.

◆ pwm

const servo_pwm_params_t* servo_params_t::pwm

Specification of the PWM device the servo is connected to.

Note
Only available when PWM based servo driver is used

Definition at line 127 of file servo.h.

◆ servo_pin

gpio_t servo_params_t::servo_pin

GPIO pin the servo is connected to.

Note
Only available when periph_timer_periodic based servo driver is used

Definition at line 141 of file servo.h.

◆ timer

const servo_timer_params_t* servo_params_t::timer

Specification of the timer to use.

Note
Only available when periph_timer_periodic based servo driver is used

Definition at line 135 of file servo.h.


The documentation for this struct was generated from the following file: