Go to the documentation of this file.
39 #ifndef __SELFTEST_EXAMPLE_MAIN_H__
40 #define __SELFTEST_EXAMPLE_MAIN_H__
Header file of ADXL38X Driver.
enum adxl38x_id dev_type
Definition: adxl38x.h:343
uint32_t value
Definition: adxl38x.h:404
@ ADXL382_RANGE_60G
Definition: adxl38x.h:262
#define pr_info(fmt, args...)
Definition: no_os_print_log.h:121
Main header for example eval-adxl38x project.
int adxl38x_get_deviceID(struct adxl38x_dev *dev, enum adxl38x_id *devID)
Gets the current device type.
Definition: adxl38x.c:396
int adxl38x_soft_reset(struct adxl38x_dev *dev)
Performs a soft reset of the device.
Definition: adxl38x.c:276
ADXL38X Device structure.
Definition: adxl38x.h:341
int adxl38x_get_sts_reg(struct adxl38x_dev *dev, union adxl38x_sts_reg_flags *status_flags)
Reads the status registers.
Definition: adxl38x.c:472
int selftest_example_main()
Example main execution.
Definition: selftest_example_main.c:56
@ ADXL38X_MODE_HP
Definition: adxl38x.h:280
Definition: adxl38x.h:402
int adxl38x_set_range(struct adxl38x_dev *dev, enum adxl38x_range range_val)
Sets the measurement range register value.
Definition: adxl38x.c:351
int selftest_example_main()
Example main execution.
Definition: selftest_example_main.c:56
int adxl38x_selftest(struct adxl38x_dev *dev, enum adxl38x_op_mode op_mode, bool *st_x, bool *st_y, bool *st_z)
Executed Selftest on the sensing axes and returns the outcome of the test.
Definition: adxl38x.c:765
int adxl38x_get_range(struct adxl38x_dev *dev, enum adxl38x_range *range_val)
Gets the current range setting of the device.
Definition: adxl38x.c:372
@ ID_ADXL382
Definition: adxl38x.h:244
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:173
struct adxl38x_init_param adxl38x_ip
Definition: common_data.c:70
Error macro definition for ARM Compiler.