brushless13 2.1.0.0
|
This file contains API for Brushless 13 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 | brushless13_t |
Brushless 13 Click context object. More... | |
struct | brushless13_cfg_t |
Brushless 13 Click configuration object. More... | |
Enumerations | |
enum | brushless13_return_value_t { BRUSHLESS13_OK = 0 , BRUSHLESS13_ERROR = -1 } |
Brushless 13 Click return value data. More... | |
Functions | |
void | brushless13_cfg_setup (brushless13_cfg_t *cfg) |
Brushless 13 configuration object setup function. | |
err_t | brushless13_init (brushless13_t *ctx, brushless13_cfg_t *cfg) |
Brushless 13 initialization function. | |
err_t | brushless13_default_cfg (brushless13_t *ctx) |
Brushless 13 default configuration function. | |
err_t | brushless13_generic_write (brushless13_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Brushless 13 I2C writing function. | |
err_t | brushless13_generic_read (brushless13_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Brushless 13 I2C reading function. | |
void | brushless13_set_rst_pin (brushless13_t *ctx, uint8_t pin_state) |
Brushless 13 set rst pin function. | |
uint8_t | brushless13_get_flt_state (brushless13_t *ctx) |
Brushless 13 get flt pin function. | |
void | brushless13_set_mode (brushless13_t *ctx, uint8_t mode_sel) |
Brushless 13 set mode pin function. | |
void | brushless13_reset_port_exp (brushless13_t *ctx) |
Brushless 13 reset port expander function. | |
uint8_t | brushless13_get_flt_pin (brushless13_t *ctx) |
Brushless 13 get fault pin function. | |
err_t | brushless13_write_reg (brushless13_t *ctx, uint8_t reg, uint8_t data_in) |
Brushless 13 write register function. | |
err_t | brushless13_read_reg (brushless13_t *ctx, uint8_t reg, uint8_t *data_out) |
Brushless 13 read register function. | |
err_t | brushless13_set_pins (brushless13_t *ctx, uint8_t set_mask, uint8_t clr_mask) |
Brushless 13 set pins function. | |
err_t | brushless13_set_trap_com_state (brushless13_t *ctx, uint8_t state) |
Brushless 13 set trapezoidal com state function. | |
err_t | brushless13_toggle_pin (brushless13_t *ctx, uint8_t pin_mask, uint8_t speed) |
Brushless 13 toggle pin function. | |
err_t | brushless13_perform_com_seq (brushless13_t *ctx, uint8_t dir, uint8_t speed) |
Brushless 13 perform com sequence function. | |
err_t | brushless13_drive_motor (brushless13_t *ctx, uint8_t dir, uint8_t speed, uint32_t time_ms) |
Brushless 13 drive motor function. | |
This file contains API for Brushless 13 Click Driver.