Go to the documentation of this file.
33 #ifndef __FIFO_EXAMPLE_MAIN_H__
34 #define __FIFO_EXAMPLE_MAIN_H__
@ ADXL382_RANGE_15G
Definition: adxl38x.h:252
#define ADXL38X_INT0_MAP0
Definition: adxl38x.h:95
Header file of ADXL38X Driver.
#define ADXL38X_FIFO_STATUS0
Definition: adxl38x.h:84
#define ADXL38X_STATUS0
Definition: adxl38x.h:71
Main header for FIFO example eval-adxl38x project.
#define pr_info(fmt, args...)
Definition: no_os_print_log.h:115
#define ADXL38X_FIFO_DATA
Definition: adxl38x.h:83
@ ADXL38X_FIFO_STREAM
Definition: adxl38x.h:304
int adxl38x_get_deviceID(struct adxl38x_dev *dev, enum adxl38x_id *devID)
Gets the current device type.
Definition: adxl38x.c:390
@ ADXL38X_MODE_STDBY
Definition: adxl38x.h:264
#define ADXL38X_DIG_EN
Definition: adxl38x.h:91
int adxl38x_soft_reset(struct adxl38x_dev *dev)
Performs a soft reset of the device.
Definition: adxl38x.c:270
ADXL38X Device structure.
Definition: adxl38x.h:335
int adxl38x_accel_set_FIFO(struct adxl38x_dev *dev, uint16_t num_samples, bool external_trigger, enum adxl38x_fifo_mode fifo_mode, bool ch_ID_enable, bool read_reset)
Function to set the paramenters for FIFO mode.
Definition: adxl38x.c:896
@ ADXL38X_MODE_HP
Definition: adxl38x.h:274
int adxl38x_read_device_data(struct adxl38x_dev *dev, uint8_t base_address, uint16_t size, uint8_t *read_data)
Reads from the device.
Definition: adxl38x.c:69
int adxl38x_set_range(struct adxl38x_dev *dev, enum adxl38x_range range_val)
Sets the measurement range register value.
Definition: adxl38x.c:345
int fifo_example_main()
Example main execution.
Definition: fifo_example_main.c:57
int64_t integer
Definition: adxl38x.h:313
adxl38x_id
Definition: adxl38x.h:236
Data format in which the values are converted.
Definition: adxl38x.h:312
int adxl38x_data_raw_to_gees(struct adxl38x_dev *dev, uint8_t *raw_accel_data, struct adxl38x_fractional_val *data_frac)
Function to convert accel data to gees.
Definition: adxl38x.c:957
#define NO_OS_BIT(x)
Definition: no_os_util.h:45
uint16_t no_os_get_unaligned_le16(uint8_t *buf)
int adxl38x_set_op_mode(struct adxl38x_dev *dev, enum adxl38x_op_mode op_mode)
Places the device into the given operation mode.
Definition: adxl38x.c:298
int adxl38x_init(struct adxl38x_dev **device, struct adxl38x_init_param init_param)
Initializes the device and checks for valid peripheral communication.
Definition: adxl38x.c:167
int adxl38x_write_device_data(struct adxl38x_dev *dev, uint8_t base_address, uint16_t size, uint8_t *write_data)
Writes to the device.
Definition: adxl38x.c:107
int32_t fractional
Definition: adxl38x.h:314
Header file of utility functions.
#define ADXL38X_FILTER
Definition: adxl38x.h:132
struct adxl38x_init_param adxl38x_ip
Definition: common_data.c:64
Error macro definition for ARM Compiler.
int fifo_example_main()
Example main execution.
Definition: fifo_example_main.c:57