Go to the documentation of this file.
39 #ifndef __BASIC_EXAMPLE_MAIN_H__
40 #define __BASIC_EXAMPLE_MAIN_H__
@ ADXL382_RANGE_15G
Definition: adxl38x.h:258
Header file of ADXL38X Driver.
int basic_example_main()
Example main execution.
Definition: basic_example_main.c:56
enum adxl38x_id dev_type
Definition: adxl38x.h:343
uint32_t value
Definition: adxl38x.h:404
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:672
#define ADXL38X_DEVID_AD
Definition: adxl38x.h:60
Header file of Delay functions.
#define pr_info(fmt, args...)
Definition: no_os_print_log.h:121
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
enum adxl38x_range range
Definition: adxl38x.h:349
void no_os_mdelay(uint32_t msecs)
Wait until msecs milliseconds passed.
Definition: aducm3029_delay.c:132
@ ADXL38X_CH_EN_XYZT
Definition: adxl38x.h:300
@ ADXL38X_MODE_HP
Definition: adxl38x.h:280
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:75
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
int64_t integer
Definition: adxl38x.h:319
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:327
Data format in which the values are converted.
Definition: adxl38x.h:318
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_set_op_mode(struct adxl38x_dev *dev, enum adxl38x_op_mode op_mode)
Places the device into the given operation mode.
Definition: adxl38x.c:304
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
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:587
int32_t fractional
Definition: adxl38x.h:320
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:256
@ ADXL38X_MODE_LP
Definition: adxl38x.h:274
struct adxl38x_init_param adxl38x_ip
Definition: common_data.c:70
Error macro definition for ARM Compiler.
int basic_example_main()
basic example main execution.
Definition: basic_example.c:59