brushless8 2.0.0.0
|
This file contains API for Brushless 8 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
#include "drv_analog_in.h"
#include "drv_pwm.h"
Go to the source code of this file.
Data Structures | |
struct | brushless8_s |
Brushless 8 Click context object. More... | |
struct | brushless8_cfg_t |
Brushless 8 Click configuration object. More... | |
Typedefs | |
typedef struct brushless8_s | brushless8_t |
Brushless 8 Click context object. | |
Functions | |
void | brushless8_cfg_setup (brushless8_cfg_t *cfg) |
Brushless 8 configuration object setup function. | |
BRUSHLESS8_RETVAL | brushless8_init (brushless8_t *ctx, brushless8_cfg_t *cfg) |
Brushless 8 initialization function. | |
BRUSHLESS8_RETVAL | brushless8_default_cfg (brushless8_t *ctx) |
Brushless 8 default configuration function. | |
void | brushless8_dac_write_data (brushless8_t *ctx, uint8_t reg, uint16_t write_data) |
Brushless 8 I2C write function. | |
uint16_t | brushless8_dac_read_data (brushless8_t *ctx, uint8_t reg) |
Brushless 8 I2C read function. | |
uint8_t | brushless8_get_fg (brushless8_t *ctx) |
Brushless 8 fg state. | |
void | brushless8_set_direction (brushless8_t *ctx, uint8_t status) |
Brushless 8 dir pin setting. | |
void | brushless8_set_reset (brushless8_t *ctx, uint8_t status) |
Brushless 8 rst pin setting. | |
int8_t | brushless8_set_dac_vout (brushless8_t *ctx, uint8_t dac_chn, uint16_t vout) |
Brushless 8 I2C function for setting vout. | |
void | brushless8_set_duty_cycle (brushless8_t *ctx, float duty_cycle) |
Sets PWM duty cycle. | |
void | brushless8_pwm_stop (brushless8_t *ctx) |
Stops PWM module. | |
void | brushless8_pwm_start (brushless8_t *ctx) |
Starts PWM module. | |
BRUSHLESS8_RETVAL | brushless8_read_adc (brushless8_t *ctx, uint16_t *data_out) |
ADC read function. | |
BRUSHLESS8_RETVAL | brushless8_read_an_voltage (brushless8_t *ctx, float *data_out) |
AN voltage read function. | |
This file contains API for Brushless 8 Click Driver.
typedef struct brushless8_s brushless8_t |
Brushless 8 Click context object.
Context object definition of Brushless 8 Click driver.