buck8 2.0.0.0
buck8.h File Reference

This file contains API for Buck 8 Click driver. More...

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

Go to the source code of this file.

Data Structures

struct  buck8_t
 Click ctx object definition. More...
 
struct  buck8_cfg_t
 Click configuration structure definition. More...
 

Macros

#define BUCK8_MAP_MIKROBUS(cfg, mikrobus)
 
#define BUCK8_RETVAL   uint8_t
 
#define BUCK8_OK   0x00
 
#define BUCK8_INIT_ERROR   0xFF
 
#define BUCK8_MODE_ACTIVE   0x01
 
#define BUCK8_MODE_SLEEP   0x00
 

Functions

void buck8_cfg_setup (buck8_cfg_t *cfg)
 Config Object Initialization function.
 
BUCK8_RETVAL buck8_init (buck8_t *ctx, buck8_cfg_t *cfg)
 Initialization function.
 
void buck8_default_cfg (buck8_t *ctx)
 Click Default Configuration function.
 
void buck8_set_power_mode (buck8_t *ctx, uint8_t mode)
 Function settings mode.
 
uint8_t buck8_get_state (buck8_t *ctx)
 Function reads state of pin.
 

Detailed Description

This file contains API for Buck 8 Click driver.