compass6 2.0.0.0
|
This file contains API for Compass 6 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | compass6_t |
Compass 6 Click context object. More... | |
struct | compass6_cfg_t |
Compass 6 Click configuration object. More... | |
struct | compass6_axes_t |
Compass 6 Click axes data. More... | |
Enumerations | |
enum | compass6_return_value_t { COMPASS6_OK = 0 , COMPASS6_ERROR = -1 } |
Compass 6 Click return value data. More... | |
Functions | |
void | compass6_cfg_setup (compass6_cfg_t *cfg) |
Compass 6 configuration object setup function. | |
err_t | compass6_init (compass6_t *ctx, compass6_cfg_t *cfg) |
Compass 6 initialization function. | |
err_t | compass6_default_cfg (compass6_t *ctx) |
Compass 6 default configuration function. | |
err_t | compass6_generic_write (compass6_t *ctx, uint8_t reg, uint8_t tx_data) |
Compass 6 I2C writing function. | |
err_t | compass6_generic_read (compass6_t *ctx, uint8_t reg, uint8_t *rx_data) |
Compass 6 I2C reading function. | |
uint8_t | compass6_data_ready (compass6_t *ctx) |
Get data ready pin state. | |
err_t | compass6_get_axes_data (compass6_t *ctx, compass6_axes_t *axes_data) |
Magnetic axes data reading. | |
This file contains API for Compass 6 Click Driver.