accel14 2.0.0.0
|
Functions | |
void | accel14_cfg_setup (accel14_cfg_t *cfg) |
Config Object Initialization function. | |
ACCEL14_RETVAL | accel14_init (accel14_t *ctx, accel14_cfg_t *cfg) |
Initialization function. | |
void | accel14_default_cfg (accel14_t *ctx) |
Click Default Configuration function. | |
void | accel14_generic_transfer (accel14_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. | |
void | accel14_generic_write (accel14_t *ctx, uint8_t reg, uint8_t tx_data) |
Generic write function. | |
uint8_t | accel14_generic_read (accel14_t *ctx, uint8_t reg) |
Generic read function. | |
void | accel14_multi_read (accel14_t *ctx, uint8_t reg, uint8_t *p_rx_data, uint8_t n_bytes) |
Generic read sequence function. | |
uint8_t | accel14_check_communication (accel14_t *ctx) |
Check communication function. | |
uint8_t | accel14_check_accel_data_ready (accel14_t *ctx) |
Check accel data ready function. | |
uint8_t | accel14_check_temp_data_ready (accel14_t *ctx) |
Check temperature data ready function. | |
void | accel14_get_data (accel14_t *ctx, accel14_accel_t *accel_data) |
Get Accel data function. | |
float | accel14_get_temperature (accel14_t *ctx) |
Get temperature function. | |
void | accel14_read_accel (accel14_t *ctx, accel14_accel_fs_xl_t *accel_fs) |
Read Accel data function. | |
uint8_t | accel14_check_int1 (accel14_t *ctx) |
Get interrupt 1 ststus function. | |
uint8_t | accel14_check_int2 (accel14_t *ctx) |
Get interrupt 2 ststus function. | |
void accel14_cfg_setup | ( | accel14_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint8_t accel14_check_accel_data_ready | ( | accel14_t * | ctx | ) |
Check accel data ready function.
ctx | Click object. |
- | 0x00 : No set of data is available at temperature sensor output;.
|
@description The function check new set of data is available at accelerometer output of IIS3DWB Ultra-wide bandwidth, low-noise, 3-axis digital vibration sensor on Accel 14 Click board.
uint8_t accel14_check_communication | ( | accel14_t * | ctx | ) |
Check communication function.
ctx | Click object. |
- | 0x00 : Error.
|
@description The function check device ID of IIS3DWB Ultra-wide bandwidth, low-noise, 3-axis digital vibration sensor on Accel 14 Click board.
uint8_t accel14_check_int1 | ( | accel14_t * | ctx | ) |
Get interrupt 1 ststus function.
ctx | Click object. |
@description Function check interrupt 1 state by return state of the INT pin of IIS3DWB Ultra-wide bandwidth, low-noise, 3-axis digital vibration sensor on Accel 14 Click board.
uint8_t accel14_check_int2 | ( | accel14_t * | ctx | ) |
Get interrupt 2 ststus function.
ctx | Click object. |
@description Function check interrupt 2 state by return state of the RST pin of IIS3DWB Ultra-wide bandwidth, low-noise, 3-axis digital vibration sensor on Accel 14 Click board.
uint8_t accel14_check_temp_data_ready | ( | accel14_t * | ctx | ) |
Check temperature data ready function.
ctx | Click object. |
- | 0x00 : No set of data is available at temperature sensor output.
|
@description The function check new set of data is available at temperature output of IIS3DWB Ultra-wide bandwidth, low-noise, 3-axis digital vibration sensor on Accel 14 Click board.
void accel14_default_cfg | ( | accel14_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for Accel 14 click.
uint8_t accel14_generic_read | ( | accel14_t * | ctx, |
uint8_t | reg ) |
Generic read function.
ctx | Click object. |
reg | 8-bit register address. |
@description The function read the the byte of data from the target 8-bit register address of IIS3DWB Ultra-wide bandwidth, low-noise, 3-axis digital vibration sensor on Accel 14 Click board.
void accel14_generic_transfer | ( | accel14_t * | ctx, |
uint8_t * | wr_buf, | ||
uint16_t | wr_len, | ||
uint8_t * | rd_buf, | ||
uint16_t | rd_len ) |
Generic transfer function.
ctx | Click object. |
wr_buf | Write data buffer |
wr_len | Number of byte in write data buffer |
rd_buf | Read data buffer |
rd_len | Number of byte in read data buffer |
@description Generic SPI transfer, for sending and receiving packages
void accel14_generic_write | ( | accel14_t * | ctx, |
uint8_t | reg, | ||
uint8_t | tx_data ) |
Generic write function.
ctx | Click object. |
reg | 8-bit register address. |
tx_data | Byte of data to write. |
@description The function write the byte of data to the target 8-bit register address of IIS3DWB Ultra-wide bandwidth, low-noise, 3-axis digital vibration sensor on Accel 14 Click board.
void accel14_get_data | ( | accel14_t * | ctx, |
accel14_accel_t * | accel_data ) |
Get Accel data function.
ctx | Click object. |
accel_data | pointer to memory location where Accel data be stored |
@description Function read Accel, Gyro and Mag X-axis, Y-axis data and Z-axis data from of IIS3DWB Ultra-wide bandwidth, low-noise, 3-axis digital vibration sensor on Accel 14 Click board.
float accel14_get_temperature | ( | accel14_t * | ctx | ) |
Get temperature function.
ctx | Click object. |
@description Function get temperature data in degrees Celsius of IIS3DWB Ultra-wide bandwidth, low-noise, 3-axis digital vibration sensor on Accel 14 Click board.
ACCEL14_RETVAL accel14_init | ( | accel14_t * | ctx, |
accel14_cfg_t * | cfg ) |
Initialization function.
accel14 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void accel14_multi_read | ( | accel14_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | p_rx_data, | ||
uint8_t | n_bytes ) |
Generic read sequence function.
ctx | Click object. |
reg | 8-bit register address. |
p_tx_data | pointer to the memory location where data be stored. |
n_bytes | number of bytes to be written. |
@description The function read a sequential data starting from the targeted 8-bit register address of IIS3DWB Ultra-wide bandwidth, low-noise, 3-axis digital vibration sensor on Accel 14 Click board.
void accel14_read_accel | ( | accel14_t * | ctx, |
accel14_accel_fs_xl_t * | accel_fs ) |
Read Accel data function.
ctx | Click object. |
accel_fs | pointer to memory location where Accel data be stored |
@description Function read Accel data X-axis, Y-axis data and Z-axis data from the 6 targeted starts from ACCEL10_OUT_X_L register address of IIS3DWB Ultra-wide bandwidth, low-noise, 3-axis digital vibration sensor on Accel 14 Click board.