This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
resources:tools-software:uc-drivers:adxl355 [22 Mar 2022 10:28] – [ADXL355 IIO Device Configuration] Ramona Bolboaca | resources:tools-software:uc-drivers:adxl355 [27 Jun 2023 10:37] (current) – [ADXL355 IIO Code Driver Documentation] Ramona Bolboaca | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== ADXL355 - No-OS Driver ====== | ||
+ | |||
===== Supported Devices ===== | ===== Supported Devices ===== | ||
* [[adi> | * [[adi> | ||
Line 24: | Line 26: | ||
The goal of ADI Microcontroller No-OS is to be able to provide reference projects for lower end processors, which can't run Linux, or aren't running a specific operating system, to help those customers using microcontrollers with ADI parts. ADI No-OS offers **generic drivers** which can be used as a base for any microcontroller platform and also **example projects** which are using these drivers on various microcontroller platforms. | The goal of ADI Microcontroller No-OS is to be able to provide reference projects for lower end processors, which can't run Linux, or aren't running a specific operating system, to help those customers using microcontrollers with ADI parts. ADI No-OS offers **generic drivers** which can be used as a base for any microcontroller platform and also **example projects** which are using these drivers on various microcontroller platforms. | ||
- | For more information about ADI No-OS and supported microcontroller platforms see: [[: | + | For more information about ADI No-OS and supported microcontroller platforms see: [[: |
Line 70: | Line 72: | ||
==== ADXL355 Code Driver Documentation ==== | ==== ADXL355 Code Driver Documentation ==== | ||
Source code documentation for the driver is automatically generated using the Doxygen tool and it is available below: | Source code documentation for the driver is automatically generated using the Doxygen tool and it is available below: | ||
- | * [[http:// | + | * [[http:// |
- | * [[http:// | + | * [[http:// |
Line 202: | Line 204: | ||
==== ADXL355 IIO Code Driver Documentation ==== | ==== ADXL355 IIO Code Driver Documentation ==== | ||
Source code documentation for the IIO driver is automatically generated using the Doxygen tool and it is available below: | Source code documentation for the IIO driver is automatically generated using the Doxygen tool and it is available below: | ||
- | * [[http:// | + | * [[http:// |
- | * [[http:// | + | * [[http:// |
==== ADXL355 IIO Device Configuration ==== | ==== ADXL355 IIO Device Configuration ==== | ||
=== Device Attributes === | === Device Attributes === | ||
ADXL355 IIO device does not have any device specific attributes. | ADXL355 IIO device does not have any device specific attributes. | ||
=== Device Channels === | === Device Channels === | ||
- | ADXL355 IIO device has 0 input channels and 4 output | + | ADXL355 IIO device has 0 output |
== Acceleration channels == | == Acceleration channels == | ||
Line 219: | Line 221: | ||
The attributes are: | The attributes are: | ||
- | * calibbias | + | * calibbias |
- | * filter_high_pass_3db_frequency (shared) | + | * filter_high_pass_3db_frequency (shared) |
- | * filter_high_pass_3db_frequency_available (shared) | + | * filter_high_pass_3db_frequency_available (shared) |
- | * raw | + | * raw - is the raw acceleration value read from the device. |
- | * sampling_frequency (shared) | + | * sampling_frequency (shared) |
- | * sampling_frequency_available (shared) | + | * sampling_frequency_available (shared) |
- | * scale (shared) | + | * scale (shared) |
+ | ^ Sampling frequency (Hz) ^ High Pass Filter Corner Frequency available values (Hz) ||||||^ | ||
+ | | 4000.000000 | ||
+ | | 2000.000000 | ||
+ | | 1000.000000 | ||
+ | | 500.000000 | ||
+ | | 250.000000 | ||
+ | | 125.000000 | ||
+ | | 62.500000 | ||
+ | | 31.250000 | ||
+ | | 15.625000 | ||
+ | | 7.813000 | ||
+ | | 3.906000 | ||
+ | |||
+ | |||
+ | < | ||
+ | converted_accel [m/s^2] = (raw + calibbias << 4) * scale | ||
+ | converted_accel [m/s^2] = (raw + calibbias << 4) * 0.000038245 | ||
+ | </ | ||
== Temperature channel == | == Temperature channel == | ||
Line 233: | Line 253: | ||
The channel has 3 attributes, as follows: | The channel has 3 attributes, as follows: | ||
- | * offset - is the offset that has to be applied to the raw value in order to obtain the converted real value in degrees Celsius (see formula below). It has a constant value equal to -2111.250000. | + | * offset - is the offset that has to be applied to the raw value in order to obtain the converted real value in degrees Celsius (see formula below). It has a constant value equal to **-2111.250000**. |
- | * raw - is the raw value read from the device | + | * raw - is the raw temperature |
- | * scale - is the scale that has to be applied to the raw value in order to obtain the converted real value in degrees Celsius (see formula below). It has a constant value equal to: -110.497238 | + | * scale - is the scale that has to be applied to the raw value in order to obtain the converted real value in degrees Celsius (see formula below). It has a constant value equal to: **-110.497238**. |
- | < | + | < |
+ | converted_temp | ||
+ | converted_temp [degrees Celsius] = (2111.25 - raw) * 110.497238 | ||
+ | </ | ||
Line 243: | Line 266: | ||
The ADXL355 IIO devices driver supports the usage of a data buffer for reading purposes. | The ADXL355 IIO devices driver supports the usage of a data buffer for reading purposes. | ||
- | === Device triggers === | ||
==== ADXL355 IIO Driver Initialization Example ==== | ==== ADXL355 IIO Driver Initialization Example ==== | ||
< | < |