hbridge12 2.1.0.0
|
This file contains API for H-Bridge 12 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 | hbridge12_config_t |
H-Bridge 12 Click configuration structure. More... | |
struct | hbridge12_t |
H-Bridge 12 Click context object. More... | |
struct | hbridge12_cfg_t |
H-Bridge 12 Click configuration object. More... | |
Enumerations | |
enum | hbridge12_return_value_t { HBRIDGE12_OK = 0 , HBRIDGE12_ERROR = -1 } |
H-Bridge 12 Click return value data. More... | |
Functions | |
void | hbridge12_cfg_setup (hbridge12_cfg_t *cfg) |
H-Bridge 12 configuration object setup function. | |
err_t | hbridge12_init (hbridge12_t *ctx, hbridge12_cfg_t *cfg) |
H-Bridge 12 initialization function. | |
err_t | hbridge12_default_cfg (hbridge12_t *ctx) |
H-Bridge 12 default configuration function. | |
void | hbridge12_set_rst (hbridge12_t *ctx, uint8_t pin_state) |
H-Bridge 12 set RST pin state function. | |
void | hbridge12_set_slp (hbridge12_t *ctx, uint8_t pin_state) |
H-Bridge 12 set SLP pin state function. | |
void | hbridge12_set_strobe (hbridge12_t *ctx, uint8_t pin_state) |
H-Bridge 12 set STB pin state function. | |
void | hbridge12_generate_strobe (hbridge12_t *ctx) |
H-Bridge 12 generate strobe signal function. | |
void | hbridge12_get_settings (hbridge12_t *ctx, uint8_t channel_sel, hbridge12_config_t *config_data) |
H-Bridge 12 get settings function. | |
void | hbridge12_set_settings (hbridge12_t *ctx, uint8_t channel_sel, hbridge12_config_t config_data) |
H-Bridge 12 set settings function. | |
err_t | hbridge12_write_config (hbridge12_t *ctx, hbridge12_config_t config_data) |
H-Bridge 12 write settings function. | |
void | hbridge12_set_current_scale (hbridge12_t *ctx, uint8_t channel_sel, uint8_t out1_curr_scale, uint8_t out2_curr_scale) |
H-Bridge 12 set current scale function. | |
void | hbridge12_set_decay (hbridge12_t *ctx, uint8_t channel_sel, uint8_t out1_decay, uint8_t out2_decay) |
H-Bridge 12 set decay function. | |
err_t | hbridge12_turn_clockwise (hbridge12_t *ctx, uint8_t channel_sel) |
H-Bridge 12 turn motor clockwise function. | |
err_t | hbridge12_turn_counterclockwise (hbridge12_t *ctx, uint8_t channel_sel) |
H-Bridge 12 turn motor counterclockwise function. | |
err_t | hbridge12_turn_brake_on (hbridge12_t *ctx, uint8_t channel_sel) |
H-Bridge 12 turn motor brake on function. | |
err_t | hbridge12_freewheeling_on (hbridge12_t *ctx, uint8_t channel_sel) |
H-Bridge 12 set motor into freewheeling mode function. | |
This file contains API for H-Bridge 12 Click Driver.