haptic3 2.0.0.0
|
This file contains API for HAPTIC 3 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 | haptic3_t |
HAPTIC 3 Click context object. More... | |
struct | haptic3_cfg_t |
HAPTIC 3 Click configuration object. More... | |
Enumerations | |
enum | haptic3_return_value_t { HAPTIC3_OK = 0 , HAPTIC3_ERROR = -1 } |
HAPTIC 3 Click return value data. More... | |
Functions | |
void | haptic3_cfg_setup (haptic3_cfg_t *cfg) |
HAPTIC 3 configuration object setup function. | |
err_t | haptic3_init (haptic3_t *ctx, haptic3_cfg_t *cfg) |
HAPTIC 3 initialization function. | |
err_t | haptic3_default_cfg (haptic3_t *ctx) |
HAPTIC 3 default configuration function. | |
err_t | haptic3_generic_write (haptic3_t *ctx, uint8_t reg, uint8_t *tx_buf, uint8_t tx_len) |
HAPTIC 3 I2C writing function. | |
err_t | haptic3_generic_read (haptic3_t *ctx, uint8_t reg, uint8_t *rx_buf, uint8_t rx_len) |
HAPTIC 3 I2C reading function. | |
err_t | haptic3_write_register (haptic3_t *ctx, uint8_t reg, uint8_t data_in) |
HAPTIC 3 write register function. | |
err_t | haptic3_read_register (haptic3_t *ctx, uint8_t reg, uint8_t *data_out) |
HAPTIC 3 read register function. | |
err_t | haptic3_write_register_bits (haptic3_t *ctx, uint8_t reg, uint8_t mask, uint8_t data_in) |
HAPTIC 3 write register bits function. | |
err_t | haptic3_check_communication (haptic3_t *ctx) |
HAPTIC 3 check communication function. | |
void | haptic3_enable_device (haptic3_t *ctx) |
HAPTIC 3 enable device function. | |
void | haptic3_disable_device (haptic3_t *ctx) |
HAPTIC 3 disable device function. | |
uint8_t | haptic3_get_int_pin (haptic3_t *ctx) |
HAPTIC 3 get INT pin function. | |
err_t | haptic3_set_actuator_type (haptic3_t *ctx, uint8_t type) |
HAPTIC 3 set actuator type function. | |
err_t | haptic3_set_actuator_abs_volt (haptic3_t *ctx, float abs_volt) |
HAPTIC 3 set actuator abs volt function. | |
err_t | haptic3_set_actuator_nom_volt (haptic3_t *ctx, float nom_volt) |
HAPTIC 3 set actuator nom volt function. | |
err_t | haptic3_set_actuator_imax (haptic3_t *ctx, float max_curr) |
HAPTIC 3 set actuator imax function. | |
err_t | haptic3_set_actuator_impedance (haptic3_t *ctx, float impedance) |
HAPTIC 3 set actuator impedance function. | |
err_t | haptic3_set_actuator_lra_freq (haptic3_t *ctx, float frequency) |
HAPTIC 3 set actuator lra freq function. | |
err_t | haptic3_set_operation_mode (haptic3_t *ctx, uint8_t op_mode) |
HAPTIC 3 set operation mode function. | |
err_t | haptic3_set_freq_track (haptic3_t *ctx, uint8_t freq_track_en) |
HAPTIC 3 set freq track function. | |
err_t | haptic3_set_acceleration_mode (haptic3_t *ctx, uint8_t accel_en) |
HAPTIC 3 set acceleration mode function. | |
err_t | haptic3_set_vibration_level (haptic3_t *ctx, float level) |
HAPTIC 3 set vibration level function. | |
err_t | haptic3_get_vibration_level (haptic3_t *ctx, float *level) |
HAPTIC 3 get vibration level function. | |
This file contains API for HAPTIC 3 Click Driver.