charger18 2.0.0.0
charger18.h File Reference

This file contains API for Charger 18 Click Driver. More...

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

Go to the source code of this file.

Data Structures

struct  charger18_t
 Charger 18 Click context object. More...
 
struct  charger18_cfg_t
 Charger 18 Click configuration object. More...
 

Macros

#define CHARGER18_CONTROL_DISABLE   0
 Charger 18 control state values.
 
#define CHARGER18_CONTROL_ENABLE   1
 
#define CHARGER18_MAP_MIKROBUS(cfg, mikrobus)
 MikroBUS pin mapping.
 

Enumerations

enum  charger18_return_value_t { CHARGER18_OK = 0 , CHARGER18_ERROR = -1 }
 Charger 18 Click return value data. More...
 

Functions

void charger18_cfg_setup (charger18_cfg_t *cfg)
 Charger 18 configuration object setup function.
 
err_t charger18_init (charger18_t *ctx, charger18_cfg_t *cfg)
 Charger 18 initialization function.
 
void charger18_buck_control (charger18_t *ctx, uint8_t state)
 Charger 18 buck control function.
 
void charger18_ldo_control (charger18_t *ctx, uint8_t state)
 Charger 18 ldo control function.
 
void charger18_suspend_control (charger18_t *ctx, uint8_t state)
 Charger 18 suspend control function.
 
void charger18_power_control (charger18_t *ctx, uint8_t state)
 Charger 18 power control function.
 
uint8_t charger18_get_sta_pin (charger18_t *ctx)
 Charger 18 get STA pin function.
 

Detailed Description

This file contains API for Charger 18 Click Driver.

Enumeration Type Documentation

◆ charger18_return_value_t

Charger 18 Click return value data.

Predefined enum values for driver return values.

Enumerator
CHARGER18_OK 
CHARGER18_ERROR