41#ifdef PREINIT_SUPPORTED
45#ifdef MikroCCoreVersion
46 #if MikroCCoreVersion >= 1
51#include "drv_digital_out.h"
52#include "drv_digital_in.h"
64#define MCP73871_MAP_MIKROBUS( cfg, mikrobus ) \
65 cfg.pg2 = MIKROBUS( mikrobus, MIKROBUS_AN ); \
66 cfg.ce = MIKROBUS( mikrobus, MIKROBUS_CS ); \
67 cfg.te = MIKROBUS( mikrobus, MIKROBUS_PWM )
74#define MCP73871_RETVAL uint8_t
76#define MCP73871_OK 0x00
77#define MCP73871_INIT_ERROR 0xFF
#define MCP73871_RETVAL
Definition mcp73871.h:74
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.
void mcp73871_enable_pin_control(mcp73871_t *ctx, uint8_t pin_state)
Enable pin control.
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.
Click configuration structure definition.
Definition mcp73871.h:104
pin_name_t ce
Definition mcp73871.h:108
pin_name_t te
Definition mcp73871.h:109
pin_name_t pg2
Definition mcp73871.h:107
Click ctx object definition.
Definition mcp73871.h:91
digital_out_t pg2
Definition mcp73871.h:94
digital_out_t te
Definition mcp73871.h:96
digital_out_t ce
Definition mcp73871.h:95