no-OS
fifo_example_main.h
Go to the documentation of this file.
1 /***************************************************************************/
33 #ifndef __FIFO_EXAMPLE_MAIN_H__
34 #define __FIFO_EXAMPLE_MAIN_H__
35 
36 /******************************************************************************/
37 /************************ Functions Declarations ******************************/
38 /******************************************************************************/
39 int fifo_example_main();
40 
41 #endif /* __SELFTEST_EXAMPLE_MAIN_H__ */
ADXL382_RANGE_15G
@ ADXL382_RANGE_15G
Definition: adxl38x.h:252
ADXL38X_INT0_MAP0
#define ADXL38X_INT0_MAP0
Definition: adxl38x.h:95
adxl38x.h
Header file of ADXL38X Driver.
ADXL38X_FIFO_STATUS0
#define ADXL38X_FIFO_STATUS0
Definition: adxl38x.h:84
ADXL38X_STATUS0
#define ADXL38X_STATUS0
Definition: adxl38x.h:71
fifo_example_main.h
Main header for FIFO example eval-adxl38x project.
pr_info
#define pr_info(fmt, args...)
Definition: no_os_print_log.h:115
no_os_print_log.h
Print messages helpers.
ADXL38X_FIFO_DATA
#define ADXL38X_FIFO_DATA
Definition: adxl38x.h:83
ADXL38X_FIFO_STREAM
@ ADXL38X_FIFO_STREAM
Definition: adxl38x.h:304
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_MODE_STDBY
@ ADXL38X_MODE_STDBY
Definition: adxl38x.h:264
ADXL38X_DIG_EN
#define ADXL38X_DIG_EN
Definition: adxl38x.h:91
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_accel_set_FIFO
int adxl38x_accel_set_FIFO(struct adxl38x_dev *dev, uint16_t num_samples, bool external_trigger, enum adxl38x_fifo_mode fifo_mode, bool ch_ID_enable, bool read_reset)
Function to set the paramenters for FIFO mode.
Definition: adxl38x.c:896
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_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
fifo_example_main
int fifo_example_main()
Example main execution.
Definition: fifo_example_main.c:57
adxl38x_fractional_val::integer
int64_t integer
Definition: adxl38x.h:313
adxl38x_id
adxl38x_id
Definition: adxl38x.h:236
adxl38x_fractional_val
Data format in which the values are converted.
Definition: adxl38x.h:312
adxl38x_data_raw_to_gees
int adxl38x_data_raw_to_gees(struct adxl38x_dev *dev, uint8_t *raw_accel_data, struct adxl38x_fractional_val *data_frac)
Function to convert accel data to gees.
Definition: adxl38x.c:957
NO_OS_BIT
#define NO_OS_BIT(x)
Definition: no_os_util.h:45
no_os_get_unaligned_le16
uint16_t no_os_get_unaligned_le16(uint8_t *buf)
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_write_device_data
int adxl38x_write_device_data(struct adxl38x_dev *dev, uint8_t base_address, uint16_t size, uint8_t *write_data)
Writes to the device.
Definition: adxl38x.c:107
adxl38x_fractional_val::fractional
int32_t fractional
Definition: adxl38x.h:314
no_os_util.h
Header file of utility functions.
ADXL38X_FILTER
#define ADXL38X_FILTER
Definition: adxl38x.h:132
adxl38x_ip
struct adxl38x_init_param adxl38x_ip
Definition: common_data.c:64
errno.h
Error macro definition for ARM Compiler.
fifo_example_main
int fifo_example_main()
Example main execution.
Definition: fifo_example_main.c:57