accel11 2.0.0.0
|
Functions | |
void | accel11_cfg_setup (accel11_cfg_t *cfg) |
Config Object Initialization function. | |
ACCEL11_RETVAL | accel11_init (accel11_t *ctx, accel11_cfg_t *cfg) |
Initialization function. | |
void | accel11_default_cfg (accel11_t *ctx) |
Click Default Configuration function. | |
void | accel11_generic_write (accel11_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | accel11_generic_read (accel11_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | accel11_write_byte (accel11_t *ctx, uint8_t addr, uint8_t data_in) |
Functions for write one byte in register. | |
uint8_t | accel11_read_byte (accel11_t *ctx, uint8_t addr) |
Functions for read byte from register. | |
uint8_t | accel11_test_comunication (accel11_t *ctx) |
Test comunication function. | |
void | accel11_software_reset (accel11_t *ctx) |
Software reset function. | |
int16_t | accel11_get_axis_data (accel11_t *ctx, uint8_t axis) |
Accel Axis data function. | |
void | accel11_power_on_procedure (accel11_t *ctx) |
Function for power on chip. | |
int8_t | accel11_get_temperature (accel11_t *ctx) |
Function get temperature. | |
void accel11_cfg_setup | ( | accel11_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void accel11_default_cfg | ( | accel11_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for Accel 11 click.
void accel11_generic_read | ( | accel11_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic read 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 reads data from the desired register.
void accel11_generic_write | ( | accel11_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic write function.
ctx | Click object. |
reg | Register address. |
data_buf | Output data buf |
len | Number of the bytes to be read |
@description This function writes data to the desired register.
int16_t accel11_get_axis_data | ( | accel11_t * | ctx, |
uint8_t | axis ) |
Accel Axis data function.
ctx | Click object. |
axis | Accel axis that will be read. |
@description This function reads accel axis.
int8_t accel11_get_temperature | ( | accel11_t * | ctx | ) |
Function get temperature.
ctx | Click object. |
@description This function gets temperature in celsius [C].
ACCEL11_RETVAL accel11_init | ( | accel11_t * | ctx, |
accel11_cfg_t * | cfg ) |
Initialization function.
accel11 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void accel11_power_on_procedure | ( | accel11_t * | ctx | ) |
Function for power on chip.
ctx | Click object. |
@description This function for power on chip.
uint8_t accel11_read_byte | ( | accel11_t * | ctx, |
uint8_t | addr ) |
Functions for read byte from register.
ctx | Click object. |
addr | Register which will be read. |
@description This function reads byte from register.
void accel11_software_reset | ( | accel11_t * | ctx | ) |
Software reset function.
ctx | Click object. |
@description This function reset software.
uint8_t accel11_test_comunication | ( | accel11_t * | ctx | ) |
Test comunication function.
ctx | Click object. |
@description This function test comunication.
void accel11_write_byte | ( | accel11_t * | ctx, |
uint8_t | addr, | ||
uint8_t | data_in ) |
Functions for write one byte in register.
ctx | Click object. |
addr | Register in which the data will be written. |
data_in | Data which be written in the register. |
@description This function writes one byte in register.