@ IIO_ACCEL
Definition: iio_types.h:77
int adxl367_read_raw_temp(struct adxl367_dev *dev, int16_t *raw_temp)
Reads the raw temperature of the device. If ADXL367_TEMP_EN is not set, use adxl367_temp_read_en() fi...
Definition: adxl367.c:715
Header file of IIO ADXL367 Driver.
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:122
int adxl367_temp_read_en(struct adxl367_dev *dev, bool enable)
Enables temperature reading.
Definition: adxl367.c:671
enum adxl367_range range
Definition: adxl367.h:440
@ ADXL367_OP_STANDBY
Definition: adxl367.h:311
@ IIO_VAL_INT
Definition: iio_types.h:56
Struct describing the scan type.
Definition: iio_types.h:174
@ IIO_VAL_INT_PLUS_NANO
Definition: iio_types.h:58
int adxl367_set_offset(struct adxl367_dev *dev, uint16_t x_offset, uint16_t y_offset, uint16_t z_offset)
Sets offset for each axis.
Definition: adxl367.c:529
char sign
Definition: iio_types.h:159
@ IIO_SHARED_BY_TYPE
Definition: iio_types.h:126
int adxl367_get_register_value(struct adxl367_dev *dev, uint8_t *read_data, uint8_t register_address, uint8_t register_nb)
Performs a burst read of a specified number of registers.
Definition: adxl367.c:290
Structure holding channel attributess.
Definition: iio_types.h:109
int adxl367_iio_init(struct adxl367_iio_dev **iio_dev, struct adxl367_iio_init_param *init_param)
Initializes the ADXL367 IIO driver.
Definition: iio_adxl367.c:727
uint8_t no_of_active_channels
Definition: iio_adxl367.h:54
@ IIO_VAL_INT_PLUS_MICRO
Definition: iio_types.h:57
@ ADXL367_ODR_400HZ
Definition: adxl367.h:335
@ IIO_VAL_FRACTIONAL
Definition: iio_types.h:61
int adxl367_iio_init(struct adxl367_iio_dev **iio_dev, struct adxl367_iio_init_param *init_param)
Initializes the ADXL367 IIO driver.
Definition: iio_adxl367.c:727
ADXL367 Device structure.
Definition: adxl367.h:430
@ ADXL367_2G_RANGE
Definition: adxl367.h:320
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
int adxl367_set_output_rate(struct adxl367_dev *dev, enum adxl367_odr odr)
Selects the Output Data Rate of the device.
Definition: adxl367.c:502
Structure holding the parameters for ADXL367 device initialization.
Definition: adxl367.h:457
enum adxl367_odr odr
Definition: adxl367.h:442
Definition: iio_adxl367.h:50
Definition: iio_adxl367.h:57
int adxl367_set_range(struct adxl367_dev *dev, enum adxl367_range range)
Selects the measurement range.
Definition: adxl367.c:471
int adxl367_remove(struct adxl367_dev *dev)
Frees the resources allocated by adxl367_init().
Definition: adxl367.c:144
int adxl367_init(struct adxl367_dev **device, struct adxl367_init_param init_param)
Initializes communication with the device and checks if the part is present by reading the device id.
Definition: adxl367.c:71
const char * name
Definition: iio_types.h:137
uint16_t y_offset
Definition: adxl367.h:449
int adxl367_iio_remove(struct adxl367_iio_dev *desc)
Free the resources allocated by adxl367_iio_init().
Definition: iio_adxl367.c:779
@ ADXL367_OP_MEASURE
Definition: adxl367.h:312
Structure holding pointers to show and store functions.
Definition: iio_types.h:135
int adxl367_iio_remove(struct adxl367_iio_dev *desc)
Free the resources allocated by adxl367_iio_init().
Definition: iio_adxl367.c:779
adxl367_range
Enum for selecting range.
Definition: adxl367.h:319
int32_t iio_parse_value(char *buf, enum iio_val fmt, int32_t *val, int32_t *val2)
Definition: iio.c:616
int adxl367_get_raw_xyz(struct adxl367_dev *dev, int16_t *x, int16_t *y, int16_t *z)
Reads the 3-axis raw data from the accelerometer.
Definition: adxl367.c:568
uint32_t active_channels
Definition: iio_adxl367.h:53
struct adxl367_init_param * adxl367_initial_param
Definition: iio_adxl367.h:58
uint16_t z_offset
Definition: adxl367.h:450
int iio_format_value(char *buf, uint32_t len, enum iio_val fmt, int32_t size, int32_t *vals)
Definition: iio.c:667
@ ADXL367_4G_RANGE
Definition: adxl367.h:321
#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
Header file of ADXL367 Driver.
struct iio_device * iio_dev
Definition: iio_adxl367.h:52
struct adxl367_dev * adxl367_dev
Definition: iio_adxl367.h:51
@ IIO_TEMP
Definition: iio_types.h:75
enum iio_chan_type type
Definition: iio_types.h:115
int adxl367_set_register_value(struct adxl367_dev *dev, uint8_t register_value, uint8_t register_address)
Writes data into a register.
Definition: adxl367.c:261
#define NULL
Definition: wrapper.h:64
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:119
int16_t ch_num
Definition: iio_types.h:111
Structure holding channels and attributes of a device.
Definition: iio_types.h:253
uint16_t x_offset
Definition: adxl367.h:448
#define ADXL367_ACCEL_CHANNEL(index, axis)
Definition: iio_adxl367.c:865
Definition: iio_types.h:157
Header file of utility functions.
int adxl367_set_power_mode(struct adxl367_dev *dev, enum adxl367_op_mode mode)
Places the device into standby/measure mode.
Definition: adxl367.c:439
int32_t no_os_sign_extend32(uint32_t value, int index)
@ ADXL367_8G_RANGE
Definition: adxl367.h:322