c3dhall3 2.0.0.0
|
This file contains API for 3D Hall 3 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 | c3dhall3_s |
Click ctx object definition. More... | |
struct | c3dhall3_cfg_t |
Click configuration structure definition. More... | |
Typedefs | |
typedef uint8_t | c3dhall3_select_t |
Communication type. | |
typedef void(* | c3dhall3_master_io_t) (struct c3dhall3_s *, uint8_t, uint8_t *, uint8_t) |
Master Input/Output type. | |
typedef struct c3dhall3_s | c3dhall3_t |
Click ctx object definition. | |
Functions | |
void | c3dhall3_cfg_setup (c3dhall3_cfg_t *cfg) |
Config Object Initialization function. | |
C3DHALL3_RETVAL | c3dhall3_init (c3dhall3_t *ctx, c3dhall3_cfg_t *cfg) |
Initialization function. | |
void | c3dhall3_default_cfg (c3dhall3_t *ctx) |
Click Default Configuration function. | |
void | c3dhall3_generic_write (c3dhall3_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | c3dhall3_generic_read (c3dhall3_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
uint8_t | c3dhall3_read_status (c3dhall3_t *ctx) |
Read status register. | |
int16_t | c3dhall3_read_x (c3dhall3_t *ctx) |
Read X value. | |
int16_t | c3dhall3_read_y (c3dhall3_t *ctx) |
Read Y value. | |
int16_t | c3dhall3_read_z (c3dhall3_t *ctx) |
Read Z value. | |
void | c3dhall3_read_xyz (c3dhall3_t *ctx, int16_t *out_xyz) |
Read XYZ value. | |
void | c3dhall3_write_offset (c3dhall3_t *ctx, uint8_t axis, uint16_t offset) |
Write offset value. | |
uint8_t | c3dhall3_read_interrupt_source (c3dhall3_t *ctx) |
Read interrupt source. | |
void | c3dhall3_interrupt_threshold (c3dhall3_t *ctx, uint16_t threshold) |
Set Interrupt Threshold. | |
uint8_t | c3dhall3_check_int_pin (c3dhall3_t *ctx) |
Check status of the int pin. | |
This file contains API for 3D Hall 3 Click driver.