c3dhall2 2.0.0.0
|
Functions | |
void | c3dhall2_cfg_setup (c3dhall2_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | c3dhall2_init (c3dhall2_t *ctx, c3dhall2_cfg_t *cfg) |
Initialization function. | |
err_t | c3dhall2_default_cfg (c3dhall2_t *ctx) |
Default configuration initialization function. | |
err_t | c3dhall2_write_data (c3dhall2_t *ctx, uint8_t *data_buf, uint16_t len) |
Generic write function. | |
err_t | c3dhall2_read_data (c3dhall2_t *ctx, uint8_t *data_buf, uint16_t len) |
Generic read function. | |
err_t | c3dhall2_get_axis_temp_data (c3dhall2_t *ctx, float *axis_data, float *temp_data) |
Functions for getting Hall axis data and Temperature data. | |
err_t | c3dhall2_configuration (c3dhall2_t *ctx, uint8_t settings1, uint8_t settings2) |
Functions for settings chip for measurement. | |
void c3dhall2_cfg_setup | ( | c3dhall2_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
err_t c3dhall2_configuration | ( | c3dhall2_t * | ctx, |
uint8_t | settings1, | ||
uint8_t | settings2 ) |
Functions for settings chip for measurement.
ctx | Click object |
settings1 | Mode 1 register settings |
settings2 | Mode 2 register settings |
@description This function configures the chip for measurement.
Options for settings: Mode 1 : Slave address (0,1, 2 or 3) Interrupt (Enable or Disable) Fast mode (Enable or Disable) Low power mode (Enable or Disable) Mode 2 : Temperature (Enable or Disable) Low power period (100ms or 12ms) Parity test (Enable or Disable) *
err_t c3dhall2_default_cfg | ( | c3dhall2_t * | ctx | ) |
Default configuration initialization function.
ctx | Click object. |
@description This function initializes default configuration.
err_t c3dhall2_get_axis_temp_data | ( | c3dhall2_t * | ctx, |
float * | axis_data, | ||
float * | temp_data ) |
Functions for getting Hall axis data and Temperature data.
ctx | Click object. |
axis_data | Hall axis data in mT - (axisData[0] - X axis, axisData[1] - Y axis, axisData[2] - Z axis) |
temp_data | Temperature data in C |
@description This function gets temperature and axis data.
err_t c3dhall2_init | ( | c3dhall2_t * | ctx, |
c3dhall2_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.
err_t c3dhall2_read_data | ( | c3dhall2_t * | ctx, |
uint8_t * | data_buf, | ||
uint16_t | len ) |
Generic read function.
ctx | Click object. |
data_buf | Output data buf |
len | Number of the bytes to be read |
@description This function reads data from register.
err_t c3dhall2_write_data | ( | c3dhall2_t * | ctx, |
uint8_t * | data_buf, | ||
uint16_t | len ) |
Generic write function.
ctx | Click object. |
data_buf | Data buf to be written. |
len | Number of the bytes in data buf. |
@description This function writes data to register.