servo 2.0.0.0
|
This file contains API for Servo Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | servo_pos_and_res_t |
struct | servo_map_t |
struct | servo_t |
Click ctx object definition. More... | |
struct | servo_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | servo_cfg_setup (servo_cfg_t *cfg) |
Config Object Initialization function. | |
SERVO_RETVAL | servo_init (servo_t *ctx, servo_cfg_t *cfg) |
Initialization function. | |
void | servo_default_cfg (servo_t *ctx) |
Click Default Configuration function. | |
void | servo_generic_write_of_pca9685 (servo_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function of pca9685. | |
void | servo_generic_write_of_of_ltc2497 (servo_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function of ltc2497. | |
void | servo_generic_read_of_pca9685 (servo_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function of pca9685. | |
void | servo_generic_read_of_ltc2497 (servo_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function of ltc2497. | |
void | servo_setting (servo_t *ctx, servo_pos_and_res_t pos_and_res) |
Setting function. | |
void | servo_set_vref (servo_t *ctx, uint16_t v_ref) |
Set Vref function. | |
void | servo_stop (servo_t *ctx) |
Stop function. | |
void | servo_start (servo_t *ctx) |
Start function. | |
void | servo_soft_reset (servo_t *ctx) |
Soft reset function. | |
void | servo_sleep (servo_t *ctx) |
Sleep function. | |
void | servo_set_mode (servo_t *ctx, uint8_t mode, uint8_t w_data) |
Set mode function. | |
void | servo_set_position (servo_t *ctx, uint8_t motor, uint8_t position) |
Set position function. | |
void | servo_set_freq (servo_t *ctx, uint16_t freq) |
Set frequency function. | |
uint32_t | servo_get_channel (servo_t *ctx, uint8_t channel) |
Functions for reading adc value of current. | |
uint16_t | setvo_get_current (servo_t *ctx, uint8_t channel) |
Functions for reading current in mA. | |
This file contains API for Servo Click driver.