piezoaccel 2.0.0.0
|
This file contains API for Piezo Accel Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
#include "drv_analog_in.h"
Go to the source code of this file.
Data Structures | |
struct | piezoaccel_t |
Piezo Accel Click context object. More... | |
struct | piezoaccel_cfg_t |
Piezo Accel Click configuration object. More... | |
struct | piezoaccel_setup_t |
Piezo Accel Click Configuration setup structure. More... | |
Macros | |
#define | PIEZOACCEL_MEAS_MODE_AN_PIN 0x00 |
Piezo Accel measurement mode. | |
#define | PIEZOACCEL_MEAS_MODE_ADC 0x01 |
#define | PIEZOACCEL_SENSOR_VOLTAGE_5V 0x00 |
Piezo Accel sensor voltage mode. | |
#define | PIEZOACCEL_SENSOR_VOLTAGE_3V3 0x01 |
#define | PIEZOACCEL_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. | |
Functions | |
void | piezoaccel_cfg_setup (piezoaccel_cfg_t *cfg) |
Piezo Accel configuration object setup function. | |
err_t | piezoaccel_init (piezoaccel_t *ctx, piezoaccel_cfg_t *cfg) |
Piezo Accel initialization function. | |
void | piezoaccel_default_cfg (piezoaccel_t *ctx, piezoaccel_setup_t *setup_cfg_data) |
Piezo Accel default configuration function. | |
uint16_t | piezoaccel_adc_raw_read (piezoaccel_t *ctx) |
Piezo Accel read raw adc function. | |
float | piezoaccel_adc_voltage_read (piezoaccel_t *ctx) |
Piezo Accel read adc converted to voltage function. | |
err_t | piezoaccel_read_an_pin_value (piezoaccel_t *ctx, uint16_t *data_out) |
Piezo Accel read AN pin value function. | |
err_t | piezoaccel_read_an_pin_voltage (piezoaccel_t *ctx, float *data_out) |
Piezo Accel read AN pin voltage level function. | |
float | piezoaccel_g_unit_read (piezoaccel_t *ctx, piezoaccel_setup_t *cfg_data) |
Piezo Accel read force of acceleration function. | |
void | piezoaccel_calibration (piezoaccel_t *ctx, piezoaccel_setup_t *cfg_data) |
Piezo Accel calibration function. | |
This file contains API for Piezo Accel Click Driver.