buck3 2.0.0.0
buck3.h File Reference

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

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

Go to the source code of this file.

Data Structures

struct  buck3_t
 Click ctx object definition. More...
 
struct  buck3_cfg_t
 Click configuration structure definition. More...
 

Macros

#define BUCK3_MAP_MIKROBUS(cfg, mikrobus)
 
#define BUCK3_RETVAL   uint8_t
 
#define BUCK3_OK   0x00
 
#define BUCK3_INIT_ERROR   0xFF
 
#define BUCK3_MODE_ACTIVE   0x01
 
#define BUCK3_MODE_SLEEP   0x00
 

Functions

void buck3_cfg_setup (buck3_cfg_t *cfg)
 Config Object Initialization function.
 
BUCK3_RETVAL buck3_init (buck3_t *ctx, buck3_cfg_t *cfg)
 Initialization function.
 
void buck3_default_cfg (buck3_t *ctx)
 Click Default Configuration function.
 
uint8_t buck3_get_power_good (buck3_t *ctx)
 Function reads state of PGD pin.
 
void buck3_set_device_state (buck3_t *ctx, uint8_t state)
 Function for setting chip mode.
 

Detailed Description

This file contains API for Buck 3 Click driver.