hbridge9 2.0.0.0
|
This file contains API for H-Bridge 9 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 | hbridge9_t |
H-Bridge 9 Click context object. More... | |
struct | hbridge9_cfg_t |
H-Bridge 9 Click configuration object. More... | |
Enumerations | |
enum | hbridge9_return_value_t { HBRIDGE9_OK = 0 , HBRIDGE9_ERROR = -1 } |
H-Bridge 9 Click return value data. More... | |
Functions | |
void | hbridge9_cfg_setup (hbridge9_cfg_t *cfg) |
H-Bridge 9 configuration object setup function. | |
err_t | hbridge9_init (hbridge9_t *ctx, hbridge9_cfg_t *cfg) |
H-Bridge 9 initialization function. | |
err_t | hbridge9_default_cfg (hbridge9_t *ctx) |
H-Bridge 9 default configuration function. | |
err_t | hbridge9_spi_transfer (hbridge9_t *ctx, uint8_t *data_in, uint8_t tx_len, uint8_t *data_out, uint8_t rx_len) |
H-Bridge 9 spi transfer function. | |
err_t | hbridge9_write_register (hbridge9_t *ctx, uint8_t reg, uint16_t data_in) |
H-Bridge 9 write register function. | |
err_t | hbridge9_read_register (hbridge9_t *ctx, uint8_t reg, uint16_t *data_out) |
H-Bridge 9 read register function. | |
err_t | hbridge9_modify_register_bits (hbridge9_t *ctx, uint8_t reg, uint16_t clr_mask, uint16_t set_mask) |
H-Bridge 9 modify register bits function. | |
err_t | hbridge9_read_register_and_clear (hbridge9_t *ctx, uint8_t reg, uint16_t *data_out) |
H-Bridge 9 read register and clear function. | |
err_t | hbridge9_read_info_register (hbridge9_t *ctx, uint8_t reg, uint8_t *data_out) |
H-Bridge 9 read info register function. | |
err_t | hbridge9_set_default (hbridge9_t *ctx) |
H-Bridge 9 set default function. | |
err_t | hbridge9_clear_all_status (hbridge9_t *ctx) |
H-Bridge 9 clear all status function. | |
err_t | hbridge9_check_communication (hbridge9_t *ctx) |
H-Bridge 9 check communication function. | |
void | hbridge9_set_en_out_pin (hbridge9_t *ctx, uint8_t state) |
H-Bridge 9 set en out pin function. | |
void | hbridge9_send_actuation_pulse (hbridge9_t *ctx) |
H-Bridge 9 send actuation pulse function. | |
uint8_t | hbridge9_get_dout_pin (hbridge9_t *ctx) |
H-Bridge 9 get dout pin function. | |
This file contains API for H-Bridge 9 Click Driver.