charger16 2.0.0.0
charger16.h File Reference

This file contains API for Charger 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  charger16_t
 Charger 16 Click context object. More...
 
struct  charger16_cfg_t
 Charger 16 Click configuration object. More...
 

Macros

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

Enumerations

enum  charger16_return_value_t { CHARGER16_OK = 0 , CHARGER16_ERROR = -1 }
 Charger 16 Click return value data. More...
 

Functions

void charger16_cfg_setup (charger16_cfg_t *cfg)
 Charger 16 configuration object setup function.
 
err_t charger16_init (charger16_t *ctx, charger16_cfg_t *cfg)
 Charger 16 initialization function.
 
err_t charger16_default_cfg (charger16_t *ctx)
 Charger 16 default configuration function.
 
err_t charger16_enable_charging (charger16_t *ctx)
 Charger 16 enable charging function.
 
err_t charger16_disable_charging (charger16_t *ctx)
 Charger 16 disable charging function.
 

Detailed Description

This file contains API for Charger 16 Click Driver.

Enumeration Type Documentation

◆ charger16_return_value_t

Charger 16 Click return value data.

Predefined enum values for driver return values.

Enumerator
CHARGER16_OK 
CHARGER16_ERROR