nanopower2  2.0.0.0
Data Structures | Macros | Functions
nanopower2.h File Reference

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

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

Go to the source code of this file.

Data Structures

struct  nanopower2_t
 Click ctx object definition. More...
 
struct  nanopower2_cfg_t
 Click configuration structure definition. More...
 

Macros

#define NANOPOWER2_MAP_MIKROBUS(cfg, mikrobus)   cfg.out= MIKROBUS( mikrobus, MIKROBUS_INT )
 
#define NANOPOWER2_RETVAL   uint8_t
 
#define NANOPOWER2_OK   0x00
 
#define NANOPOWER2_INIT_ERROR   0xFF
 

Functions

void nanopower2_cfg_setup (nanopower2_cfg_t *cfg)
 Config Object Initialization function. More...
 
NANOPOWER2_RETVAL nanopower2_init (nanopower2_t *ctx, nanopower2_cfg_t *cfg)
 Initialization function. More...
 
NANOPOWER2_RETVAL nanopower2_check_output (nanopower2_t *ctx)
 Click Check Output function. More...
 

Detailed Description

This file contains API for Nano Power 2 Click driver.