haptic4 2.1.0.0
|
This file contains API for Haptic 4 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 | haptic4_t |
Haptic 4 Click context object. More... | |
struct | haptic4_cfg_t |
Haptic 4 Click configuration object. More... | |
Enumerations | |
enum | haptic4_return_value_t { HAPTIC4_OK = 0 , HAPTIC4_ERROR = -1 } |
Haptic 4 Click return value data. More... | |
Functions | |
void | haptic4_cfg_setup (haptic4_cfg_t *cfg) |
Haptic 4 configuration object setup function. | |
err_t | haptic4_init (haptic4_t *ctx, haptic4_cfg_t *cfg) |
Haptic 4 initialization function. | |
err_t | haptic4_default_cfg (haptic4_t *ctx) |
Haptic 4 default configuration function. | |
err_t | haptic4_generic_write (haptic4_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Haptic 4 I2C writing function. | |
err_t | haptic4_generic_read (haptic4_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Haptic 4 I2C reading function. | |
err_t | haptic4_write_register (haptic4_t *ctx, uint8_t reg, uint8_t data_in) |
Haptic 4 write register function. | |
err_t | haptic4_read_register (haptic4_t *ctx, uint8_t reg, uint8_t *data_out) |
Haptic 4 read register function. | |
err_t | haptic4_write_register_bits (haptic4_t *ctx, uint8_t reg, uint8_t mask, uint8_t data_in) |
Haptic 4 write register bits function. | |
err_t | haptic4_check_communication (haptic4_t *ctx) |
Haptic 4 check communication function. | |
void | haptic4_set_gp0 (haptic4_t *ctx, uint8_t pin_state) |
Haptic 4 set GP0 pin state function. | |
void | haptic4_set_gp1 (haptic4_t *ctx, uint8_t pin_state) |
Haptic 4 set GP1 pin state function. | |
void | haptic4_set_gp2 (haptic4_t *ctx, uint8_t pin_state) |
Haptic 4 set GP2 pin state function. | |
uint8_t | haptic4_get_int_pin (haptic4_t *ctx) |
Haptic 4 get INT pin function. | |
err_t | haptic4_set_actuator_type (haptic4_t *ctx, uint8_t type) |
Haptic 4 set actuator type function. | |
err_t | haptic4_set_actuator_abs_volt (haptic4_t *ctx, float abs_volt) |
Haptic 4 set actuator abs volt function. | |
err_t | haptic4_set_actuator_nom_volt (haptic4_t *ctx, float nom_volt) |
Haptic 4 set actuator nom volt function. | |
err_t | haptic4_set_actuator_imax (haptic4_t *ctx, float max_curr) |
Haptic 4 set actuator imax function. | |
err_t | haptic4_set_actuator_impedance (haptic4_t *ctx, float impedance) |
Haptic 4 set actuator impedance function. | |
err_t | haptic4_set_actuator_lra_freq (haptic4_t *ctx, float frequency) |
Haptic 4 set actuator lra freq function. | |
err_t | haptic4_set_operation_mode (haptic4_t *ctx, uint8_t op_mode) |
Haptic 4 set operation mode function. | |
err_t | haptic4_set_freq_track (haptic4_t *ctx, uint8_t freq_track_en) |
Haptic 4 set freq track function. | |
err_t | haptic4_set_acceleration_mode (haptic4_t *ctx, uint8_t accel_en) |
Haptic 4 set accel mode function. | |
err_t | haptic4_set_vibration_level (haptic4_t *ctx, float level) |
Haptic 4 set vibration level function. | |
err_t | haptic4_get_vibration_level (haptic4_t *ctx, float *level) |
Haptic 4 get vibration level function. | |
This file contains API for Haptic 4 Click Driver.