brushless5 2.0.0.0
brushless5.h File Reference

This file contains API for Brushless 5 Click driver. More...

#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_pwm.h"

Go to the source code of this file.

Data Structures

struct  brushless5_t
 Click ctx object definition. More...
 
struct  brushless5_cfg_t
 Click configuration structure definition. More...
 

Macros

#define BRUSHLESS5_MAP_MIKROBUS(cfg, mikrobus)
 
#define BRUSHLESS5_RETVAL   uint8_t
 
#define BRUSHLESS5_OK   0x00
 
#define BRUSHLESS5_INIT_ERROR   0xFF
 
#define BRUSHLESS5_DEF_FREQ   5000
 

Functions

void brushless5_cfg_setup (brushless5_cfg_t *cfg)
 Config Object Initialization function.
 
BRUSHLESS5_RETVAL brushless5_init (brushless5_t *ctx, brushless5_cfg_t *cfg)
 Initialization function.
 
void brushless5_set_duty_cycle (brushless5_t *ctx, float duty_cycle)
 Generic sets PWM duty cycle.
 
void brushless5_pwm_stop (brushless5_t *ctx)
 Stop PWM module.
 
void brushless5_pwm_start (brushless5_t *ctx)
 Start PWM module.
 
uint8_t brushless5_get_fg (brushless5_t *ctx)
 Get fg pin state.
 

Detailed Description

This file contains API for Brushless 5 Click driver.