magneticrotary5 2.1.0.0
|
This file contains API for Magnetic Rotary 5 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_analog_in.h"
Go to the source code of this file.
Data Structures | |
struct | magneticrotary5_t |
Magnetic Rotary 5 Click context object. More... | |
struct | magneticrotary5_cfg_t |
Magnetic Rotary 5 Click configuration object. More... | |
Enumerations | |
enum | magneticrotary5_return_value_t { MAGNETICROTARY5_OK = 0 , MAGNETICROTARY5_ERROR = -1 } |
Magnetic Rotary 5 Click return value data. More... | |
Functions | |
void | magneticrotary5_cfg_setup (magneticrotary5_cfg_t *cfg) |
Magnetic Rotary 5 configuration object setup function. | |
err_t | magneticrotary5_init (magneticrotary5_t *ctx, magneticrotary5_cfg_t *cfg) |
Magnetic Rotary 5 initialization function. | |
err_t | magneticrotary5_default_cfg (magneticrotary5_t *ctx) |
Magnetic Rotary 5 default configuration function. | |
err_t | magneticrotary5_write_cmd (magneticrotary5_t *ctx, uint8_t cmd, uint8_t *data_in, uint8_t len) |
Magnetic Rotary 5 write cmd function. | |
err_t | magneticrotary5_read_cmd (magneticrotary5_t *ctx, uint8_t cmd, uint8_t *data_out, uint8_t len) |
Magnetic Rotary 5 read cmd function. | |
err_t | magneticrotary5_read_angle (magneticrotary5_t *ctx, uint8_t *agc, uint16_t *angle) |
Magnetic Rotary 5 read angle function. | |
err_t | magneticrotary5_read_mt_cnt (magneticrotary5_t *ctx, int16_t *mt_cnt) |
Magnetic Rotary 5 read multi turn counter function. | |
err_t | magneticrotary5_set_mt_cnt (magneticrotary5_t *ctx, int16_t mt_cnt) |
Magnetic Rotary 5 set multi turn counter function. | |
err_t | magneticrotary5_read_raw_adc (magneticrotary5_t *ctx, uint16_t *raw_adc) |
Magnetic Rotary 5 read raw ADC value function. | |
err_t | magneticrotary5_read_voltage (magneticrotary5_t *ctx, float *voltage) |
Magnetic Rotary 5 read voltage level function. | |
err_t | magneticrotary5_set_vref (magneticrotary5_t *ctx, float vref) |
Magnetic Rotary 5 set vref function. | |
This file contains API for Magnetic Rotary 5 Click Driver.