Go to the documentation of this file.
33 #ifndef __BASIC_EXAMPLE_MAIN_H__
34 #define __BASIC_EXAMPLE_MAIN_H__
@ ADXL382_RANGE_15G
Definition: adxl38x.h:252
Header file of ADXL38X Driver.
int basic_example_main()
Example main execution.
Definition: basic_example_main.c:50
enum adxl38x_id dev_type
Definition: adxl38x.h:337
uint32_t value
Definition: adxl38x.h:398
int adxl38x_get_xyz_gees(struct adxl38x_dev *dev, enum adxl38x_ch_select channels, struct adxl38x_fractional_val *x, struct adxl38x_fractional_val *y, struct adxl38x_fractional_val *z)
Reads the raw output data of each axis and converts it to g.
Definition: adxl38x.c:666
#define ADXL38X_DEVID_AD
Definition: adxl38x.h:54
Header file of Delay functions.
#define pr_info(fmt, args...)
Definition: no_os_print_log.h:115
int adxl38x_get_deviceID(struct adxl38x_dev *dev, enum adxl38x_id *devID)
Gets the current device type.
Definition: adxl38x.c:390
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_get_sts_reg(struct adxl38x_dev *dev, union adxl38x_sts_reg_flags *status_flags)
Reads the status registers.
Definition: adxl38x.c:466
enum adxl38x_range range
Definition: adxl38x.h:343
void no_os_mdelay(uint32_t msecs)
Wait until msecs milliseconds passed.
Definition: aducm3029_delay.c:126
@ ADXL38X_CH_EN_XYZT
Definition: adxl38x.h:294
@ 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
Definition: adxl38x.h:396
int adxl38x_set_range(struct adxl38x_dev *dev, enum adxl38x_range range_val)
Sets the measurement range register value.
Definition: adxl38x.c:345
int64_t integer
Definition: adxl38x.h:313
int adxl38x_get_op_mode(struct adxl38x_dev *dev, enum adxl38x_op_mode *op_mode)
Gets the current operation mode of the device.
Definition: adxl38x.c:321
Data format in which the values are converted.
Definition: adxl38x.h:312
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
Definition: adxl38x.h:238
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_get_raw_data(struct adxl38x_dev *dev, enum adxl38x_ch_select channels, uint16_t *raw_x, uint16_t *raw_y, uint16_t *raw_z, uint16_t *raw_temp)
Reads the raw output data using burst read.
Definition: adxl38x.c:581
int32_t fractional
Definition: adxl38x.h:314
Main header for example eval-adxl38x project.
int adxl38x_remove(struct adxl38x_dev *dev)
Free the resources allocated by the init function.
Definition: adxl38x.c:250
@ ADXL38X_MODE_LP
Definition: adxl38x.h:268
struct adxl38x_init_param adxl38x_ip
Definition: common_data.c:64
Error macro definition for ARM Compiler.
int basic_example_main()
basic example main execution.
Definition: basic_example.c:53