compass3 2.0.0.0
|
This file contains API for Compass 3 Click driver. More...
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | compass3_t |
Click ctx object definition. More... | |
struct | compass3_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | compass3_cfg_setup (compass3_cfg_t *cfg) |
Config Object Initialization function. | |
COMPASS3_RETVAL | compass3_init (compass3_t *ctx, compass3_cfg_t *cfg) |
Initialization function. | |
void | compass3_default_cfg (compass3_t *ctx) |
Click Default Configuration function. | |
void | compass3_generic_write (compass3_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | compass3_generic_read (compass3_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | compass3_full_measurement (compass3_t *ctx, float *x_val, float *y_val, float *z_val) |
Full measurement function. | |
float | compass3_read_temp (compass3_t *ctx) |
Read temperature function. | |
uint8_t | compass3_check_int (compass3_t *ctx) |
Check interrupt function. | |
This file contains API for Compass 3 Click driver.