magneticrotary2 2.0.0.0
|
This file contains API for Magnetic Rotary 2 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 | magneticrotary2_t |
Magnetic Rotary 2 Click context object. More... | |
struct | magneticrotary2_cfg_t |
Magnetic Rotary 2 Click configuration object. More... | |
Enumerations | |
enum | magneticrotary2_msel_t { MAGNETICROTARY2_MSEL_0 , MAGNETICROTARY2_MSEL_1 } |
Magnetic Rotary 2 Click driver selector. More... | |
enum | magneticrotary2_return_value_t { MAGNETICROTARY2_OK = 0 , MAGNETICROTARY2_ERROR = -1 } |
Magnetic Rotary 2 Click return value data. More... | |
Functions | |
void | magneticrotary2_cfg_setup (magneticrotary2_cfg_t *cfg) |
Magnetic Rotary 2 configuration object setup function. | |
void | magneticrotary2_msel_pin_selection (magneticrotary2_cfg_t *cfg, magneticrotary2_msel_t msel) |
Magnetic Rotary 2 MSEL pin selection function. | |
err_t | magneticrotary2_init (magneticrotary2_t *ctx, magneticrotary2_cfg_t *cfg) |
Magnetic Rotary 2 initialization function. | |
err_t | magneticrotary2_default_cfg (magneticrotary2_t *ctx) |
Magnetic Rotary 2 default configuration function. | |
err_t | magneticrotary2_write_register (magneticrotary2_t *ctx, uint8_t reg, uint8_t data_in) |
Magnetic Rotary 2 write register function. | |
err_t | magneticrotary2_read_register (magneticrotary2_t *ctx, uint8_t reg, uint8_t *data_out) |
Magnetic Rotary 2 read register function. | |
err_t | magneticrotary2_unlock_eeprom (magneticrotary2_t *ctx) |
Magnetic Rotary 2 unlock eeprom function. | |
err_t | magneticrotary2_lock_eeprom (magneticrotary2_t *ctx) |
Magnetic Rotary 2 lock eeprom function. | |
err_t | magneticrotary2_program_eeprom (magneticrotary2_t *ctx) |
Magnetic Rotary 2 program eeprom function. | |
err_t | magneticrotary2_get_raw_data (magneticrotary2_t *ctx, uint32_t *data_out) |
Magnetic Rotary 2 get raw data function. | |
err_t | magneticrotary2_get_angle (magneticrotary2_t *ctx, float *angle) |
Magnetic Rotary 2 get angle function. | |
This file contains API for Magnetic Rotary 2 Click Driver.