no-OS
basic_example_main.h
Go to the documentation of this file.
1 /***************************************************************************/
39 #ifndef __BASIC_EXAMPLE_MAIN_H__
40 #define __BASIC_EXAMPLE_MAIN_H__
41 
42 /******************************************************************************/
43 /************************ Functions Declarations ******************************/
44 /******************************************************************************/
45 int basic_example_main();
46 
47 #endif /* __EXAMPLE_MAIN_H__ */
ADXL382_RANGE_15G
@ ADXL382_RANGE_15G
Definition: adxl38x.h:258
adxl38x.h
Header file of ADXL38X Driver.
basic_example_main
int basic_example_main()
Example main execution.
Definition: basic_example_main.c:56
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
adxl38x_get_xyz_gees
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
ADXL38X_DEVID_AD
#define ADXL38X_DEVID_AD
Definition: adxl38x.h:60
no_os_delay.h
Header file of Delay functions.
pr_info
#define pr_info(fmt, args...)
Definition: no_os_print_log.h:121
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
adxl38x_dev::range
enum adxl38x_range range
Definition: adxl38x.h:349
no_os_mdelay
void no_os_mdelay(uint32_t msecs)
Wait until msecs milliseconds passed.
Definition: aducm3029_delay.c:132
ADXL38X_CH_EN_XYZT
@ ADXL38X_CH_EN_XYZT
Definition: adxl38x.h:300
ADXL38X_MODE_HP
@ ADXL38X_MODE_HP
Definition: adxl38x.h:280
adxl38x_read_device_data
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
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
adxl38x_fractional_val::integer
int64_t integer
Definition: adxl38x.h:319
adxl38x_get_op_mode
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
adxl38x_fractional_val
Data format in which the values are converted.
Definition: adxl38x.h:318
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_set_op_mode
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
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_get_raw_data
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
adxl38x_fractional_val::fractional
int32_t fractional
Definition: adxl38x.h:320
basic_example_main.h
Main header for example eval-adxl38x project.
adxl38x_remove
int adxl38x_remove(struct adxl38x_dev *dev)
Free the resources allocated by the init function.
Definition: adxl38x.c:256
ADXL38X_MODE_LP
@ ADXL38X_MODE_LP
Definition: adxl38x.h:274
adxl38x_ip
struct adxl38x_init_param adxl38x_ip
Definition: common_data.c:70
errno.h
Error macro definition for ARM Compiler.
basic_example_main
int basic_example_main()
basic example main execution.
Definition: basic_example.c:59