Go to the documentation of this file.
42 #ifdef PREINIT_SUPPORTED
46 #ifdef MikroCCoreVersion
47 #if MikroCCoreVersion >= 1
52 #include "drv_digital_out.h"
53 #include "drv_digital_in.h"
61 #define NANOPW_ENABLE_DEVICE 1
62 #define NANOPW_DISABLE_DEVICE 0
68 #define NANOPOWER_MAP_MIKROBUS( cfg, mikrobus ) \
69 cfg.en= MIKROBUS( mikrobus, MIKROBUS_CS );
76 #define NANOPOWER_RETVAL uint8_t
78 #define NANOPOWER_OK 0x00
79 #define NANOPOWER_INIT_ERROR 0xFF
155 #endif // _NANOPOWER_H_
pin_name_t en
Definition: nanopower.h:105
digital_out_t en
Definition: nanopower.h:95
Click ctx object definition.
Definition: nanopower.h:93
NANOPOWER_RETVAL nanopower_init(nanopower_t *ctx, nanopower_cfg_t *cfg)
Initialization function.
void nanopw_enable_device(nanopower_t *ctx, const uint8_t state)
Click Enable function.
void nanopower_cfg_setup(nanopower_cfg_t *cfg)
Config Object Initialization function.
#define NANOPOWER_RETVAL
Definition: nanopower.h:76
Click configuration structure definition.
Definition: nanopower.h:103