nanopower 2.0.0.0
nanopower.h File Reference

This file contains API for Nano Power Click driver. More...

#include "drv_digital_out.h"
#include "drv_digital_in.h"

Go to the source code of this file.

Data Structures

struct  nanopower_t
 Click ctx object definition. More...
 
struct  nanopower_cfg_t
 Click configuration structure definition. More...
 

Macros

#define NANOPW_ENABLE_DEVICE   1
 
#define NANOPW_DISABLE_DEVICE   0
 
#define NANOPOWER_MAP_MIKROBUS(cfg, mikrobus)    cfg.en= MIKROBUS( mikrobus, MIKROBUS_CS );
 
#define NANOPOWER_RETVAL   uint8_t
 
#define NANOPOWER_OK   0x00
 
#define NANOPOWER_INIT_ERROR   0xFF
 

Functions

void nanopower_cfg_setup (nanopower_cfg_t *cfg)
 Config Object Initialization function.
 
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.
 

Detailed Description

This file contains API for Nano Power Click driver.