hbridge15 2.1.0.0
|
This file contains API for H-Bridge 15 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 | hbridge15_t |
H-Bridge 15 Click context object. More... | |
struct | hbridge15_cfg_t |
H-Bridge 15 Click configuration object. More... | |
Enumerations | |
enum | hbridge15_return_value_t { HBRIDGE15_OK = 0 , HBRIDGE15_ERROR = -1 } |
H-Bridge 15 Click return value data. More... | |
Functions | |
void | hbridge15_cfg_setup (hbridge15_cfg_t *cfg) |
H-Bridge 15 configuration object setup function. | |
err_t | hbridge15_init (hbridge15_t *ctx, hbridge15_cfg_t *cfg) |
H-Bridge 15 initialization function. | |
err_t | hbridge15_default_cfg (hbridge15_t *ctx) |
H-Bridge 15 default configuration function. | |
err_t | hbridge15_generic_write (hbridge15_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
H-Bridge 15 I2C writing function. | |
err_t | hbridge15_generic_read (hbridge15_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
H-Bridge 15 I2C reading function. | |
void | hbridge15_set_rst_pin (hbridge15_t *ctx, uint8_t pin_state) |
H-Bridge 15 set RST pin function. | |
void | hbridge15_set_ena_pin (hbridge15_t *ctx, uint8_t pin_state) |
H-Bridge 15 set ENA pin function. | |
uint8_t | hbridge15_get_int_state (hbridge15_t *ctx) |
H-Bridge 15 get INT pin state function. | |
void | hbridge15_reset_port_exp (hbridge15_t *ctx) |
H-Bridge 15 reset port expander function. | |
err_t | hbridge15_write_reg (hbridge15_t *ctx, uint8_t reg, uint8_t data_in) |
H-Bridge 15 write register function. | |
err_t | hbridge15_read_reg (hbridge15_t *ctx, uint8_t reg, uint8_t *data_out) |
H-Bridge 15 read register function. | |
err_t | hbridge15_set_pins (hbridge15_t *ctx, uint8_t set_mask, uint8_t clr_mask) |
H-Bridge 15 set pins function. | |
err_t | hbridge15_set_sleep (hbridge15_t *ctx, uint8_t sleep_state) |
H-Bridge 15 set sleep function. | |
err_t | hbridge15_set_out_state (hbridge15_t *ctx, uint8_t out_state) |
H-Bridge 15 set output function. | |
This file contains API for H-Bridge 15 Click Driver.