magneticrotary4 2.0.0.0
|
This file contains API for Magnetic Rotary 4 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 | magneticrotary4_t |
Magnetic Rotary 4 Click context object. More... | |
struct | magneticrotary4_cfg_t |
Magnetic Rotary 4 Click configuration object. More... | |
Enumerations | |
enum | magneticrotary4_return_value_t { MAGNETICROTARY4_OK = 0 , MAGNETICROTARY4_ERROR = -1 } |
Magnetic Rotary 4 Click return value data. More... | |
Functions | |
void | magneticrotary4_cfg_setup (magneticrotary4_cfg_t *cfg) |
Magnetic Rotary 4 configuration object setup function. | |
err_t | magneticrotary4_init (magneticrotary4_t *ctx, magneticrotary4_cfg_t *cfg) |
Magnetic Rotary 4 initialization function. | |
err_t | magneticrotary4_write_register (magneticrotary4_t *ctx, uint16_t reg, uint16_t data_in) |
Magnetic Rotary 4 write register function. | |
err_t | magneticrotary4_read_register (magneticrotary4_t *ctx, uint16_t reg, uint16_t *data_out) |
Magnetic Rotary 4 read register function. | |
err_t | magneticrotary4_get_angle (magneticrotary4_t *ctx, float *angle) |
Magnetic Rotary 4 get angle function. | |
err_t | magneticrotary4_calibrate_zero_position (magneticrotary4_t *ctx) |
Magnetic Rotary 4 calibrate zero position function. | |
err_t | magneticrotary4_set_rotation_direction (magneticrotary4_t *ctx, uint8_t direction) |
Magnetic Rotary 4 set rotation direction function. | |
This file contains API for Magnetic Rotary 4 Click Driver.