no-OS
fifo_example_main.h
Go to the documentation of this file.
1 /***************************************************************************/
39 #ifndef __FIFO_EXAMPLE_MAIN_H__
40 #define __FIFO_EXAMPLE_MAIN_H__
41 
42 /******************************************************************************/
43 /************************ Functions Declarations ******************************/
44 /******************************************************************************/
45 int fifo_example_main();
46 
47 #endif /* __SELFTEST_EXAMPLE_MAIN_H__ */
ADXL382_RANGE_15G
@ ADXL382_RANGE_15G
Definition: adxl38x.h:258
ADXL38X_INT0_MAP0
#define ADXL38X_INT0_MAP0
Definition: adxl38x.h:101
adxl38x.h
Header file of ADXL38X Driver.
ADXL38X_FIFO_STATUS0
#define ADXL38X_FIFO_STATUS0
Definition: adxl38x.h:90
ADXL38X_STATUS0
#define ADXL38X_STATUS0
Definition: adxl38x.h:77
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:121
no_os_print_log.h
Print messages helpers.
ADXL38X_FIFO_DATA
#define ADXL38X_FIFO_DATA
Definition: adxl38x.h:89
ADXL38X_FIFO_STREAM
@ ADXL38X_FIFO_STREAM
Definition: adxl38x.h:310
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_MODE_STDBY
@ ADXL38X_MODE_STDBY
Definition: adxl38x.h:270
ADXL38X_DIG_EN
#define ADXL38X_DIG_EN
Definition: adxl38x.h:97
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_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:902
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_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
fifo_example_main
int fifo_example_main()
Example main execution.
Definition: fifo_example_main.c:63
adxl38x_fractional_val::integer
int64_t integer
Definition: adxl38x.h:319
adxl38x_id
adxl38x_id
Definition: adxl38x.h:242
adxl38x_fractional_val
Data format in which the values are converted.
Definition: adxl38x.h:318
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:963
NO_OS_BIT
#define NO_OS_BIT(x)
Definition: no_os_util.h:51
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: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_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:113
adxl38x_fractional_val::fractional
int32_t fractional
Definition: adxl38x.h:320
no_os_util.h
Header file of utility functions.
ADXL38X_FILTER
#define ADXL38X_FILTER
Definition: adxl38x.h:138
adxl38x_ip
struct adxl38x_init_param adxl38x_ip
Definition: common_data.c:70
errno.h
Error macro definition for ARM Compiler.
fifo_example_main
int fifo_example_main()
Example main execution.
Definition: fifo_example_main.c:63