Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
resources:tools-software:linux-drivers:iio-accelerometer:adxl372 [05 Sep 2018 13:45] – Added new github links Stefan Poparesources:tools-software:linux-drivers:iio-accelerometer:adxl372 [16 Sep 2019 15:58] – Updated the buffer management description Stefan Popa
Line 20: Line 20:
  
 ^ Source ^ Mainlined? ^ ^ Source ^ Mainlined? ^
-| [[linux.github>master/drivers/iio/accel/adxl372.c|git]] | [In progress...] |+| [[git.linux.org>drivers/iio/accel/adxl372.c|git]] | [[git.linux.org>drivers/iio/accel/adxl372.c|Yes] |
  
 ===== Files ===== ===== Files =====
  
 ^ Function ^ File ^ ^ Function ^ File ^
-| core driver | [[linux.github>master/drivers/iio/accel/adxl372.c]] | +| core driver | [[linux.github>master?drivers/iio/accel/adxl372.c | drivers/iio/accel/adxl372.c]] | 
-| spi driver | [[linux.github>master/drivers/iio/accel/adxl372_spi.c]] | +| spi driver | [[linux.github>master?drivers/iio/accel/adxl372_spi.c | drivers/iio/accel/adxl372_spi.c]] | 
-| i2c driver | [[linux.github>master/drivers/iio/accel/adxl372_i2c.c]] | +| i2c driver | [[linux.github>master?drivers/iio/accel/adxl372_i2c.c | drivers/iio/accel/adxl372_i2c.c]] | 
-| header | [[linux.github>master/drivers/iio/accel/adxl372.h]] |+| header | [[linux.github>master?drivers/iio/iio/accel/adxl372.h | drivers/iio/accel/adxl372.h]] | 
 +| Documentation | [[linux.github>master?Documentation/devicetree/bindings/iio/accel/adxl345.txt | adxl345.txt]] | 
 +| ABI documentation| [[linux.github>master?Documentation/ABI/testing/sysfs-bus-iio-accel-adxl372 | sysfs-bus-iio-accel-adxl372]] |
  
-===== Devicetree =====+Example device tree 
 + 
 +^ Function ^ File ^ 
 +| dts  | [[linux.github>rpi-4.19.y?arch/arm/boot/dts/overlays/rpi-adxl372-overlay.dts | rpi-adxl372-overlay.dts]] | 
 + 
 +====== Example platform device initialization ======
  
 Required devicetree properties: Required devicetree properties:
Line 94: Line 101:
 -r--r--r-- 1 root root 4096 Oct 25 04:25 name -r--r--r-- 1 root root 4096 Oct 25 04:25 name
 lrwxrwxrwx 1 root root    0 Oct 25 04:25 of_node -> ../../../../../../../../firmware/devicetree/base/soc/spi@7e204000/adxl372@0 lrwxrwxrwx 1 root root    0 Oct 25 04:25 of_node -> ../../../../../../../../firmware/devicetree/base/soc/spi@7e204000/adxl372@0
 +-r--r--r-- 1 root root 4096 Oct 25 04:25 peak_fifo_mode_enable
 drwxr-xr-x 2 root root    0 Oct 25 04:25 power drwxr-xr-x 2 root root    0 Oct 25 04:25 power
 -r--r--r-- 1 root root 4096 Oct 25 04:25 sampling_frequency_available -r--r--r-- 1 root root 4096 Oct 25 04:25 sampling_frequency_available
Line 175: Line 183:
 </xterm></WRAP> </xterm></WRAP>
  
-===== Trigger management =====+===== Using the FIFO Buffer ===== 
 + 
 +**Description:**\\ 
 +The ADXL372 includes a deep, 512 sample FIFO buffer. The 512 FIFO samples can be allotted in several ways, such as the following: 
 +  * 170 sample sets of concurrent 3-axis data 
 +  * 256 sample sets of concurrent 2-axis data (user selectable) 
 +  * 512 sample sets of single-axis data 
 +  * 170 sets of impact event peak (x, y, z) 
 + 
 +==== Trigger management ==== 
 + 
 +**Description:**\\ 
 +The FIFO is configured in **Stream Mode** and **FIFO_FULL** interrupt is enabled. The interrupt will be triggered when the FIFO watermark is reached.
  
 <WRAP box bggreen><wrap info>This specifies any shell prompt running on the target</wrap> <WRAP box bggreen><wrap info>This specifies any shell prompt running on the target</wrap>
Line 183: Line 203:
 </xterm></WRAP> </xterm></WRAP>
  
-===== Buffer management =====+==== Buffer management ====
  
 **Description:**\\ **Description:**\\
Line 207: Line 227:
  
 Before enabling the buffer, a few steps need to be completed.  Before enabling the buffer, a few steps need to be completed. 
-  * Firstthe axis that we want to read data from need to be enabled:+  * For exampleif we want the FIFO to store sample sets of concurrent 3-axis data, we need to enable the scan elements:
 <WRAP box bggreen><wrap info>This specifies any shell prompt running on the target</wrap> <WRAP box bggreen><wrap info>This specifies any shell prompt running on the target</wrap>
 <xterm> <xterm>
resources/tools-software/linux-drivers/iio-accelerometer/adxl372.txt · Last modified: 16 Sep 2019 16:09 by Stefan Popa