38#include "drv_digital_out.h"
39#include "drv_digital_in.h"
47#define NANOPW_ENABLE_DEVICE 1
48#define NANOPW_DISABLE_DEVICE 0
54#define NANOPOWER_MAP_MIKROBUS( cfg, mikrobus ) \
55 cfg.en= MIKROBUS( mikrobus, MIKROBUS_CS );
62#define NANOPOWER_RETVAL uint8_t
64#define NANOPOWER_OK 0x00
65#define NANOPOWER_INIT_ERROR 0xFF
#define NANOPOWER_RETVAL
Definition: nanopower.h:62
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.
Click configuration structure definition.
Definition: nanopower.h:89
pin_name_t en
Definition: nanopower.h:91
Click ctx object definition.
Definition: nanopower.h:79
digital_out_t en
Definition: nanopower.h:81