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_OK 0 |
#define | MIC2_ERROR -1 |
#define | MIC2_DEVICE_SLAVE_ADDRESS 0x2C |
Typedefs | |
typedef uint16_t | mic2_data_t |
Analog data type. | |
Functions | |
void | mic2_cfg_setup (mic2_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | mic2_init (mic2_t *ctx, mic2_cfg_t *cfg) |
Initialization function. | |
void | mic2_generic_write (mic2_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Click Default Configuration function. | |
void | mic2_set_potentiometer (mic2_t *ctx, uint8_t ptt_value) |
Set potentiometer value. | |
err_t | mic2_read_an_pin_value (mic2_t *ctx, uint16_t *data_out) |
MIC 2 read AN pin value function. | |
err_t | mic2_read_an_pin_voltage (mic2_t *ctx, float *data_out) |
MIC 2 read AN pin voltage level function. | |
This file contains API for MIC 2 Click driver.