hbridge14 2.1.0.0
|
This file contains API for H-Bridge 14 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
#include "drv_spi_master.h"
#include "spi_specifics.h"
Go to the source code of this file.
Data Structures | |
struct | hbridge14_s |
H-Bridge 14 Click context object. More... | |
struct | hbridge14_cfg_t |
H-Bridge 14 Click configuration object. More... | |
Typedefs | |
typedef struct hbridge14_s | hbridge14_t |
H-Bridge 14 Click context object. | |
Enumerations | |
enum | hbridge14_return_value_t { HBRIDGE14_OK = 0 , HBRIDGE14_ERROR = -1 } |
H-Bridge 14 Click return value data. More... | |
Functions | |
void | hbridge14_cfg_setup (hbridge14_cfg_t *cfg) |
H-Bridge 14 configuration object setup function. | |
err_t | hbridge14_init (hbridge14_t *ctx, hbridge14_cfg_t *cfg) |
H-Bridge 14 initialization function. | |
err_t | hbridge14_default_cfg (hbridge14_t *ctx) |
H-Bridge 14 default configuration function. | |
err_t | hbridge14_generic_write (hbridge14_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
H-Bridge 14 data writing function. | |
err_t | hbridge14_generic_read (hbridge14_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
H-Bridge 14 data reading function. | |
void | hbridge14_set_in1_pin (hbridge14_t *ctx, uint8_t pin_state) |
H-Bridge 14 set IN1 pin function. | |
void | hbridge14_set_rst_pin (hbridge14_t *ctx, uint8_t pin_state) |
H-Bridge 14 set RST pin function. | |
uint8_t | hbridge14_get_ip_pin (hbridge14_t *ctx) |
H-Bridge 14 get IP pin function. | |
uint8_t | hbridge14_get_int_pin (hbridge14_t *ctx) |
H-Bridge 14 get INT pin function. | |
err_t | hbridge14_register_write (hbridge14_t *ctx, uint8_t reg, uint8_t data_in) |
H-Bridge 14 data register writing function. | |
err_t | hbridge14_register_read (hbridge14_t *ctx, uint8_t reg, uint8_t *data_out) |
H-Bridge 14 data register reading function. | |
err_t | hbridge14_port_expander_write (hbridge14_t *ctx, uint8_t reg, uint8_t data_in) |
H-Bridge 14 port ecpander write register function. | |
err_t | hbridge14_port_expander_read (hbridge14_t *ctx, uint8_t reg, uint8_t *data_out) |
H-Bridge 14 port ecpander read register function. | |
err_t | hbridge14_set_pins (hbridge14_t *ctx, uint8_t set_mask, uint8_t clr_mask) |
H-Bridge 14 set pins function. | |
err_t | hbridge14_disable_state (hbridge14_t *ctx, uint8_t dis_state) |
H-Bridge 14 control disable function. | |
err_t | hbridge14_sleep_state (hbridge14_t *ctx, uint8_t sleep_state) |
H-Bridge 14 control sleep function. | |
err_t | hbridge14_drive_motor (hbridge14_t *ctx, uint8_t state) |
H-Bridge 14 drive motor function. | |
This file contains API for H-Bridge 14 Click Driver.
typedef struct hbridge14_s hbridge14_t |
H-Bridge 14 Click context object.
Context object definition of H-Bridge 14 Click driver.