hbridgedriver2 2.0.0.0
|
This file contains API for H-Bridge Driver 2 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
#include "spi_specifics.h"
#include "drv_pwm.h"
Go to the source code of this file.
Data Structures | |
struct | hbridgedriver2_t |
H-Bridge Driver 2 Click context object. More... | |
struct | hbridgedriver2_cfg_t |
H-Bridge Driver 2 Click configuration object. More... | |
struct | hbridgedriver2_dev_id_t |
H-Bridge Driver 2 Click device ID object. More... | |
struct | hbridgedriver2_ctrl_t |
H-Bridge Driver 2 Click device ID object. More... | |
Enumerations | |
enum | hbridgedriver2_return_value_t { HBRIDGEDRIVER2_OK = 0 , HBRIDGEDRIVER2_ERROR = -1 } |
H-Bridge Driver 2 Click return value data. More... | |
Functions | |
void | hbridgedriver2_cfg_setup (hbridgedriver2_cfg_t *cfg) |
H-Bridge Driver 2 configuration object setup function. | |
err_t | hbridgedriver2_init (hbridgedriver2_t *ctx, hbridgedriver2_cfg_t *cfg) |
H-Bridge Driver 2 initialization function. | |
err_t | hbridgedriver2_default_cfg (hbridgedriver2_t *ctx) |
H-Bridge Driver 2 default configuration function. | |
err_t | hbridgedriver2_enable (hbridgedriver2_t *ctx) |
H-Bridge Driver 2 enable function. | |
err_t | hbridgedriver2_disable (hbridgedriver2_t *ctx) |
H-Bridge Driver 2 disable function. | |
err_t | hbridgedriver2_write_reg (hbridgedriver2_t *ctx, uint8_t reg, uint8_t *global_fault, uint16_t data_in) |
H-Bridge Driver 2 data writing function. | |
err_t | hbridgedriver2_read_reg (hbridgedriver2_t *ctx, uint8_t reg, uint8_t *global_fault, uint16_t *data_out) |
H-Bridge Driver 2 data reading function. | |
err_t | hbridgedriver2_read_clear_reg (hbridgedriver2_t *ctx, uint8_t reg, uint8_t *global_fault, uint16_t *data_out) |
H-Bridge Driver 2 data read and clear function. | |
err_t | hbridgedriver2_read_id (hbridgedriver2_t *ctx, uint8_t reg, uint8_t *global_fault, uint16_t *data_out) |
H-Bridge Driver 2 data read ID function. | |
err_t | hbridgedriver2_set_active_mode (hbridgedriver2_t *ctx) |
H-Bridge Driver 2 set active mode function. | |
err_t | hbridgedriver2_get_status (hbridgedriver2_t *ctx, uint16_t *status) |
H-Bridge Driver 2 get status function. | |
err_t | hbridgedriver2_get_control (hbridgedriver2_t *ctx, uint16_t *control) |
H-Bridge Driver 2 get control function. | |
err_t | hbridgedriver2_set_control (hbridgedriver2_t *ctx, uint8_t *global_fault, uint16_t control) |
H-Bridge Driver 2 set control function. | |
err_t | hbridgedriver2_get_config (hbridgedriver2_t *ctx, uint16_t *config) |
H-Bridge Driver 2 get config function. | |
err_t | hbridgedriver2_set_config (hbridgedriver2_t *ctx, uint8_t *global_fault, uint16_t config) |
H-Bridge Driver 2 set config function. | |
err_t | hbridgedriver2_get_device_id (hbridgedriver2_t *ctx, uint8_t *global_fault, hbridgedriver2_dev_id_t *dev_id) |
H-Bridge Driver 2 get device ID function. | |
err_t | hbridgedriver2_control (hbridgedriver2_t *ctx, uint8_t *global_fault, hbridgedriver2_ctrl_t dev_ctrl) |
H-Bridge Driver 2 control function. | |
err_t | hbridgedriver2_run_backward (hbridgedriver2_t *ctx, uint8_t *global_fault) |
H-Bridge Driver 2 run backward function. | |
err_t | hbridgedriver2_run_forward (hbridgedriver2_t *ctx, uint8_t *global_fault) |
H-Bridge Driver 2 run forward function. | |
err_t | hbridgedriver2_stop (hbridgedriver2_t *ctx, uint8_t *global_fault) |
H-Bridge Driver 2 stop function. | |
err_t | hbridgedriver2_stop_with_brake (hbridgedriver2_t *ctx, uint8_t *global_fault) |
H-Bridge Driver 2 stop with brake function. | |
err_t | hbridgedriver2_set_duty_cycle (hbridgedriver2_t *ctx, float duty_cycle) |
H-Bridge Driver 2 sets PWM duty cycle. | |
err_t | hbridgedriver2_pwm_stop (hbridgedriver2_t *ctx) |
H-Bridge Driver 2 stop PWM module. | |
err_t | hbridgedriver2_pwm_start (hbridgedriver2_t *ctx) |
H-Bridge Driver 2 start PWM module. | |
This file contains API for H-Bridge Driver 2 Click Driver.