buck9 2.0.0.0
buck9.h File Reference

This file contains API for Buck 9 Click Driver. More...

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

Go to the source code of this file.

Data Structures

struct  buck9_t
 Buck 9 Click context object. More...
 
struct  buck9_cfg_t
 Buck 9 Click configuration object. More...
 

Macros

#define BUCK9_DEVICE_ENABLE   0x01
 Buck 9 mode settings.
 
#define BUCK9_DEVICE_DISABLE   0x00
 
#define BUCK9_MAP_MIKROBUS(cfg, mikrobus)    cfg.en = MIKROBUS( mikrobus, MIKROBUS_PWM )
 MikroBUS pin mapping.
 

Enumerations

enum  buck9_return_value_t { BUCK9_OK = 0 , BUCK9_ERROR = -1 }
 Buck 9 Click return value data. More...
 

Functions

void buck9_cfg_setup (buck9_cfg_t *cfg)
 Buck 9 configuration object setup function.
 
err_t buck9_init (buck9_t *ctx, buck9_cfg_t *cfg)
 Buck 9 initialization function.
 
void buck9_set_device_mode (buck9_t *ctx, uint8_t mode)
 Function for enable or disable device.
 

Detailed Description

This file contains API for Buck 9 Click Driver.

Enumeration Type Documentation

◆ buck9_return_value_t

Buck 9 Click return value data.

Predefined enum values for driver return values.

Enumerator
BUCK9_OK 
BUCK9_ERROR