vibromotor4 2.0.0.0
|
This file contains API for Vibro Motor 4 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_i2c_master.h"
#include "drv_pwm.h"
Go to the source code of this file.
Data Structures | |
struct | vibromotor4_t |
Vibro Motor 4 Click context object. More... | |
struct | vibromotor4_cfg_t |
Vibro Motor 4 Click configuration object. More... | |
Enumerations | |
enum | vibromotor4_return_value_t { VIBROMOTOR4_OK = 0 , VIBROMOTOR4_ERROR = -1 } |
Vibro Motor 4 Click return value data. More... | |
enum | vibromotor4_property_mode_t { VIBROMOTOR4_PROPERTY_DISABLE = 0 , VIBROMOTOR4_PROPERTY_ENABLE } |
Vibro Motor 4 Click property data. More... | |
Functions | |
void | vibromotor4_cfg_setup (vibromotor4_cfg_t *cfg) |
Vibro Motor 4 configuration object setup function. | |
err_t | vibromotor4_init (vibromotor4_t *ctx, vibromotor4_cfg_t *cfg) |
Vibro Motor 4 initialization function. | |
err_t | vibromotor4_default_cfg (vibromotor4_t *ctx) |
Vibro Motor 4 default configuration function. | |
err_t | vibromotor4_generic_write (vibromotor4_t *ctx, uint8_t reg, uint8_t *tx_buf, uint8_t tx_len) |
Vibro Motor 4 I2C writing function. | |
err_t | vibromotor4_generic_read (vibromotor4_t *ctx, uint8_t reg, uint8_t *rx_buf, uint8_t rx_len) |
Vibro Motor 4 I2C reading function. | |
err_t | vibromotor4_enable (vibromotor4_t *ctx, vibromotor4_property_mode_t pr_mode) |
Vibro Motor 4 enable the device function. | |
err_t | vibromotor4_write_byte (vibromotor4_t *ctx, uint8_t reg, uint8_t tx_buf) |
Vibro Motor 4 I2C writing function. | |
err_t | vibromotor4_read_byte (vibromotor4_t *ctx, uint8_t reg, uint8_t *rx_buf) |
Vibro Motor 4 I2C reading function. | |
err_t | vibromotor4_set_mode (vibromotor4_t *ctx, uint8_t mode_sel) |
Vibro Motor 4 sets the desired mode function. | |
err_t | vibromotor4_soft_rst (vibromotor4_t *ctx) |
Vibro Motor 4 software reset function. | |
err_t | vibromotor4_stb_mode (vibromotor4_t *ctx, uint8_t state) |
Vibro Motor 4 software standby mode function. | |
err_t | vibromotor4_get_stat (vibromotor4_t *ctx, uint8_t *status) |
Vibro Motor 4 get status function. | |
err_t | vibromotor4_set_rtp_input (vibromotor4_t *ctx, uint8_t rtp_input) |
Vibro Motor 4 sets the desired input for RTP mode function. | |
err_t | vibromotor4_set_state_hi_z (vibromotor4_t *ctx, uint8_t state) |
Vibro Motor 4 sets the devices in HI-Z state function. | |
err_t | vibromotor4_set_library (vibromotor4_t *ctx, uint8_t lib_sel) |
Vibro Motor 4 sets the desired vibrating patterns library function. | |
err_t | vibromotor4_start_motor (vibromotor4_t *ctx, uint8_t state) |
Vibro Motor 4 starts the motor function. | |
err_t | vibromotor4_set_ovdr_offset (vibromotor4_t *ctx, uint8_t ovdr_offset) |
Vibro Motor 4 sets overdrive offset function. | |
err_t | vibromotor4_set_sustain_offset_pos (vibromotor4_t *ctx, uint8_t sustain_offset_pos) |
Vibro Motor 4 sets sustain offset - positive function. | |
err_t | vibromotor4_set_sustain_offset_neg (vibromotor4_t *ctx, uint8_t sustain_offset_neg) |
Vibro Motor 4 sets sustain offset - negative function. | |
err_t | vibromotor4_set_brake_time_offset (vibromotor4_t *ctx, uint8_t brake_time_offset) |
Vibro Motor 4 sets brake time offset function. | |
err_t | vibromotor4_set_rated_volt (vibromotor4_t *ctx, uint8_t rated_volt) |
Vibro Motor 4 sets reference voltage function. | |
err_t | vibromotor4_set_ovdrv_clamp_volt (vibromotor4_t *ctx, uint8_t ovdrv_clamp_volt) |
Vibro Motor 4 sets a clamp function. | |
err_t | vibromotor4_get_calib_res_comp (vibromotor4_t *ctx, uint8_t *calib_res_comp) |
Vibro Motor 4 get voltage-compensation function. | |
err_t | vibromotor4_get_supply_volt_val (vibromotor4_t *ctx, float *supply_volt) |
Vibro Motor 4 get the supply voltage function. | |
err_t | vibromotor4_get_lra_resonance_period (vibromotor4_t *ctx, float *lra_res) |
Vibro Motor 4 get the measurement of the LRA resonance period function. | |
err_t | vibromotor4_set_lra_mode (vibromotor4_t *ctx, uint8_t lra_mode) |
Vibro Motor 4 sets the device in LRA mode function. | |
err_t | vibromotor4_set_brake_factor (vibromotor4_t *ctx, uint8_t brk_fac) |
Vibro Motor 4 set brake factor function. | |
err_t | vibromotor4_set_loop_gain (vibromotor4_t *ctx, uint8_t gain) |
Vibro Motor 4 selects a loop gain function. | |
err_t | vibromotor4_set_input (vibromotor4_t *ctx, uint8_t state) |
Vibro Motor 4 sets the input to PWM or analog function. | |
err_t | vibromotor4_enable_ac_coulping (vibromotor4_t *ctx) |
Vibro Motor 4 enable AC coulping function. | |
err_t | vibromotor4_set_duty_cycle (vibromotor4_t *ctx, float duty_cycle) |
Vibro Motor 4 sets PWM duty cycle. | |
err_t | vibromotor4_pwm_stop (vibromotor4_t *ctx) |
Vibro Motor 4 stop PWM module. | |
err_t | vibromotor4_pwm_start (vibromotor4_t *ctx) |
Vibro Motor 4 start PWM module. | |
This file contains API for Vibro Motor 4 Click Driver.