@ IIO_ACCEL
Definition: iio_types.h:71
int16_t no_os_sign_extend16(uint16_t value, int index)
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:116
#define ADXL313_RANGE_FACTOR
Definition: adxl313.h:228
@ IIO_VAL_INT
Definition: iio_types.h:50
Struct describing the scan type.
Definition: iio_types.h:168
char sign
Definition: iio_types.h:153
@ IIO_SHARED_BY_TYPE
Definition: iio_types.h:120
uint32_t active_channels
Definition: iio_adxl313.h:51
adxl313_op_mode
Enum for operating mode.
Definition: adxl313.h:263
Structure holding the parameters for ADXL313 device initialization.
Definition: adxl313.h:397
Structure holding channel attributess.
Definition: iio_types.h:103
int adxl313_remove(struct adxl313_dev *dev)
Definition: adxl313.c:352
int adxl313_set_range(struct adxl313_dev *dev, enum adxl313_range range)
Definition: adxl313.c:2039
@ IIO_VAL_INT_PLUS_MICRO
Definition: iio_types.h:51
@ CHAN_Y
Definition: iio_adxl313.c:91
int adxl313_set_raw_offset(struct adxl313_dev *dev, int32_t offset_raw, enum adxl313_axis axis)
Definition: adxl313.c:600
@ IIO_VAL_FRACTIONAL
Definition: iio_types.h:55
struct iio_device * iio_dev
Definition: iio_adxl313.h:50
ADXL313 Device structure.
Definition: adxl313.h:488
void * no_os_calloc(size_t nitems, size_t size)
Allocate memory and return a pointer to it, set memory to 0.
Definition: chibios_alloc.c:54
#define NO_OS_ARRAY_SIZE(x)
Definition: no_os_util.h:49
@ ID_ADXL312
Definition: adxl313.h:245
Definition: iio_adxl313.h:48
#define SCALE_FACTOR
Definition: iio_adxl313.c:48
@ ADXL313_Z_AXIS
Definition: adxl313.h:340
int adxl313_iio_remove(struct adxl313_iio_dev *desc)
Definition: iio_adxl313.c:1097
enum adxl313_range range
Definition: adxl313.h:496
int adxl313_enable_full_res(struct adxl313_dev *dev)
Definition: adxl313.c:1961
@ ADXL313_MEAS
Definition: adxl313.h:265
int adxl313_iio_init(struct adxl313_iio_dev **iio_dev, struct adxl313_iio_dev_init_param *init_param)
Definition: iio_adxl313.c:1030
const char * name
Definition: iio_types.h:131
adxl313_iio_accel_chans
Definition: iio_adxl313.c:89
@ ID_ADXL313
Definition: adxl313.h:246
@ ADXL313_4G_RANGE
Definition: adxl313.h:297
#define MIN_SHIFT
Definition: iio_adxl313.c:49
Structure holding pointers to show and store functions.
Definition: iio_types.h:129
uint8_t no_of_active_channels
Definition: iio_adxl313.h:52
@ ADXL313_12G_RANGE
Definition: adxl313.h:301
struct adxl313_dev * adxl313_dev
Definition: iio_adxl313.h:49
@ CHAN_X
Definition: iio_adxl313.c:90
int32_t iio_parse_value(char *buf, enum iio_val fmt, int32_t *val, int32_t *val2)
Definition: iio.c:630
int adxl313_write(struct adxl313_dev *dev, uint8_t base_address, uint16_t size, uint8_t *write_data)
Definition: adxl313.c:101
enum adxl313_type dev_type
Definition: adxl313.h:494
@ ADXL313_1_5G_RANGE
Definition: adxl313.h:298
@ ADXL313_X_AXIS
Definition: adxl313.h:338
int adxl313_get_raw_xyz(struct adxl313_dev *dev, int16_t *x_raw, int16_t *y_raw, int16_t *z_raw)
Definition: adxl313.c:742
@ ADXL313_BYPAS_MODE
Definition: adxl313.h:348
int adxl313_set_odr(struct adxl313_dev *dev, enum adxl313_odr odr)
Definition: adxl313.c:1370
@ ADXL313_0_5G_RANGE
Definition: adxl313.h:294
int adxl313_get_full_res_setting(struct adxl313_dev *dev, uint8_t *full_res)
Definition: adxl313.c:2015
int iio_format_value(char *buf, uint32_t len, enum iio_val fmt, int32_t size, int32_t *vals)
Definition: iio.c:686
@ ADXL313_Y_AXIS
Definition: adxl313.h:339
uint32_t address
Definition: iio_types.h:113
#define NO_OS_BIT(x)
Definition: no_os_util.h:45
void no_os_free(void *ptr)
Deallocate memory previously allocated by a call to no_os_calloc or no_os_malloc.
Definition: chibios_alloc.c:69
enum adxl313_resolution resolution
Definition: adxl313.h:498
enum iio_chan_type type
Definition: iio_types.h:109
enum adxl313_op_mode op_mode
Definition: adxl313.h:500
int adxl313_set_fifo_mode(struct adxl313_dev *dev, enum adxl313_fifo_mode mode)
Definition: adxl313.c:863
#define NULL
Definition: wrapper.h:64
enum adxl313_odr odr
Definition: adxl313.h:504
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:113
Definition: iio_adxl313.h:55
Structure holding channels and attributes of a device.
Definition: iio_types.h:247
int adxl313_set_op_mode(struct adxl313_dev *dev, enum adxl313_op_mode op_mode)
Definition: adxl313.c:419
Definition: iio_types.h:151
int adxl313_disable_full_res(struct adxl313_dev *dev)
Definition: adxl313.c:1987
#define ADXL313_ACCEL_CHANNEL(index, reg, axis)
Definition: iio_adxl313.c:192
int adxl313_iio_remove(struct adxl313_iio_dev *desc)
Definition: iio_adxl313.c:1097
int adxl313_iio_init(struct adxl313_iio_dev **iio_dev, struct adxl313_iio_dev_init_param *init_param)
Definition: iio_adxl313.c:1030
int adxl313_read(struct adxl313_dev *dev, uint8_t base_address, uint16_t size, uint8_t *read_data)
Definition: adxl313.c:66
@ CHAN_Z
Definition: iio_adxl313.c:92
Header file of utility functions.
unsigned int no_os_hweight32(uint32_t word)
Header file of ADXL313 Driver.
int adxl313_get_raw_offset(struct adxl313_dev *dev, int32_t *offset_raw, enum adxl313_axis axis)
Definition: adxl313.c:694
Header file of IIO ADXL355 Driver.
@ ADXL313_STDBY
Definition: adxl313.h:264
int adxl313_init(struct adxl313_dev **device, struct adxl313_init_param init_param)
Definition: adxl313.c:162
struct adxl313_init_param * adxl313_dev_init
Definition: iio_adxl313.h:56
@ ID_ADXL314
Definition: adxl313.h:247