pedometer3
2.0.0.0
|
This file contains API for Pedometer 3 Click driver. More...
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
#include "drv_spi_master.h"
Go to the source code of this file.
Data Structures | |
struct | pedometer3_s |
Click ctx object definition. More... | |
struct | pedometer3_cfg_t |
Click configuration structure definition. More... | |
struct | pedometer3_axis_t |
Axis structure. More... | |
struct | pedometer3_tilt_position_t |
Tilt position structure. More... | |
Typedefs | |
typedef uint8_t | pedometer3_select_t |
Comunication select type. More... | |
typedef void(* | pedometer3_master_io_t) (struct pedometer3_s *, uint8_t, uint8_t *, uint8_t) |
Function pointer for master input/output type. More... | |
typedef struct pedometer3_s | pedometer3_t |
Click ctx object definition. More... | |
Functions | |
void | pedometer3_cfg_setup (pedometer3_cfg_t *cfg) |
Config Object Initialization function. More... | |
PEDOMETER3_RETVAL | pedometer3_init (pedometer3_t *ctx, pedometer3_cfg_t *cfg) |
Initialization function. More... | |
void | pedometer3_default_cfg (pedometer3_t *ctx) |
Click Default Configuration function. More... | |
void | pedometer3_generic_write (pedometer3_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. More... | |
void | pedometer3_generic_read (pedometer3_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. More... | |
void | pedometer3_get_accel_axis (pedometer3_t *ctx, pedometer3_axis_t *axis) |
Functions for read Accel axis data. More... | |
void | pedometer3_get_highpass_accel_axis (pedometer3_t *ctx, pedometer3_axis_t *axis) |
Functions for read High Pass Accel axis data. More... | |
void | pedometer3_set_step_watermark (pedometer3_t *ctx, uint16_t value) |
Functions for sets pedometer step counter Watermark. More... | |
void | pedometer3_pedometer_cfg (pedometer3_t *ctx, uint8_t odr) |
Functions for pedometer configuration. More... | |
uint16_t | pedometer3_get_step_counter (pedometer3_t *ctx) |
Functions for get pedometer step counter. More... | |
void | pedometer3_get_tilt_position (pedometer3_t *ctx, pedometer3_tilt_position_t *tilt) |
Functions for get Tilt current and previous position. More... | |
uint8_t | pedometer3_get_tap_detection (pedometer3_t *ctx) |
Functions for get Tap detection. More... | |
PEDOMETER3_RETVAL | pedometer3_test_communication (pedometer3_t *ctx) |
Functions for test first comunication width chip. More... | |
uint8_t | pedometer3_get_interrupt_1 (pedometer3_t *ctx) |
Functions for read INT pin state. More... | |
uint8_t | pedometer3_get_interrupt_2 (pedometer3_t *ctx) |
Functions for read RST pin state. More... | |
uint8_t | pedometer3_get_trigger_interrupt (pedometer3_t *ctx) |
Functions for read AN pin state. More... | |
This file contains API for Pedometer 3 Click driver.