compass7 2.0.0.0
|
This file contains API for Compass 7 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 | compass7_t |
Compass 7 Click context object. More... | |
struct | compass7_cfg_t |
Compass 7 Click configuration object. More... | |
struct | compass7_magnetic_flux_t |
Compass 7 magnetic flux data object. More... | |
Enumerations | |
enum | compass7_return_value_t { COMPASS7_OK = 0 , COMPASS7_ERROR = -1 } |
Compass 7 Click return value data. More... | |
Functions | |
void | compass7_cfg_setup (compass7_cfg_t *cfg) |
Compass 7 configuration object setup function. | |
err_t | compass7_init (compass7_t *ctx, compass7_cfg_t *cfg) |
Compass 7 initialization function. | |
err_t | compass7_default_cfg (compass7_t *ctx) |
Compass 7 default configuration function. | |
err_t | compass7_generic_write (compass7_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Compass 7 I2C writing function. | |
err_t | compass7_generic_read (compass7_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Compass 7 I2C reading function. | |
err_t | compass7_write_register (compass7_t *ctx, uint8_t reg, uint8_t data_in) |
Compass 7 write register function. | |
err_t | compass7_read_register (compass7_t *ctx, uint8_t reg, uint8_t *data_out) |
Compass 7 read register function. | |
err_t | compass7_check_communication (compass7_t *ctx) |
Compass 7 check communication function. | |
err_t | compass7_soft_reset (compass7_t *ctx) |
Compass 7 soft reset function. | |
err_t | compass7_set_measurement_mode (compass7_t *ctx, uint8_t mode) |
Compass 7 set measurement mode function. | |
err_t | compass7_get_magnetic_flux (compass7_t *ctx, compass7_magnetic_flux_t *flux) |
Compass 7 get magnetic flux function. | |
err_t | compass7_get_temperature (compass7_t *ctx, float *temperature) |
Compass 7 get temperature function. | |
This file contains API for Compass 7 Click Driver.