mcp73871 2.0.0.0
mcp73871.h File Reference

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

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

Go to the source code of this file.

Data Structures

struct  mcp73871_t
 Click ctx object definition. More...
 
struct  mcp73871_cfg_t
 Click configuration structure definition. More...
 

Macros

#define MCP73871_MAP_MIKROBUS(cfg, mikrobus)
 
#define MCP73871_RETVAL   uint8_t
 
#define MCP73871_OK   0x00
 
#define MCP73871_INIT_ERROR   0xFF
 

Functions

void mcp73871_cfg_setup (mcp73871_cfg_t *cfg)
 Config Object Initialization function.
 
MCP73871_RETVAL mcp73871_init (mcp73871_t *ctx, mcp73871_cfg_t *cfg)
 Initialization function.
 
void mcp73871_enable_pin_control (mcp73871_t *ctx, uint8_t pin_state)
 Enable pin control.
 
void mcp73871_prog_pin_control (mcp73871_t *ctx, uint8_t pin_state)
 Prog pin control.
 
void mcp73871_timer_pin_control (mcp73871_t *ctx, uint8_t pin_state)
 Timer pin control.
 

Detailed Description

This file contains API for MCP73871 Click driver.