brushless26 2.1.0.0
|
This file contains API for Brushless 26 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 | brushless26_t |
Brushless 26 Click context object. More... | |
struct | brushless26_cfg_t |
Brushless 26 Click configuration object. More... | |
Enumerations | |
enum | brushless26_return_value_t { BRUSHLESS26_OK = 0 , BRUSHLESS26_ERROR = -1 } |
Brushless 26 Click return value data. More... | |
Functions | |
void | brushless26_cfg_setup (brushless26_cfg_t *cfg) |
Brushless 26 configuration object setup function. | |
err_t | brushless26_init (brushless26_t *ctx, brushless26_cfg_t *cfg) |
Brushless 26 initialization function. | |
err_t | brushless26_default_cfg (brushless26_t *ctx) |
Brushless 26 default configuration function. | |
err_t | brushless26_generic_write (brushless26_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Brushless 26 I2C writing function. | |
err_t | brushless26_generic_read (brushless26_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Brushless 26 I2C reading function. | |
void | brushless26_set_rst_pin (brushless26_t *ctx, uint8_t pin_state) |
Brushless 26 set rst pin function. | |
void | brushless26_reset_port_exp (brushless26_t *ctx) |
Brushless 26 reset port expander function. | |
uint8_t | brushless26_get_flt_pin (brushless26_t *ctx) |
Brushless 26 get fault pin function. | |
err_t | brushless26_write_reg (brushless26_t *ctx, uint8_t reg, uint8_t data_in) |
Brushless 26 write register function. | |
err_t | brushless26_read_reg (brushless26_t *ctx, uint8_t reg, uint8_t *data_out) |
Brushless 26 read register function. | |
err_t | brushless26_set_pins (brushless26_t *ctx, uint8_t set_mask, uint8_t clr_mask) |
Brushless 26 set pins function. | |
err_t | brushless26_set_trap_com_state (brushless26_t *ctx, uint8_t state) |
Brushless 26 set trapezoidal com state function. | |
err_t | brushless26_toggle_pin (brushless26_t *ctx, uint8_t pin_mask, uint8_t speed) |
Brushless 26 toggle pin function. | |
err_t | brushless26_perform_com_seq (brushless26_t *ctx, uint8_t dir, uint8_t speed) |
Brushless 26 perform com sequence function. | |
err_t | brushless26_drive_motor (brushless26_t *ctx, uint8_t dir, uint8_t speed, uint32_t time_ms) |
Brushless 26 drive motor function. | |
This file contains API for Brushless 26 Click Driver.