Skip to content

Commit f9d6fa7

Browse files
Updated Documentation to Reflect Actual Methods
1 parent fa12c7b commit f9d6fa7

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

README.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,14 @@ To install this library, just place this entire folder as a subfolder in your Ar
1919

2020
When installed, this library should look like:
2121

22+
```
2223
Arduino\libraries\arduinoFTT (this library's folder)
2324
Arduino\libraries\arduinoFTT\arduinoFTT.cpp (the library implementation file, uses 32 bits floats vectors)
2425
Arduino\libraries\arduinoFTT\arduinoFTT.h (the library header file, uses 32 bits floats vectors)
2526
Arduino\libraries\arduinoFTT\keywords.txt (the syntax coloring file)
2627
Arduino\libraries\arduinoFTT\examples (the examples in the "open" menu)
2728
Arduino\libraries\arduinoFTT\readme.md (this file)
29+
```
2830

2931
### Building on Arduino
3032

@@ -44,28 +46,31 @@ select arduinoFTT. This will add a corresponding line to the top of your sketch
4446
<del>* Spectrum table? </del>
4547

4648
### API
49+
The exclamation mark `!` denotes that this method is deprecated and may be removed on future revisions.
4750

48-
* **arduinoFFT**(void);
51+
* **!arduinoFFT**(void);
4952
* **arduinoFFT**(double *vReal, double *vImag, uint16_t samples, double samplingFrequency);
5053
Constructor
5154
* **~arduinoFFT**(void);
5255
Destructor
53-
* **ComplexToMagnitude**(double *vReal, double *vImag, uint16_t samples);
56+
* **!ComplexToMagnitude**(double *vReal, double *vImag, uint16_t samples);
5457
* **ComplexToMagnitude**();
55-
* **Compute**(double *vReal, double *vImag, uint16_t samples, uint8_t dir);
56-
* **Compute**(double *vReal, double *vImag, uint16_t samples, uint8_t power, uint8_t dir);
58+
* **!Compute**(double *vReal, double *vImag, uint16_t samples, uint8_t dir);
59+
* **!Compute**(double *vReal, double *vImag, uint16_t samples, uint8_t power, uint8_t dir);
5760
* **Compute**(uint8_t dir);
5861
Calcuates the Fast Fourier Transform.
59-
* **DCRemoval**(double *vData, uint16_t samples);
62+
* **!DCRemoval**(double *vData, uint16_t samples);
6063
* **DCRemoval**();
6164
Removes the DC component from the sample data.
62-
* **MajorPeak**(double *vD, uint16_t samples, double samplingFrequency);
65+
* **!MajorPeak**(double *vD, uint16_t samples, double samplingFrequency);
66+
* **!MajorPeak**(double *vD, uint16_t samples, double samplingFrequency, double *f, double *v);
6367
* **MajorPeak**();
68+
* **MajorPeak**(double *f, double *v);
6469
* **MajorPeakParabola**();
6570
Looks for and returns the frequency of the biggest spike in the analyzed signal.
6671
* **Revision**(void);
6772
Returns the library revision.
68-
* **Windowing**(double *vData, uint16_t samples, uint8_t windowType, uint8_t dir);
73+
* **!Windowing**(double *vData, uint16_t samples, uint8_t windowType, uint8_t dir);
6974
* **Windowing**(uint8_t windowType, uint8_t dir);
7075
Performs a windowing function on the values array. The possible windowing options are:
7176
* FFT_WIN_TYP_RECTANGLE
@@ -78,5 +83,5 @@ Performs a windowing function on the values array. The possible windowing option
7883
* FFT_WIN_TYP_BLACKMAN_HARRIS
7984
* FFT_WIN_TYP_FLT_TOP
8085
* FFT_WIN_TYP_WELCH
81-
* **Exponent**(uint16_t value);
86+
* **!Exponent**(uint16_t value);
8287
Calculates and returns the base 2 logarithm of the given value.

0 commit comments

Comments
 (0)