no-OS
basic_example_main.h
Go to the documentation of this file.
1 /***************************************************************************/
33 #ifndef __BASIC_EXAMPLE_MAIN_H__
34 #define __BASIC_EXAMPLE_MAIN_H__
35 
36 /******************************************************************************/
37 /************************ Functions Declarations ******************************/
38 /******************************************************************************/
39 int basic_example_main();
40 
41 #endif /* __EXAMPLE_MAIN_H__ */
ADXL382_RANGE_15G
@ ADXL382_RANGE_15G
Definition: adxl38x.h:252
adxl38x.h
Header file of ADXL38X Driver.
basic_example_main
int basic_example_main()
Example main execution.
Definition: basic_example_main.c:50
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
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:666
ADXL38X_DEVID_AD
#define ADXL38X_DEVID_AD
Definition: adxl38x.h:54
no_os_delay.h
Header file of Delay functions.
pr_info
#define pr_info(fmt, args...)
Definition: no_os_print_log.h:115
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
adxl38x_dev::range
enum adxl38x_range range
Definition: adxl38x.h:343
no_os_mdelay
void no_os_mdelay(uint32_t msecs)
Wait until msecs milliseconds passed.
Definition: aducm3029_delay.c:126
ADXL38X_CH_EN_XYZT
@ ADXL38X_CH_EN_XYZT
Definition: adxl38x.h:294
ADXL38X_MODE_HP
@ ADXL38X_MODE_HP
Definition: adxl38x.h:274
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:69
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
adxl38x_fractional_val::integer
int64_t integer
Definition: adxl38x.h:313
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:321
adxl38x_fractional_val
Data format in which the values are converted.
Definition: adxl38x.h:312
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_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:298
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_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:581
adxl38x_fractional_val::fractional
int32_t fractional
Definition: adxl38x.h:314
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:250
ADXL38X_MODE_LP
@ ADXL38X_MODE_LP
Definition: adxl38x.h:268
adxl38x_ip
struct adxl38x_init_param adxl38x_ip
Definition: common_data.c:64
errno.h
Error macro definition for ARM Compiler.
basic_example_main
int basic_example_main()
basic example main execution.
Definition: basic_example.c:53