mic2
2.0.0.0
|
This file contains API for MIC 2 Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_analog_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | mic2_t |
Click ctx object definition. More... | |
struct | mic2_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | MIC2_MAP_MIKROBUS(cfg, mikrobus) |
#define | MIC2_RETVAL uint8_t |
#define | MIC2_OK 0x00 |
#define | MIC2_INIT_ERROR 0xFF |
#define | MIC2_DEVICE_SLAVE_ADDRESS 0x2C |
Typedefs | |
typedef uint16_t | mic2_data_t |
Analog data type. More... | |
Functions | |
void | mic2_cfg_setup (mic2_cfg_t *cfg) |
Config Object Initialization function. More... | |
MIC2_RETVAL | mic2_init (mic2_t *ctx, mic2_cfg_t *cfg) |
Initialization function. More... | |
void | mic2_generic_write (mic2_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Click Default Configuration function. More... | |
void | mic2_set_potentiometer (mic2_t *ctx, uint8_t ptt_value) |
Set potenciometer value. More... | |
mic2_data_t | mic2_generic_read (mic2_t *ctx) |
Generic read function. More... | |
This file contains API for MIC 2 Click driver.