mic 2.0.0.0
mic.h File Reference

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

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

Go to the source code of this file.

Data Structures

struct  mic_t
 Click ctx object definition. More...
 
struct  mic_cfg_t
 Click configuration structure definition. More...
 

Macros

#define MIC_MAP_MIKROBUS(cfg, mikrobus)    cfg.an_pin = MIKROBUS( mikrobus, MIKROBUS_AN )
 
#define MIC_RETVAL   uint8_t
 
#define MIC_OK   0x00
 
#define MIC_INIT_ERROR   0xFF
 

Typedefs

typedef uint16_t mic_data_t
 Analog data type.
 

Functions

void mic_cfg_setup (mic_cfg_t *cfg)
 Config Object Initialization function.
 
MIC_RETVAL mic_init (mic_t *ctx, mic_cfg_t *cfg)
 Initialization function.
 
void mic_default_cfg (mic_t *ctx)
 Click Default Configuration function.
 
mic_data_t mic_generic_read (mic_t *ctx)
 Generic read function.
 

Detailed Description

This file contains API for Mic Click driver.