angle4 2.0.0.0
|
This file contains API for Angle 4 Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
Go to the source code of this file.
Data Structures | |
struct | angle4_t |
Click ctx object definition. More... | |
struct | angle4_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | angle4_cfg_setup (angle4_cfg_t *cfg) |
Config Object Initialization function. | |
ANGLE4_RETVAL | angle4_init (angle4_t *ctx, angle4_cfg_t *cfg) |
Initialization function. | |
void | angle4_default_cfg (angle4_t *ctx, uint8_t dir, uint8_t data_resolution) |
Click Default Configuration function. | |
void | angle4_generic_transfer (angle4_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. | |
void | angle4_write_byte (angle4_t *ctx, uint8_t addr, uint8_t w_data) |
One byte write function. | |
uint8_t | angle4_read_byte (angle4_t *ctx, uint8_t addr) |
One byte read function. | |
void | angle4_start_mesuremenet (angle4_t *ctx) |
Start meaasurement function. | |
uint8_t | angle4_get_new_angle (angle4_t *ctx, uint16_t *data_out) |
Functions for reading Angle. | |
This file contains API for Angle 4 Click driver.