microwave 2.0.0.0
microwave.h File Reference

This file contains API for Microwave Click driver. More...

#include "drv_analog_in.h"

Go to the source code of this file.

Data Structures

struct  microwave_t
 Click context object definition. More...
 
struct  microwave_cfg_t
 Click configuration structure definition. More...
 

Macros

#define MICROWAVE_SAMPLES_COUNT_50   50
 
#define MICROWAVE_SAMPLES_COUNT_100   100
 
#define MICROWAVE_SAMPLES_COUNT_200   200
 
#define MICROWAVE_THRESHOLD_10   10
 
#define MICROWAVE_THRESHOLD_25   25
 
#define MICROWAVE_THRESHOLD_50   50
 
#define MICROWAVE_THRESHOLD_100   100
 
#define MICROWAVE_THRESHOLD_200   200
 
#define MICROWAVE_THRESHOLD_500   500
 
#define MICROWAVE_MAP_MIKROBUS(cfg, mikrobus)    cfg.out = MIKROBUS( mikrobus, MIKROBUS_AN )
 

Typedefs

typedef uint16_t microwave_data_t
 Analog data type.
 

Enumerations

enum  microwave_err_t { MICROWAVE_OK = 0x0 , MICROWAVE_ERR_INIT_ADC = 0xFF }
 Click code error definition. More...
 

Functions

void microwave_cfg_setup (microwave_cfg_t *cfg)
 Configuration Object Setup function.
 
microwave_err_t microwave_init (microwave_t *ctx, microwave_cfg_t *cfg)
 Click Initialization function.
 
microwave_data_t microwave_generic_read (microwave_t *ctx)
 Generic ADC Read function.
 

Detailed Description

This file contains API for Microwave Click driver.