angle3 2.0.0.0
|
This file contains API for Angle 3 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 | angle3_t |
Click ctx object definition. More... | |
struct | angle3_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | angle3_cfg_setup (angle3_cfg_t *cfg) |
Config Object Initialization function. | |
void | angle3_default_cfg (angle3_t *ctx) |
Default Config Object Initialization function. | |
err_t | angle3_init (angle3_t *ctx, angle3_cfg_t *cfg) |
Initialization function. | |
void | angle3_write_data (angle3_t *ctx, uint8_t opcode, uint8_t reg, uint16_t write_data) |
Generic write function. | |
uint16_t | angle3_read_data (angle3_t *ctx, uint8_t opcode, uint8_t reg) |
Generic read function. | |
void | angle3_write_eeprom (angle3_t *ctx, uint8_t reg_addr, uint16_t write_data) |
Write EEPROM function. | |
uint16_t | angle3_read_eeprom (angle3_t *ctx, uint8_t reg_addr) |
Read EEPROM function. | |
void | angle3_lock_eeprom (angle3_t *ctx) |
EEPROM lock function. | |
void | angle3_write_register (angle3_t *ctx, uint8_t reg_addr, uint16_t write_data) |
Write register function. | |
uint16_t | angle3_read_register (angle3_t *ctx, uint8_t reg_addr) |
Read register function. | |
void | angle3_set_mode (angle3_t *ctx, uint16_t set_mode) |
Set mode function. | |
void | angle3_set_normal_mode (angle3_t *ctx) |
Set normal mode function. | |
void | angle3_set_user_mode (angle3_t *ctx) |
Set user mode function. | |
uint16_t | angle3_read_angle_data (angle3_t *ctx) |
Read angle data function. | |
float | angle3_calculate_degrees (angle3_t *ctx, uint16_t angle) |
Degrees Calculation function. | |
uint8_t | angle3_read_error (angle3_t *ctx) |
Read state of Error INT Pin. | |
This file contains API for Angle 3 Click driver.