magneticrotary6 2.0.0.0
|
This file contains API for Magnetic Rotary 6 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 | magneticrotary6_t |
Magnetic Rotary 6 Click context object. More... | |
struct | magneticrotary6_cfg_t |
Magnetic Rotary 6 Click configuration object. More... | |
Enumerations | |
enum | magneticrotary6_return_value_t { MAGNETICROTARY6_OK = 0 , MAGNETICROTARY6_ERROR = -1 } |
Magnetic Rotary 6 Click return value data. More... | |
Functions | |
void | magneticrotary6_cfg_setup (magneticrotary6_cfg_t *cfg) |
Magnetic Rotary 6 configuration object setup function. | |
err_t | magneticrotary6_init (magneticrotary6_t *ctx, magneticrotary6_cfg_t *cfg) |
Magnetic Rotary 6 initialization function. | |
err_t | magneticrotary6_default_cfg (magneticrotary6_t *ctx) |
Magnetic Rotary 6 default configuration function. | |
err_t | magneticrotary6_write_register (magneticrotary6_t *ctx, uint8_t die_sel, uint16_t reg, uint16_t data_in) |
Magnetic Rotary 6 write register function. | |
err_t | magneticrotary6_read_register (magneticrotary6_t *ctx, uint8_t die_sel, uint16_t reg, uint16_t *data_out) |
Magnetic Rotary 6 read register b function. | |
err_t | magneticrotary6_get_angle (magneticrotary6_t *ctx, uint8_t die_sel, float *angle) |
Magnetic Rotary 6 get angle function. | |
err_t | magneticrotary6_set_direction (magneticrotary6_t *ctx, uint8_t die_sel, uint8_t dir) |
Magnetic Rotary 6 set direction function. | |
This file contains API for Magnetic Rotary 6 Click Driver.