magneto14 2.1.0.0
|
This file contains API for Magneto 14 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 | magneto14_t |
Magneto 14 Click context object. More... | |
struct | magneto14_cfg_t |
Magneto 14 Click configuration object. More... | |
Enumerations | |
enum | magneto14_return_value_t { MAGNETO14_OK = 0 , MAGNETO14_ERROR = -1 } |
Magneto 14 Click return value data. More... | |
Functions | |
void | magneto14_cfg_setup (magneto14_cfg_t *cfg) |
Magneto 14 configuration object setup function. | |
err_t | magneto14_init (magneto14_t *ctx, magneto14_cfg_t *cfg) |
Magneto 14 initialization function. | |
err_t | magneto14_default_cfg (magneto14_t *ctx) |
Magneto 14 default configuration function. | |
err_t | magneto14_write_reg (magneto14_t *ctx, uint8_t cmd, uint8_t reg, uint8_t data_in) |
Magneto 14 data writing function. | |
err_t | magneto14_read_reg (magneto14_t *ctx, uint8_t cmd, uint8_t reg, uint8_t *data_out) |
Magneto 14 data reading function. | |
err_t | magneto14_get_angle_raw_data (magneto14_t *ctx, uint16_t *raw_data) |
Magneto 14 gets the angle raw data function. | |
err_t | magneto14_get_angle (magneto14_t *ctx, float *angle) |
Magneto 14 gets the angular position function. | |
err_t | magneto14_set_mag_field_thd (magneto14_t *ctx, uint8_t mglt, uint8_t mght) |
Magneto 14 sets the magnetic field threshold function. | |
err_t | magneto14_get_field_strength (magneto14_t *ctx, uint8_t *field_strength) |
Magneto 14 gets the magnetic field strength function. | |
void | magneto14_set_pwm_pin (magneto14_t *ctx, uint8_t pwm_state) |
Magneto 14 set PWM pin function. | |
uint8_t | magneto14_get_mgh (magneto14_t *ctx) |
Magneto 14 gets the MGH function. | |
This file contains API for Magneto 14 Click Driver.