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 MIC23099_MAP_MIKROBUS( cfg, mikrobus ) \
65 cfg.en = MIKROBUS( mikrobus, MIKROBUS_CS ); \
66 cfg.int_pin = MIKROBUS( mikrobus, MIKROBUS_INT )
73#define MIC23099_RETVAL uint8_t
75#define MIC23099_OK 0x00
76#define MIC23099_INIT_ERROR 0xFF
83#define MIC23099_DISABLE 0x00
84#define MIC23099_ENABLE 0x01
131 // End constants group
140 // End variable group
#define MIC23099_RETVAL
Definition mic23099.h:73
MIC23099_RETVAL mic23099_init(mic23099_t *ctx, mic23099_cfg_t *cfg)
Initialization function.
void mic23099_cfg_setup(mic23099_cfg_t *cfg)
Config Object Initialization function.
void mic23099_set_enable(mic23099_t *ctx, uint8_t en_mode)
Enable MIC23099 function.
void mic23099_reset(mic23099_t *ctx)
Reset MIC23099 function.
uint8_t mic23099_check_power_good(mic23099_t *ctx)
Check Power Good pin function.
void mic23099_default_cfg(mic23099_t *ctx)
Click Default Configuration function.
Click configuration structure definition.
Definition mic23099.h:114
pin_name_t en
Definition mic23099.h:117
pin_name_t int_pin
Definition mic23099.h:118
Click ctx object definition.
Definition mic23099.h:99
digital_in_t int_pin
Definition mic23099.h:106
digital_out_t en
Definition mic23099.h:102