@ IIO_ACCEL
Definition: iio_types.h:77
int16_t no_os_sign_extend16(uint16_t value, int index)
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:122
#define ADXL313_RANGE_FACTOR
Definition: adxl313.h:234
@ IIO_VAL_INT
Definition: iio_types.h:56
Struct describing the scan type.
Definition: iio_types.h:174
char sign
Definition: iio_types.h:159
@ IIO_SHARED_BY_TYPE
Definition: iio_types.h:126
uint32_t active_channels
Definition: iio_adxl313.h:57
adxl313_op_mode
Enum for operating mode.
Definition: adxl313.h:269
Structure holding the parameters for ADXL313 device initialization.
Definition: adxl313.h:403
Structure holding channel attributess.
Definition: iio_types.h:109
int adxl313_remove(struct adxl313_dev *dev)
Definition: adxl313.c:358
int adxl313_set_range(struct adxl313_dev *dev, enum adxl313_range range)
Definition: adxl313.c:2043
@ IIO_VAL_INT_PLUS_MICRO
Definition: iio_types.h:57
@ CHAN_Y
Definition: iio_adxl313.c:97
int adxl313_set_raw_offset(struct adxl313_dev *dev, int32_t offset_raw, enum adxl313_axis axis)
Definition: adxl313.c:606
@ IIO_VAL_FRACTIONAL
Definition: iio_types.h:61
struct iio_device * iio_dev
Definition: iio_adxl313.h:56
ADXL313 Device structure.
Definition: adxl313.h:494
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:60
#define NO_OS_ARRAY_SIZE(x)
Definition: no_os_util.h:55
@ ID_ADXL312
Definition: adxl313.h:251
Definition: iio_adxl313.h:54
#define SCALE_FACTOR
Definition: iio_adxl313.c:54
@ ADXL313_Z_AXIS
Definition: adxl313.h:346
int adxl313_iio_remove(struct adxl313_iio_dev *desc)
Definition: iio_adxl313.c:1103
enum adxl313_range range
Definition: adxl313.h:502
int adxl313_enable_full_res(struct adxl313_dev *dev)
Definition: adxl313.c:1965
@ ADXL313_MEAS
Definition: adxl313.h:271
int adxl313_iio_init(struct adxl313_iio_dev **iio_dev, struct adxl313_iio_dev_init_param *init_param)
Definition: iio_adxl313.c:1036
const char * name
Definition: iio_types.h:137
adxl313_iio_accel_chans
Definition: iio_adxl313.c:95
@ ID_ADXL313
Definition: adxl313.h:252
@ ADXL313_4G_RANGE
Definition: adxl313.h:303
#define MIN_SHIFT
Definition: iio_adxl313.c:55
Structure holding pointers to show and store functions.
Definition: iio_types.h:135
uint8_t no_of_active_channels
Definition: iio_adxl313.h:58
@ ADXL313_12G_RANGE
Definition: adxl313.h:307
struct adxl313_dev * adxl313_dev
Definition: iio_adxl313.h:55
@ CHAN_X
Definition: iio_adxl313.c:96
int32_t iio_parse_value(char *buf, enum iio_val fmt, int32_t *val, int32_t *val2)
Definition: iio.c:616
int adxl313_write(struct adxl313_dev *dev, uint8_t base_address, uint16_t size, uint8_t *write_data)
Definition: adxl313.c:107
enum adxl313_type dev_type
Definition: adxl313.h:500
@ ADXL313_1_5G_RANGE
Definition: adxl313.h:304
@ ADXL313_X_AXIS
Definition: adxl313.h:344
int adxl313_get_raw_xyz(struct adxl313_dev *dev, int16_t *x_raw, int16_t *y_raw, int16_t *z_raw)
Definition: adxl313.c:748
@ ADXL313_BYPAS_MODE
Definition: adxl313.h:354
int adxl313_set_odr(struct adxl313_dev *dev, enum adxl313_odr odr)
Definition: adxl313.c:1374
@ ADXL313_0_5G_RANGE
Definition: adxl313.h:300
int adxl313_get_full_res_setting(struct adxl313_dev *dev, uint8_t *full_res)
Definition: adxl313.c:2019
int iio_format_value(char *buf, uint32_t len, enum iio_val fmt, int32_t size, int32_t *vals)
Definition: iio.c:667
@ ADXL313_Y_AXIS
Definition: adxl313.h:345
uint32_t address
Definition: iio_types.h:119
#define NO_OS_BIT(x)
Definition: no_os_util.h:51
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:75
enum adxl313_resolution resolution
Definition: adxl313.h:504
enum iio_chan_type type
Definition: iio_types.h:115
enum adxl313_op_mode op_mode
Definition: adxl313.h:506
int adxl313_set_fifo_mode(struct adxl313_dev *dev, enum adxl313_fifo_mode mode)
Definition: adxl313.c:869
#define NULL
Definition: wrapper.h:64
enum adxl313_odr odr
Definition: adxl313.h:510
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:119
Definition: iio_adxl313.h:61
Structure holding channels and attributes of a device.
Definition: iio_types.h:253
int adxl313_set_op_mode(struct adxl313_dev *dev, enum adxl313_op_mode op_mode)
Definition: adxl313.c:425
Definition: iio_types.h:157
int adxl313_disable_full_res(struct adxl313_dev *dev)
Definition: adxl313.c:1991
#define ADXL313_ACCEL_CHANNEL(index, reg, axis)
Definition: iio_adxl313.c:198
int adxl313_iio_remove(struct adxl313_iio_dev *desc)
Definition: iio_adxl313.c:1103
int adxl313_iio_init(struct adxl313_iio_dev **iio_dev, struct adxl313_iio_dev_init_param *init_param)
Definition: iio_adxl313.c:1036
int adxl313_read(struct adxl313_dev *dev, uint8_t base_address, uint16_t size, uint8_t *read_data)
Definition: adxl313.c:72
@ CHAN_Z
Definition: iio_adxl313.c:98
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:700
Header file of IIO ADXL355 Driver.
@ ADXL313_STDBY
Definition: adxl313.h:270
int adxl313_init(struct adxl313_dev **device, struct adxl313_init_param init_param)
Definition: adxl313.c:168
struct adxl313_init_param * adxl313_dev_init
Definition: iio_adxl313.h:62
@ ID_ADXL314
Definition: adxl313.h:253