amrangle2 2.1.0.0
|
This file contains API for AMR Angle 2 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
#include "spi_specifics.h"
#include "drv_analog_in.h"
Go to the source code of this file.
Data Structures | |
struct | amrangle2_t |
AMR Angle 2 Click context object. More... | |
struct | amrangle2_cfg_t |
AMR Angle 2 Click configuration object. More... | |
Enumerations | |
enum | amrangle2_return_value_t { AMRANGLE2_OK = 0 , AMRANGLE2_ERROR = -1 } |
AMR Angle 2 Click return value data. More... | |
Functions | |
void | amrangle2_cfg_setup (amrangle2_cfg_t *cfg) |
AMR Angle 2 configuration object setup function. | |
err_t | amrangle2_init (amrangle2_t *ctx, amrangle2_cfg_t *cfg) |
AMR Angle 2 initialization function. | |
err_t | amrangle2_default_cfg (amrangle2_t *ctx) |
AMR Angle 2 default configuration function. | |
err_t | amrangle2_spi_transfer (amrangle2_t *ctx, uint16_t data_in) |
AMR Angle 2 spi transfer function. | |
err_t | amrangle2_read_an_pin_value (amrangle2_t *ctx, uint16_t *data_out) |
AMR Angle 2 read AN pin value function. | |
err_t | amrangle2_read_an_pin_voltage (amrangle2_t *ctx, float *data_out) |
AMR Angle 2 read AN pin voltage level function. | |
err_t | amrangle2_calibrate_temperature (amrangle2_t *ctx) |
AMR Angle 2 calibrate temperature function. | |
err_t | amrangle2_read_temperature (amrangle2_t *ctx, float *temperature) |
AMR Angle 2 read temperature function. | |
err_t | amrangle2_read_vsin_vcos (amrangle2_t *ctx, float *vsin, float *vcos) |
AMR Angle 2 read vsin vcos function. | |
err_t | amrangle2_read_angle (amrangle2_t *ctx, float *angle) |
AMR Angle 2 read angle function. | |
void | amrangle2_set_cst_pin (amrangle2_t *ctx, uint8_t state) |
AMR Angle 2 set cst pin function. | |
uint8_t | amrangle2_get_eoc_pin (amrangle2_t *ctx) |
AMR Angle 2 get eoc pin function. | |
void | amrangle2_start_conversion (amrangle2_t *ctx) |
AMR Angle 2 start conversion function. | |
This file contains API for AMR Angle 2 Click Driver.