Go to the documentation of this file.
33 #ifndef __ADXRS453_H__
34 #define __ADXRS453_H__
46 #define ADXRS453_READ (1 << 7)
47 #define ADXRS453_WRITE (1 << 6)
48 #define ADXRS453_SENSOR_DATA (1 << 5)
50 #define ADXRS453_REG_RATE 0x00
51 #define ADXRS453_REG_TEM 0x02
52 #define ADXRS453_REG_LOCST 0x04
53 #define ADXRS453_REG_HICST 0x06
54 #define ADXRS453_REG_QUAD 0x08
55 #define ADXRS453_REG_FAULT 0x0A
56 #define ADXRS453_REG_PID 0x0C
57 #define ADXRS453_REG_SN_HIGH 0x0E
58 #define ADXRS453_REG_SN_LOW 0x10
87 uint8_t register_address);
91 uint8_t register_address,
92 uint16_t register_value);
103 #endif // __ADXRS453_H__
Header file for iio_trigger.
int32_t no_os_spi_write_and_read(struct no_os_spi_desc *desc, uint8_t *data, uint16_t bytes_number)
Write and read data to/from SPI.
Definition: no_os_spi.c:159
#define ADXRS453_REG_TEM
Definition: adxrs453.h:51
uint16_t adxrs453_get_register_value(struct adxrs453_dev *dev, uint8_t register_address)
Reads the value of a register.
Definition: adxrs453.c:102
Header file of SPI Interface.
float adxrs453_get_rate(struct adxrs453_dev *dev)
Reads the rate data and converts it to degrees/second.
Definition: adxrs453.c:220
uint32_t adxrs453_get_sensor_data(struct adxrs453_dev *dev)
Reads the sensor data.
Definition: adxrs453.c:180
#define ADXRS453_SENSOR_DATA
Definition: adxrs453.h:48
struct iio_trigger adxrs290_iio_trig_desc
Definition: iio_adxrs290_trig.c:47
#define ADXRS453_READ
Definition: adxrs453.h:46
int iio_trig_disable(void *trig)
Disable system interrupt which is linked to the given trigger.
Definition: iio_trigger.c:127
float adxrs453_get_temperature(struct adxrs453_dev *dev)
Reads the temperature sensor data and converts it to degrees Celsius.
Definition: adxrs453.c:244
float adxrs453_get_rate(struct adxrs453_dev *dev)
Reads the rate data and converts it to degrees/second.
Definition: adxrs453.c:220
#define ADXRS453_REG_RATE
Definition: adxrs453.h:50
uint16_t adxrs453_get_register_value(struct adxrs453_dev *dev, uint8_t register_address)
Reads the value of a register.
Definition: adxrs453.c:102
Definition: ad9361_util.h:69
uint32_t adxrs453_get_sensor_data(struct adxrs453_dev *dev)
Reads the sensor data.
Definition: adxrs453.c:180
int iio_trig_enable(void *trig)
Enable system interrupt which is linked to the given trigger.
Definition: iio_trigger.c:110
void adxrs453_set_register_value(struct adxrs453_dev *dev, uint8_t register_address, uint16_t register_value)
Writes data into a register.
Definition: adxrs453.c:145
Structure holding SPI descriptor.
Definition: no_os_spi.h:192
Definition: adxrs453.h:64
struct no_os_spi_init_param spi_init
Definition: adxrs453.h:71
float adxrs453_get_temperature(struct adxrs453_dev *dev)
Reads the temperature sensor data and converts it to degrees Celsius.
Definition: adxrs453.c:244
void * no_os_malloc(size_t size)
Allocate memory and return a pointer to it.
Definition: chibios_alloc.c:43
void adxrs453_set_register_value(struct adxrs453_dev *dev, uint8_t register_address, uint16_t register_value)
Writes data into a register.
Definition: adxrs453.c:145
int32_t adxrs453_remove(struct adxrs453_dev *dev)
Free the resources allocated by adxrs453_init().
Definition: adxrs453.c:83
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
int32_t adxrs453_init(struct adxrs453_dev **device, struct adxrs453_init_param init_param)
Initializes the ADXRS453 and checks if the device is present.
Definition: adxrs453.c:53
int32_t adxrs453_remove(struct adxrs453_dev *dev)
Free the resources allocated by adxrs453_init().
Definition: adxrs453.c:83
Definition: iio_types.h:231
struct no_os_spi_desc * spi_desc
Definition: adxrs453.h:66
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:113
#define ADXRS453_WRITE
Definition: adxrs453.h:47
int32_t no_os_spi_remove(struct no_os_spi_desc *desc)
Free the resources allocated by no_os_spi_init().
Definition: no_os_spi.c:116
Definition: adxrs453.h:69
int32_t adxrs453_init(struct adxrs453_dev **device, struct adxrs453_init_param init_param)
Initializes the ADXRS453 and checks if the device is present.
Definition: adxrs453.c:53
int32_t no_os_spi_init(struct no_os_spi_desc **desc, const struct no_os_spi_init_param *param)
Initialize the SPI communication peripheral.
Definition: no_os_spi.c:52
bool is_synchronous
Definition: iio_types.h:234
Header file of ADXRS453 Driver.
#define ADXRS453_REG_PID
Definition: adxrs453.h:56
Structure holding the parameters for SPI initialization.
Definition: no_os_spi.h:140