brushless16 2.0.0.0
brushless16.h File Reference

This file contains API for Brushless 16 Click Driver. More...

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

Go to the source code of this file.

Data Structures

struct  brushless16_t
 Brushless 16 Click context object. More...
 
struct  brushless16_cfg_t
 Brushless 16 Click configuration object. More...
 

Macros

#define BRUSHLESS16_MAP_MIKROBUS(cfg, mikrobus)
 MikroBUS pin mapping.
 

Enumerations

enum  brushless16_return_value_t { BRUSHLESS16_OK = 0 , BRUSHLESS16_ERROR = -1 }
 Brushless 16 Click return value data. More...
 

Functions

void brushless16_cfg_setup (brushless16_cfg_t *cfg)
 Brushless 16 configuration object setup function.
 
err_t brushless16_init (brushless16_t *ctx, brushless16_cfg_t *cfg)
 Brushless 16 initialization function.
 
void brushless16_set_en (brushless16_t *ctx, uint8_t state)
 Set en pin state.
 
uint8_t brushless16_get_rd (brushless16_t *ctx)
 Get rd pin state.
 
uint8_t brushless16_get_fg (brushless16_t *ctx)
 Get fg pin state.
 

Detailed Description

This file contains API for Brushless 16 Click Driver.

Enumeration Type Documentation

◆ brushless16_return_value_t

Brushless 16 Click return value data.

Predefined enum values for driver return values.

Enumerator
BRUSHLESS16_OK 
BRUSHLESS16_ERROR