peltier 2.0.0.0
peltier.h File Reference

This file contains API for Peltier Click driver. More...

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

Go to the source code of this file.

Data Structures

struct  peltier_t
 Click ctx object definition. More...
 
struct  peltier_cfg_t
 Click configuration structure definition. More...
 

Macros

#define PELTIER_MAP_MIKROBUS(cfg, mikrobus)
 
#define PELTIER_RETVAL   uint8_t
 
#define PELTIER_OK   0x00
 
#define PELTIER_INIT_ERROR   0xFF
 

Functions

void peltier_cfg_setup (peltier_cfg_t *cfg)
 Config Object Initialization function.
 
PELTIER_RETVAL peltier_init (peltier_t *ctx, peltier_cfg_t *cfg)
 Initialization function.
 
void peltier_enable_ldo2 (peltier_t *ctx)
 Enables LDO2 function.
 
void peltier_disable_ldo2 (peltier_t *ctx)
 Disables LDO2 function.
 
void peltier_enable_ldo1 (peltier_t *ctx)
 Enables LDO1 function.
 
void peltier_disable_ldo1 (peltier_t *ctx)
 Disables LDO1 function.
 
uint8_t peltier_battery_charge (peltier_t *ctx)
 Check ongoing battery charge flag pin function.
 
uint8_t peltier_vin_good_flag (peltier_t *ctx)
 Check input voltage good flag pin function.
 

Detailed Description

This file contains API for Peltier Click driver.