brushless27 2.1.0.0
|
This file contains API for Brushless 27 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 | brushless27_t |
Brushless 27 Click context object. More... | |
struct | brushless27_cfg_t |
Brushless 27 Click configuration object. More... | |
Enumerations | |
enum | brushless27_return_value_t { BRUSHLESS27_OK = 0 , BRUSHLESS27_ERROR = -1 } |
Brushless 27 Click return value data. More... | |
Functions | |
void | brushless27_cfg_setup (brushless27_cfg_t *cfg) |
Brushless 27 configuration object setup function. | |
err_t | brushless27_init (brushless27_t *ctx, brushless27_cfg_t *cfg) |
Brushless 27 initialization function. | |
err_t | brushless27_default_cfg (brushless27_t *ctx) |
Brushless 27 default configuration function. | |
err_t | brushless27_generic_write (brushless27_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Brushless 27 I2C writing function. | |
err_t | brushless27_generic_read (brushless27_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Brushless 27 I2C reading function. | |
uint8_t | brushless27_get_sen_pin (brushless27_t *ctx) |
Brushless 27 get Sense pin function. | |
uint8_t | brushless27_get_int_pin (brushless27_t *ctx) |
Brushless 27 get Interrupt pin function. | |
void | brushless27_reset_port_exp (brushless27_t *ctx) |
Brushless 27 reset port expander function. | |
err_t | brushless27_get_flt_pin (brushless27_t *ctx) |
Brushless 27 get Fault pin function. | |
err_t | brushless27_write_reg (brushless27_t *ctx, uint8_t reg, uint8_t data_in) |
Brushless 27 write register function. | |
err_t | brushless27_read_reg (brushless27_t *ctx, uint8_t reg, uint8_t *data_out) |
Brushless 27 read register function. | |
err_t | brushless27_set_pins (brushless27_t *ctx, uint8_t set_mask, uint8_t clr_mask) |
Brushless 27 set pins function. | |
err_t | brushless27_set_trap_com_state (brushless27_t *ctx, uint8_t state) |
Brushless 27 set trapezoidal com state function. | |
err_t | brushless27_toggle_pin (brushless27_t *ctx, uint8_t pin_mask, uint8_t speed) |
Brushless 27 toggle pin function. | |
err_t | brushless27_perform_com_seq (brushless27_t *ctx, uint8_t dir, uint8_t speed) |
Brushless 27 perform com sequence function. | |
err_t | brushless27_drive_motor (brushless27_t *ctx, uint8_t dir, uint8_t speed, uint32_t time_ms) |
Brushless 27 drive motor function. | |
This file contains API for Brushless 27 Click Driver.