|
SRA Board Components
ESP-IDF component for SRA Board
|

Macros | |
| #define | SERVO_TIMEBASE_RESOLUTION_HZ 1000000 |
| #define | SERVO_TIMEBASE_PERIOD 20000 |
Functions | |
| esp_err_t | enable_servo_helper (servo_config *config, mcpwm_timer_handle_t timer, mcpwm_oper_handle_t operator) |
| esp_err_t | enable_servo () |
| Enables Servo port on the sra board, sets up PWM for the three pins in servo port. More... | |
| esp_err_t | set_angle_servo (servo_config *config, unsigned int degree_of_rotation) |
| Set the angle of the servos attached to the servo port of SRA Board. More... | |
| int | read_servo (servo_config *config) |
| Get the angle of the servos. More... | |
| #define SERVO_TIMEBASE_PERIOD 20000 |
| #define SERVO_TIMEBASE_RESOLUTION_HZ 1000000 |
| esp_err_t enable_servo | ( | ) |
Enables Servo port on the sra board, sets up PWM for the three pins in servo port.
| esp_err_t enable_servo_helper | ( | servo_config * | config, |
| mcpwm_timer_handle_t | timer, | ||
| mcpwm_oper_handle_t | operator | ||
| ) |
| int read_servo | ( | servo_config * | config | ) |
Get the angle of the servos.
| esp_err_t set_angle_servo | ( | servo_config * | config, |
| unsigned int | degree_of_rotation | ||
| ) |
Set the angle of the servos attached to the servo port of SRA Board.
| config | pointer to the servo_config struct |
| degree_of_rotation | angle to which the servo must be set, depends on value of MAX_DEGREE macro |