c3dhall7 2.0.0.0
|
This file contains API for 3D Hall 7 Click driver. More...
#include "drv_digital_out.h"
#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 | c3dhall7_s |
Click ctx object definition. More... | |
struct | c3dhall7_cfg_t |
Click configuration structure definition. More... | |
struct | c3dhall7_status_t |
struct | c3dhall7_axis_t |
struct | c3dhall7_dev_info_t |
struct | c3dhall7_int_state_t |
Typedefs | |
typedef uint8_t | c3dhall7_select_t |
Communication type. | |
typedef void(* | c3dhall7_master_io_t) (struct c3dhall7_s *, uint8_t, uint8_t *, uint8_t) |
Master Input/Output type. | |
typedef struct c3dhall7_s | c3dhall7_t |
Click ctx object definition. | |
Functions | |
void | c3dhall7_cfg_setup (c3dhall7_cfg_t *cfg) |
Config Object Initialization function. | |
C3DHALL7_RETVAL | c3dhall7_init (c3dhall7_t *ctx, c3dhall7_cfg_t *cfg) |
Initialization function. | |
void | c3dhall7_default_cfg (c3dhall7_t *ctx) |
Click Default Configuration function. | |
void | c3dhall7_generic_write (c3dhall7_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | c3dhall7_generic_read (c3dhall7_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | c3dhall7_device_reset (c3dhall7_t *ctx) |
Hardware device reset. | |
void | c3dhall7_get_axis_data (c3dhall7_t *ctx, c3dhall7_axis_t *axis) |
Get Axis data function. | |
void | c3dhall7_software_reset (c3dhall7_t *ctx) |
Software device reset. | |
void | c3dhall7_configuration (c3dhall7_t *ctx, uint8_t reg, uint16_t data_in) |
Configuration function (for ctrl register). | |
void | c3dhall7_device_info (c3dhall7_t *ctx, c3dhall7_dev_info_t *info) |
Device info function. | |
void | c3dhall7_get_status (c3dhall7_t *ctx, c3dhall7_status_t *status) |
Measurement status function. | |
void | c3dhall7_get_interrupt_state (c3dhall7_t *ctx, c3dhall7_int_state_t *state) |
Interrupt state function. | |
This file contains API for 3D Hall 7 Click driver.