no-OS
selftest_example_main.h
Go to the documentation of this file.
1 /***************************************************************************/
39 #ifndef __SELFTEST_EXAMPLE_MAIN_H__
40 #define __SELFTEST_EXAMPLE_MAIN_H__
41 
42 /******************************************************************************/
43 /************************ Functions Declarations ******************************/
44 /******************************************************************************/
46 
47 #endif /* __SELFTEST_EXAMPLE_MAIN_H__ */
adxl38x.h
Header file of ADXL38X Driver.
adxl38x_dev::dev_type
enum adxl38x_id dev_type
Definition: adxl38x.h:343
adxl38x_sts_reg_flags::value
uint32_t value
Definition: adxl38x.h:404
ADXL382_RANGE_60G
@ ADXL382_RANGE_60G
Definition: adxl38x.h:262
pr_info
#define pr_info(fmt, args...)
Definition: no_os_print_log.h:121
selftest_example_main.h
Main header for example eval-adxl38x project.
no_os_print_log.h
Print messages helpers.
adxl38x_get_deviceID
int adxl38x_get_deviceID(struct adxl38x_dev *dev, enum adxl38x_id *devID)
Gets the current device type.
Definition: adxl38x.c:396
adxl38x_soft_reset
int adxl38x_soft_reset(struct adxl38x_dev *dev)
Performs a soft reset of the device.
Definition: adxl38x.c:276
adxl38x_dev
ADXL38X Device structure.
Definition: adxl38x.h:341
adxl38x_get_sts_reg
int adxl38x_get_sts_reg(struct adxl38x_dev *dev, union adxl38x_sts_reg_flags *status_flags)
Reads the status registers.
Definition: adxl38x.c:472
selftest_example_main
int selftest_example_main()
Example main execution.
Definition: selftest_example_main.c:56
ADXL38X_MODE_HP
@ ADXL38X_MODE_HP
Definition: adxl38x.h:280
adxl38x_sts_reg_flags
Definition: adxl38x.h:402
adxl38x_set_range
int adxl38x_set_range(struct adxl38x_dev *dev, enum adxl38x_range range_val)
Sets the measurement range register value.
Definition: adxl38x.c:351
selftest_example_main
int selftest_example_main()
Example main execution.
Definition: selftest_example_main.c:56
adxl38x_selftest
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
adxl38x_get_range
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
@ ID_ADXL382
Definition: adxl38x.h:244
adxl38x_init
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
adxl38x_ip
struct adxl38x_init_param adxl38x_ip
Definition: common_data.c:70
errno.h
Error macro definition for ARM Compiler.