42#ifdef PREINIT_SUPPORTED
46#ifdef MikroCCoreVersion
47 #if MikroCCoreVersion >= 1
52#include "drv_digital_out.h"
64#define SINGLECELL_MAP_MIKROBUS( cfg, mikrobus ) \
65 cfg.en= MIKROBUS( mikrobus, MIKROBUS_CS );
73#define SINGLECELL_RETVAL uint8_t
75#define SINGLECELL_OK 0x00
76#define SINGLECELL_INIT_ERROR 0xFF
83#define SINGLECELL_DISABLE 0x00
84#define SINGLECELL_ENABLE 0x01
125 // End constants group
133 // End variable group
#define SINGLECELL_RETVAL
Definition singlecell.h:73
SINGLECELL_RETVAL singlecell_init(singlecell_t *ctx, singlecell_cfg_t *cfg)
Initialization function.
void singlecell_cfg_setup(singlecell_cfg_t *cfg)
Config Object Initialization function.
void singlecell_set_power_mode(singlecell_t *ctx, uint8_t en_mode)
Set power mode function.
void singlecell_default_cfg(singlecell_t *ctx)
Click Default Configuration function.
Click configuration structure definition.
Definition singlecell.h:109
pin_name_t en
Definition singlecell.h:112
Click ctx object definition.
Definition singlecell.h:98
digital_out_t en
Definition singlecell.h:101