c3dhall5 2.0.0.0
|
This file contains API for 3D Hall 5 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 | c3dhall5_s |
Click ctx object definition. More... | |
struct | c3dhall5_cfg_t |
Click configuration structure definition. More... | |
Typedefs | |
typedef uint8_t | c3dhall5_select_t |
Communication type. | |
typedef void(* | c3dhall5_master_io_t) (struct c3dhall5_s *, uint8_t, uint8_t *, uint8_t) |
Master Input/Output type. | |
typedef struct c3dhall5_s | c3dhall5_t |
Click ctx object definition. | |
Functions | |
void | c3dhall5_cfg_setup (c3dhall5_cfg_t *cfg) |
Config Object Initialization function. | |
C3DHALL5_RETVAL | c3dhall5_init (c3dhall5_t *ctx, c3dhall5_cfg_t *cfg) |
Initialization function. | |
void | c3dhall5_default_cfg (c3dhall5_t *ctx) |
Click Default Configuration function. | |
void | c3dhall5_generic_write (c3dhall5_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | c3dhall5_generic_read (c3dhall5_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
uint8_t | c3dhall5_get_device_id (c3dhall5_t *ctx) |
Device ID. | |
float | c3dhall5_get_temperature_data (c3dhall5_t *ctx) |
Temperature data. | |
uint8_t | c3dhall5_get_interrupt_state (c3dhall5_t *ctx) |
Interrupt state. | |
void | c3dhall5_set_offset (c3dhall5_t *ctx, uint8_t offset_axis, int16_t offset) |
Set offest. | |
int16_t | c3dhall5_get_axis_data (c3dhall5_t *ctx, uint8_t axis) |
Axis data. | |
This file contains API for 3D Hall 5 Click driver.