@ IIO_ACCEL
Definition: iio_types.h:71
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:709
Header file of IIO ADXL367 Driver.
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:116
int adxl367_temp_read_en(struct adxl367_dev *dev, bool enable)
Enables temperature reading.
Definition: adxl367.c:665
enum adxl367_range range
Definition: adxl367.h:434
@ ADXL367_OP_STANDBY
Definition: adxl367.h:305
@ IIO_VAL_INT
Definition: iio_types.h:50
Struct describing the scan type.
Definition: iio_types.h:168
@ IIO_VAL_INT_PLUS_NANO
Definition: iio_types.h:52
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:523
char sign
Definition: iio_types.h:153
@ IIO_SHARED_BY_TYPE
Definition: iio_types.h:120
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:284
Structure holding channel attributess.
Definition: iio_types.h:103
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:721
uint8_t no_of_active_channels
Definition: iio_adxl367.h:48
@ IIO_VAL_INT_PLUS_MICRO
Definition: iio_types.h:51
@ ADXL367_ODR_400HZ
Definition: adxl367.h:329
@ IIO_VAL_FRACTIONAL
Definition: iio_types.h:55
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:721
ADXL367 Device structure.
Definition: adxl367.h:424
@ ADXL367_2G_RANGE
Definition: adxl367.h:314
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
int adxl367_set_output_rate(struct adxl367_dev *dev, enum adxl367_odr odr)
Selects the Output Data Rate of the device.
Definition: adxl367.c:496
Structure holding the parameters for ADXL367 device initialization.
Definition: adxl367.h:451
enum adxl367_odr odr
Definition: adxl367.h:436
Definition: iio_adxl367.h:44
Definition: iio_adxl367.h:51
int adxl367_set_range(struct adxl367_dev *dev, enum adxl367_range range)
Selects the measurement range.
Definition: adxl367.c:465
int adxl367_remove(struct adxl367_dev *dev)
Frees the resources allocated by adxl367_init().
Definition: adxl367.c:138
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:65
const char * name
Definition: iio_types.h:131
uint16_t y_offset
Definition: adxl367.h:443
int adxl367_iio_remove(struct adxl367_iio_dev *desc)
Free the resources allocated by adxl367_iio_init().
Definition: iio_adxl367.c:773
@ ADXL367_OP_MEASURE
Definition: adxl367.h:306
Structure holding pointers to show and store functions.
Definition: iio_types.h:129
int adxl367_iio_remove(struct adxl367_iio_dev *desc)
Free the resources allocated by adxl367_iio_init().
Definition: iio_adxl367.c:773
adxl367_range
Enum for selecting range.
Definition: adxl367.h:313
int32_t iio_parse_value(char *buf, enum iio_val fmt, int32_t *val, int32_t *val2)
Definition: iio.c:630
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:562
uint32_t active_channels
Definition: iio_adxl367.h:47
struct adxl367_init_param * adxl367_initial_param
Definition: iio_adxl367.h:52
uint16_t z_offset
Definition: adxl367.h:444
int iio_format_value(char *buf, uint32_t len, enum iio_val fmt, int32_t size, int32_t *vals)
Definition: iio.c:686
@ ADXL367_4G_RANGE
Definition: adxl367.h:315
#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
Header file of ADXL367 Driver.
struct iio_device * iio_dev
Definition: iio_adxl367.h:46
struct adxl367_dev * adxl367_dev
Definition: iio_adxl367.h:45
@ IIO_TEMP
Definition: iio_types.h:69
enum iio_chan_type type
Definition: iio_types.h:109
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:255
#define NULL
Definition: wrapper.h:64
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:113
int16_t ch_num
Definition: iio_types.h:105
Structure holding channels and attributes of a device.
Definition: iio_types.h:247
uint16_t x_offset
Definition: adxl367.h:442
#define ADXL367_ACCEL_CHANNEL(index, axis)
Definition: iio_adxl367.c:859
Definition: iio_types.h:151
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:433
int32_t no_os_sign_extend32(uint32_t value, int index)
@ ADXL367_8G_RANGE
Definition: adxl367.h:316