charger23 2.1.0.0
charger23.h File Reference

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

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

Go to the source code of this file.

Data Structures

struct  charger23_t
 Charger 23 Click context object. More...
 
struct  charger23_cfg_t
 Charger 23 Click configuration object. More...
 

Macros

#define CHARGER23_STATE_UNKNOWN   0
 Charger 23 charger state setting.
 
#define CHARGER23_STATE_FAULT   1
 
#define CHARGER23_STATE_CHARGING   2
 
#define CHARGER23_STATE_IDLE   3
 
#define CHARGER23_STATE_MASK   0x03
 
#define CHARGER23_MAP_MIKROBUS(cfg, mikrobus)
 MikroBUS pin mapping.
 

Enumerations

enum  charger23_return_value_t { CHARGER23_OK = 0 , CHARGER23_ERROR = -1 }
 Charger 23 Click return value data. More...
 

Functions

void charger23_cfg_setup (charger23_cfg_t *cfg)
 Charger 23 configuration object setup function.
 
err_t charger23_init (charger23_t *ctx, charger23_cfg_t *cfg)
 Charger 23 initialization function.
 
void charger23_enable_device (charger23_t *ctx)
 Charger 23 enable device function.
 
void charger23_disable_device (charger23_t *ctx)
 Charger 23 disable device function.
 
uint8_t charger23_get_status_pin (charger23_t *ctx)
 Charger 23 get status pin function.
 
uint8_t charger23_get_fault_pin (charger23_t *ctx)
 Charger 23 get fault pin function.
 
uint8_t charger23_get_charger_state (charger23_t *ctx)
 Charger 23 get charger state function.
 

Detailed Description

This file contains API for Charger 23 Click Driver.

Enumeration Type Documentation

◆ charger23_return_value_t

Charger 23 Click return value data.

Predefined enum values for driver return values.

Enumerator
CHARGER23_OK 
CHARGER23_ERROR