no-OS
selftest_example_main.h
Go to the documentation of this file.
1 /***************************************************************************/
33 #ifndef __SELFTEST_EXAMPLE_MAIN_H__
34 #define __SELFTEST_EXAMPLE_MAIN_H__
35 
36 /******************************************************************************/
37 /************************ Functions Declarations ******************************/
38 /******************************************************************************/
40 
41 #endif /* __SELFTEST_EXAMPLE_MAIN_H__ */
adxl38x.h
Header file of ADXL38X Driver.
adxl38x_dev::dev_type
enum adxl38x_id dev_type
Definition: adxl38x.h:337
adxl38x_sts_reg_flags::value
uint32_t value
Definition: adxl38x.h:398
ADXL382_RANGE_60G
@ ADXL382_RANGE_60G
Definition: adxl38x.h:256
pr_info
#define pr_info(fmt, args...)
Definition: no_os_print_log.h:115
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:390
adxl38x_soft_reset
int adxl38x_soft_reset(struct adxl38x_dev *dev)
Performs a soft reset of the device.
Definition: adxl38x.c:270
adxl38x_dev
ADXL38X Device structure.
Definition: adxl38x.h:335
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:466
selftest_example_main
int selftest_example_main()
Example main execution.
Definition: selftest_example_main.c:50
ADXL38X_MODE_HP
@ ADXL38X_MODE_HP
Definition: adxl38x.h:274
adxl38x_sts_reg_flags
Definition: adxl38x.h:396
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:345
selftest_example_main
int selftest_example_main()
Example main execution.
Definition: selftest_example_main.c:50
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:759
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:366
ID_ADXL382
@ ID_ADXL382
Definition: adxl38x.h:238
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:167
adxl38x_ip
struct adxl38x_init_param adxl38x_ip
Definition: common_data.c:64
errno.h
Error macro definition for ARM Compiler.