angle 2.0.0.0
|
Topics | |
Macros | |
Types | |
Functions | |
void | angle_cfg_setup (angle_cfg_t *cfg) |
Config Object Initialization function. | |
ANGLE_RETVAL | angle_init (angle_t *ctx, angle_cfg_t *cfg) |
Initialization function. | |
void | angle_default_cfg (angle_t *ctx) |
Click Default Configuration function. | |
void | angle_generic_write (angle_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | angle_generic_read (angle_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
uint16_t | angle_get_angle (angle_t *ctx) |
Read angle. | |
uint16_t | angle_get_temperature (angle_t *ctx) |
Read temperature. | |
uint16_t | angle_get_magnetics (angle_t *ctx) |
Read magnetics. | |
uint16_t | angle_get_status (angle_t *ctx, uint8_t reg) |
Read angle status. | |
void | angle_set_config (angle_t *ctx, uint16_t set_value) |
Setting angle configuration. | |
void angle_cfg_setup | ( | angle_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void angle_default_cfg | ( | angle_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for Angle click.
void angle_generic_read | ( | angle_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic read function.
ctx | Click object. |
reg | Register address. |
data_buf | Output data buf. |
len | Number of the bytes to be read. |
@description This function reads data from the desired register.
void angle_generic_write | ( | angle_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic write function.
ctx | Click object. |
reg | Register address. |
data_buf | Data buf to be written. |
len | Number of the bytes in data buf. |
@description This function writes data to the desired register.
uint16_t angle_get_angle | ( | angle_t * | ctx | ) |
Read angle.
ctx | Click object. |
@description This function reads angle value.
uint16_t angle_get_magnetics | ( | angle_t * | ctx | ) |
Read magnetics.
ctx | Click object. |
@description This function reads magnetics value.
uint16_t angle_get_status | ( | angle_t * | ctx, |
uint8_t | reg ) |
Read angle status.
ctx | Click object. |
@description This function reads the angle status.
uint16_t angle_get_temperature | ( | angle_t * | ctx | ) |
Read temperature.
ctx | Click object. |
ANGLE_RETVAL angle_init | ( | angle_t * | ctx, |
angle_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void angle_set_config | ( | angle_t * | ctx, |
uint16_t | set_value ) |
Setting angle configuration.
ctx | Click object. |
set_value | Configuration value. |
@description This function sets desired configuration.