hbridge11 2.1.0.0
|
This file contains API for H-Bridge 11 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
#include "spi_specifics.h"
Go to the source code of this file.
Data Structures | |
struct | hbridge11_t |
H-Bridge 11 Click context object. More... | |
struct | hbridge11_cfg_t |
H-Bridge 11 Click configuration object. More... | |
Enumerations | |
enum | hbridge11_return_value_t { HBRIDGE11_OK = 0 , HBRIDGE11_ERROR = -1 } |
H-Bridge 11 Click return value data. More... | |
Functions | |
void | hbridge11_cfg_setup (hbridge11_cfg_t *cfg) |
H-Bridge 11 configuration object setup function. | |
err_t | hbridge11_init (hbridge11_t *ctx, hbridge11_cfg_t *cfg) |
H-Bridge 11 initialization function. | |
err_t | hbridge11_default_cfg (hbridge11_t *ctx) |
H-Bridge 11 default configuration function. | |
err_t | hbridge11_write_8bit_register (hbridge11_t *ctx, uint8_t reg, uint8_t data_in) |
H-Bridge 11 write 8bit register function. | |
err_t | hbridge11_read_8bit_register (hbridge11_t *ctx, uint8_t reg, uint8_t *data_out) |
H-Bridge 11 read 8bit register function. | |
err_t | hbridge11_write_32bit_register (hbridge11_t *ctx, uint8_t reg, uint32_t data_in) |
H-Bridge 11 write 32bit register function. | |
err_t | hbridge11_read_32bit_register (hbridge11_t *ctx, uint8_t reg, uint32_t *data_out) |
H-Bridge 11 read 32bit register function. | |
void | hbridge11_enable_device (hbridge11_t *ctx) |
H-Bridge 11 enable device function. | |
void | hbridge11_disable_device (hbridge11_t *ctx) |
H-Bridge 11 disable device function. | |
uint8_t | hbridge11_get_fault_pin (hbridge11_t *ctx) |
H-Bridge 11 get fault pin function. | |
err_t | hbridge11_read_flags (hbridge11_t *ctx, uint8_t *fault_flags) |
H-Bridge 11 read flags function. | |
err_t | hbridge11_set_motor_state (hbridge11_t *ctx, uint8_t motor, uint8_t state) |
H-Bridge 11 set motor state function. | |
This file contains API for H-Bridge 11 Click Driver.