|
int | adxl355_read_device_data (struct adxl355_dev *dev, uint8_t base_address, uint16_t size, uint8_t *read_data) |
| Reads from the device. More...
|
|
int | adxl355_write_device_data (struct adxl355_dev *dev, uint8_t base_address, uint16_t size, uint8_t *write_data) |
| Writes to the device. More...
|
|
int | adxl355_init (struct adxl355_dev **device, struct adxl355_init_param init_param) |
| Initializes the communication peripheral and checks if the ADXL355 part is present. More...
|
|
int | adxl355_remove (struct adxl355_dev *dev) |
| Free the resources allocated by adxl355_init(). More...
|
|
int | adxl355_set_op_mode (struct adxl355_dev *dev, enum adxl355_op_mode op_mode) |
| Places the device into the given operation mode. More...
|
|
int | adxl355_get_op_mode (struct adxl355_dev *dev, enum adxl355_op_mode *op_mode) |
| Gets the current operation mode of the device. More...
|
|
int | adxl355_soft_reset (struct adxl355_dev *dev) |
| Performs a soft reset of the device. More...
|
|
int | adxl355_set_self_test (struct adxl355_dev *dev) |
| Triggers the self-test feature. More...
|
|
int | adxl355_set_range (struct adxl355_dev *dev, enum adxl355_range range_val) |
| Sets the measurement range register value. More...
|
|
int | adxl355_set_odr_lpf (struct adxl355_dev *dev, enum adxl355_odr_lpf odr_lpf_val) |
| Writes the low-pass filter settings. More...
|
|
int | adxl355_set_hpf_corner (struct adxl355_dev *dev, enum adxl355_hpf_corner hpf_corner_val) |
| Writes the high-pass filter settings. More...
|
|
int | adxl355_set_offset (struct adxl355_dev *dev, uint16_t x_offset, uint16_t y_offset, uint16_t z_offset) |
| Sets an offset value for each axis (Offset Calibration). More...
|
|
int | adxl355_get_raw_xyz (struct adxl355_dev *dev, uint32_t *raw_x, uint32_t *raw_y, uint32_t *raw_z) |
| Reads the raw output data. More...
|
|
int | adxl355_get_xyz (struct adxl355_dev *dev, struct adxl355_frac_repr *x, struct adxl355_frac_repr *y, struct adxl355_frac_repr *z) |
| Reads the raw output data of each axis and converts it to g. More...
|
|
int | adxl355_get_raw_temp (struct adxl355_dev *dev, uint16_t *raw_temp) |
| Reads the raw temperature. More...
|
|
int | adxl355_get_temp (struct adxl355_dev *dev, struct adxl355_frac_repr *temp) |
| Reads the raw temperature data and converts it to millidegrees Celsius. More...
|
|
int | adxl355_get_sts_reg (struct adxl355_dev *dev, union adxl355_sts_reg_flags *status_flags) |
| Reads the status register value. More...
|
|
int | adxl355_get_nb_of_fifo_entries (struct adxl355_dev *dev, uint8_t *reg_value) |
| Reads the number of FIFO entries register value. More...
|
|
int | adxl355_set_fifo_samples (struct adxl355_dev *dev, uint8_t reg_value) |
| Sets the number of FIFO samples register value. More...
|
|
int | adxl355_get_raw_fifo_data (struct adxl355_dev *dev, uint8_t *fifo_entries, uint32_t *raw_x, uint32_t *raw_y, uint32_t *raw_z) |
| Reads fifo data and returns the raw values. More...
|
|
int | adxl355_get_fifo_data (struct adxl355_dev *dev, uint8_t *fifo_entries, struct adxl355_frac_repr *x, struct adxl355_frac_repr *y, struct adxl355_frac_repr *z) |
| Reads fifo data and returns the values converted in m/s^2. More...
|
|
int | adxl355_conf_act_en (struct adxl355_dev *dev, union adxl355_act_en_flags act_config) |
| Configures the activity enable register. More...
|
|
int | adxl355_conf_act_thr (struct adxl355_dev *dev, uint16_t act_thr) |
| Configures the activity threshold registers. More...
|
|
int | adxl355_set_act_cnt_reg (struct adxl355_dev *dev, uint8_t act_cnt) |
| Writes the activity count register value. More...
|
|
int | adxl355_config_int_pins (struct adxl355_dev *dev, union adxl355_int_mask int_conf) |
| Configures the interrupt map for INT1 and INT2 pins. More...
|
|
int | adxl355_set_int_pol (struct adxl355_dev *dev, enum adxl355_int_pol int_pol) |
| Sets the interrupt polarity. More...
|
|
Implementation of ADXL355 Driver.
- Author
- RBolboac (ramon.nosp@m.a.bo.nosp@m.lboac.nosp@m.a@an.nosp@m.alog..nosp@m.com)
Copyright 2022(c) Analog Devices, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- Neither the name of Analog Devices, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
- The use of this software may or may not infringe the patent rights of one or more patent holders. This license does not release you from the requirement that you obtain separate licenses from these patent holders to use this software.
- Use of the software either in source or binary form, must be run on or directly connected to an Analog Devices Inc. component.
THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.