hbridge6 2.0.0.0
|
This file contains API for H-Bridge 6 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
#include "drv_pwm.h"
Go to the source code of this file.
Data Structures | |
struct | hbridge6_t |
H-Bridge 6 Click context object. More... | |
struct | hbridge6_cfg_t |
H-Bridge 6 Click configuration object. More... | |
Enumerations | |
enum | hbridge6_return_value_t { HBRIDGE6_OK = 0 , HBRIDGE6_ERROR = -1 } |
H-Bridge 6 Click return value data. More... | |
Functions | |
void | hbridge6_cfg_setup (hbridge6_cfg_t *cfg) |
H-Bridge 6 configuration object setup function. | |
err_t | hbridge6_init (hbridge6_t *ctx, hbridge6_cfg_t *cfg) |
H-Bridge 6 initialization function. | |
void | hbridge6_generic_write (hbridge6_t *ctx, uint8_t reg, uint8_t tx_buf) |
H-Bridge 6 I2C writing function. | |
uint8_t | hbridge6_generic_read (hbridge6_t *ctx, uint8_t reg) |
H-Bridge 6 I2C reading function. | |
err_t | hbridge6_default_cfg (hbridge6_t *ctx) |
H-Bridge 6 default configuration function. | |
err_t | hbridge6_set_duty_cycle (hbridge6_t *ctx, float duty_cycle) |
H-Bridge 6 sets PWM duty cycle. | |
err_t | hbridge6_pwm_stop (hbridge6_t *ctx) |
H-Bridge 6 stop PWM module. | |
err_t | hbridge6_pwm_start (hbridge6_t *ctx) |
H-Bridge 6 start PWM module. | |
void | hbridge6_reset (hbridge6_t *ctx) |
HW reset function. | |
void | hbridge6_set_output (hbridge6_t *ctx, uint8_t n_out_port, hbridge6_cfg_t cfg_data) |
Set output function. | |
void | hbridge6_get_output (hbridge6_t *ctx, uint8_t n_out_port, hbridge6_cfg_t *cfg_data) |
Get output function. | |
void | hbridge6_default_config (hbridge6_t *ctx) |
Default config function. | |
void | hbridge6_set_input_port_a (hbridge6_t *ctx, uint8_t pin_state) |
Set input port A function. | |
void | hbridge6_set_input_port_b (hbridge6_t *ctx, uint8_t pin_state) |
Set input port B function. | |
void | hbridge6_enable_diagnostic (hbridge6_t *ctx, uint8_t en_state) |
Enable the diagnostic function. | |
void | hbridge6_set_multi_sense (hbridge6_t *ctx, uint8_t sel_num, uint8_t pin_state) |
Set multi sense function. | |
void | hbridge6_set_direction (hbridge6_t *ctx, uint8_t direction) |
Adjust the direction function. | |
uint8_t | hbridge6_get_an_diagnostic (hbridge6_t *ctx) |
Get diagnostic function. | |
This file contains API for H-Bridge 6 Click Driver.