magneto13 2.1.0.0
|
This file contains API for Magneto 13 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
#include "spi_specifics.h"
Go to the source code of this file.
Data Structures | |
struct | magneto13_t |
Magneto 13 Click context object. More... | |
struct | magneto13_cfg_t |
Magneto 13 Click configuration object. More... | |
Enumerations | |
enum | magneto13_return_value_t { MAGNETO13_OK = 0 , MAGNETO13_ERROR = -1 } |
Magneto 13 Click return value data. More... | |
Functions | |
void | magneto13_cfg_setup (magneto13_cfg_t *cfg) |
Magneto 13 configuration object setup function. | |
err_t | magneto13_init (magneto13_t *ctx, magneto13_cfg_t *cfg) |
Magneto 13 initialization function. | |
err_t | magneto13_default_cfg (magneto13_t *ctx) |
Magneto 13 default configuration function. | |
err_t | magneto13_write_reg (magneto13_t *ctx, uint8_t cmd, uint8_t reg, uint8_t data_in) |
Magneto 13 data writing function. | |
err_t | magneto13_read_reg (magneto13_t *ctx, uint8_t cmd, uint8_t reg, uint8_t *data_out) |
Magneto 13 data reading function. | |
err_t | magneto13_get_angle_raw_data (magneto13_t *ctx, uint16_t *raw_data) |
Magneto 13 gets the angle raw data function. | |
err_t | magneto13_get_angle (magneto13_t *ctx, float *angle) |
Magneto 13 gets the angular position function. | |
err_t | magneto13_set_mag_field_thd (magneto13_t *ctx, uint8_t mglt, uint8_t mght) |
Magneto 13 sets the magnetic field threshold function. | |
err_t | magneto13_enable_fld_thd_det (magneto13_t *ctx) |
Magneto 13 enables the magnetic field threshold detection function. | |
err_t | magneto13_get_field_strength (magneto13_t *ctx, uint8_t *field_strength) |
Magneto 13 gets the magnetic field strength function. | |
uint8_t | magneto13_get_error_flag (magneto13_t *ctx) |
Magneto 13 gets the error flag function. | |
uint8_t | magneto13_get_nvm_access_state (magneto13_t *ctx) |
Magneto 13 checks the access to the NVM function. | |
uint8_t | magneto13_get_interrupt (magneto13_t *ctx) |
Magneto 13 gets the interrupt on the angle change state function. | |
This file contains API for Magneto 13 Click Driver.