hbridge16 2.1.0.0
|
This file contains API for H-Bridge 16 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 | hbridge16_t |
H-Bridge 16 Click context object. More... | |
struct | hbridge16_cfg_t |
H-Bridge 16 Click configuration object. More... | |
Enumerations | |
enum | hbridge16_return_value_t { HBRIDGE16_OK = 0 , HBRIDGE16_ERROR = -1 } |
H-Bridge 16 Click return value data. More... | |
Functions | |
void | hbridge16_cfg_setup (hbridge16_cfg_t *cfg) |
H-Bridge 16 configuration object setup function. | |
err_t | hbridge16_init (hbridge16_t *ctx, hbridge16_cfg_t *cfg) |
H-Bridge 16 initialization function. | |
err_t | hbridge16_default_cfg (hbridge16_t *ctx) |
H-Bridge 16 default configuration function. | |
err_t | hbridge16_generic_write (hbridge16_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
H-Bridge 16 I2C writing function. | |
err_t | hbridge16_generic_read (hbridge16_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
H-Bridge 16 I2C reading function. | |
void | hbridge16_reset_port_exp (hbridge16_t *ctx) |
H-Bridge 16 reset port expander function. | |
uint8_t | hbridge16_get_int_pin (hbridge16_t *ctx) |
H-Bridge 16 get Interrupt pin function. | |
void | hbridge16_set_slp_pin (hbridge16_t *ctx, uint8_t pin_state) |
H-Bridge 15 set Sleep pin function. | |
err_t | hbridge16_write_reg (hbridge16_t *ctx, uint8_t reg, uint8_t data_in) |
H-Bridge 16 write register function. | |
err_t | hbridge16_read_reg (hbridge16_t *ctx, uint8_t reg, uint8_t *data_out) |
H-Bridge 16 read register function. | |
err_t | hbridge16_set_pins (hbridge16_t *ctx, uint8_t set_mask, uint8_t clr_mask) |
H-Bridge 16 set pins function. | |
err_t | hbridge16_set_mode (hbridge16_t *ctx, uint8_t mode_sel) |
H-Bridge 16 set mode function. | |
err_t | hbridge16_set_out_state (hbridge16_t *ctx, uint8_t out_state) |
H-Bridge 16 set output function. | |
This file contains API for H-Bridge 16 Click Driver.