Go to the documentation of this file.
38 #include "mikrosdk_version.h"
41 #if mikroSDK_GET_VERSION < 20800ul
42 #include "rcu_delays.h"
48 #include "drv_digital_out.h"
49 #include "drv_digital_in.h"
57 #define NANOPW_ENABLE_DEVICE 1
58 #define NANOPW_DISABLE_DEVICE 0
64 #define NANOPOWER_MAP_MIKROBUS( cfg, mikrobus ) \
65 cfg.en= MIKROBUS( mikrobus, MIKROBUS_CS );
72 #define NANOPOWER_RETVAL uint8_t
74 #define NANOPOWER_OK 0x00
75 #define NANOPOWER_INIT_ERROR 0xFF
151 #endif // _NANOPOWER_H_
pin_name_t en
Definition: nanopower.h:101
digital_out_t en
Definition: nanopower.h:91
Click ctx object definition.
Definition: nanopower.h:89
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:72
Click configuration structure definition.
Definition: nanopower.h:99