brushless25 2.1.0.0
|
This file contains API for Brushless 25 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
#include "drv_spi_master.h"
#include "spi_specifics.h"
#include "drv_pwm.h"
Go to the source code of this file.
Data Structures | |
struct | brushless25_s |
Brushless 25 Click context object. More... | |
struct | brushless25_cfg_t |
Brushless 25 Click configuration object. More... | |
Typedefs | |
typedef struct brushless25_s | brushless25_t |
Brushless 25 Click context object. | |
Enumerations | |
enum | brushless25_return_value_t { BRUSHLESS25_OK = 0 , BRUSHLESS25_ERROR = -1 } |
Brushless 25 Click return value data. More... | |
Functions | |
void | brushless25_cfg_setup (brushless25_cfg_t *cfg) |
Brushless 25 configuration object setup function. | |
err_t | brushless25_init (brushless25_t *ctx, brushless25_cfg_t *cfg) |
Brushless 25 initialization function. | |
err_t | brushless25_set_duty_cycle (brushless25_t *ctx, float duty_cycle) |
Brushless 24 sets PWM duty cycle. | |
err_t | brushless25_pwm_stop (brushless25_t *ctx) |
Brushless 24 stop PWM module. | |
err_t | brushless25_pwm_start (brushless25_t *ctx) |
Brushless 24 start PWM module. | |
err_t | brushless25_default_cfg (brushless25_t *ctx) |
Brushless 25 default configuration function. | |
err_t | brushless25_i2c_write (brushless25_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Brushless 25 I2C writing function. | |
err_t | brushless25_i2c_read (brushless25_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Brushless 25 I2C reading function. | |
err_t | brushless25_spi_write (brushless25_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Brushless 25 SPI writing function. | |
void | brushless25_enable_drvoff (brushless25_t *ctx) |
Brushless 25 enable drvoff mode function. | |
void | brushless25_disable_drvoff (brushless25_t *ctx) |
Brushless 25 disable drvoff mode function. | |
err_t | brushless25_cfg_write (brushless25_t *ctx, uint16_t reg, uint32_t data_in) |
Brushless 25 config writing function. | |
err_t | brushless25_cfg_write_with_crc (brushless25_t *ctx, uint16_t reg, uint32_t data_in) |
Brushless 25 config writing function with crc on. | |
err_t | brushless25_register_write (brushless25_t *ctx, uint16_t reg, uint32_t data_in) |
Brushless 25 data writing function. | |
err_t | brushless25_cfg_read (brushless25_t *ctx, uint16_t reg, uint32_t *data_out) |
Brushless 25 config reading function. | |
err_t | brushless25_cfg_read_with_crc (brushless25_t *ctx, uint16_t reg, uint32_t *data_out) |
Brushless 25 config reading function. | |
err_t | brushless25_register_read (brushless25_t *ctx, uint16_t reg, uint32_t *data_out) |
Brushless 25 data reading function. | |
err_t | brushless25_pot_write (brushless25_t *ctx, uint8_t cmd, uint8_t reg, uint16_t data_in) |
Brushless 25 pot writing function. | |
err_t | brushless25_set_wiper_position (brushless25_t *ctx, uint16_t data_in) |
Brushless 25 set pot wiper position function. | |
err_t | brushless25_set_speed_ctrl_mode (brushless25_t *ctx, uint8_t mode) |
Brushless 25 set speed control mode function. | |
err_t | brushless25_set_speed_value (brushless25_t *ctx, float spd_val) |
Brushless 25 set speed function. | |
err_t | brushless25_set_brake_state (brushless25_t *ctx, uint8_t brake_state) |
Brushless 25 set brake state function. | |
err_t | brushless25_slow_start_config (brushless25_t *ctx) |
Brushless 25 slow start function. | |
err_t | brushless25_fast_start_config (brushless25_t *ctx) |
Brushless 25 fast start function. | |
err_t | brushless25_ultra_fast_start_config (brushless25_t *ctx) |
Brushless 25 ultra fast start function. | |
This file contains API for Brushless 25 Click Driver.
typedef struct brushless25_s brushless25_t |
Brushless 25 Click context object.
Context object definition of Brushless 25 Click driver.