geomagnetic 2.0.0.0
|
This file contains API for Geomagnetic Click driver. More...
#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 | geomagnetic_axis_t |
GeoMagnetic axis structure. More... | |
struct | geomagnetic_s |
Click ctx object definition. More... | |
struct | geomagnetic_cfg_t |
Click configuration structure definition. More... | |
Typedefs | |
typedef uint8_t | geomagnetic_select_t |
Communication type. | |
typedef void(* | geomagnetic_master_io_t) (struct geomagnetic_s *, uint8_t, uint8_t *, uint8_t) |
Master Input/Output type. | |
typedef struct geomagnetic_s | geomagnetic_t |
Click ctx object definition. | |
Functions | |
void | geomagnetic_cfg_setup (geomagnetic_cfg_t *cfg) |
Config Object Initialization function. | |
GEOMAGNETIC_RETVAL | geomagnetic_init (geomagnetic_t *ctx, geomagnetic_cfg_t *cfg) |
Initialization function. | |
void | geomagnetic_default_cfg (geomagnetic_t *ctx) |
Click Default Configuration function. | |
void | geomagnetic_generic_write (geomagnetic_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | geomagnetic_generic_read (geomagnetic_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
GEOMAGNETIC_RETVAL | geomagnetic_write_byte (geomagnetic_t *ctx, uint8_t input_data, uint8_t address) |
Write byte function. | |
GEOMAGNETIC_RETVAL | geomagnetic_read_data (geomagnetic_t *ctx, uint8_t *out_buf, uint8_t address, uint8_t len) |
Read data function. | |
uint8_t | geomagnetic_check_ready (geomagnetic_t *ctx) |
Check ready function. | |
void | geomagnetic_read_axis_data (geomagnetic_t *ctx, geomagnetic_axis_t *geomag_axis, uint16_t *resolution_hall) |
Read axis data function. | |
GEOMAGNETIC_RETVAL | geomagnetic_check_interrupt (geomagnetic_t *ctx) |
Check interrupt function. | |
uint8_t | get_interrupt (geomagnetic_t *ctx) |
Get interrupt function. | |
void | geomagnetic_software_reset (geomagnetic_t *ctx) |
Software reset function. | |
void | geomagnetic_power_on_reset (geomagnetic_t *ctx) |
Power ON reset function. | |
This file contains API for Geomagnetic Click driver.