![]() |
Documentation
Tools for embedded systems
|
An implementation of the Tapped Delay Line (TDL) structure in O(1). More...
Data Structures | |
| struct | qTDL_t |
| A Tapped Delay Line (TDL) object. More... | |
Functions | |
| void | qTDL_Setup (qTDL_t *const q, float *const area, const size_t n, const float initVal) |
| Setup and initialize a Tapped Delay Line (TDL) instance by setting the default optimal parameters. | |
| void | qTDL_Flush (qTDL_t *const q, const float initVal) |
| Clears all delays from the TDL and sets them to the specified value. | |
| float | qTDL_GetOldest (const qTDL_t *const q) |
| Get the oldest sample from the TDL x(k-n). | |
| float | qTDL_GetAtIndex (const qTDL_t *const q, const size_t i) |
| Get the specified delayed sample from the TDL x(k-i). | |
| float | qTDL_GetRecent (const qTDL_t *const q) |
| Get the most recent sample from the TDL x(k). | |
| void | qTDL_InsertSample (qTDL_t *const q, const float sample) |
| Insert a new sample to the TDL removing the oldest sample. | |
An implementation of the Tapped Delay Line (TDL) structure in O(1).
| void qTDL_Flush | ( | qTDL_t *const | q, |
| const float | initVal ) |
Clears all delays from the TDL and sets them to the specified value.
| [in] | q | A pointer to the TDL instance. |
| [in] | initVal | The value with which all TDL delays will be initialized |
| float qTDL_GetAtIndex | ( | const qTDL_t *const | q, |
| const size_t | i ) |
Get the specified delayed sample from the TDL x(k-i).
| [in] | q | A pointer to the TDL instance. |
| [in] | i | The requested delay index |
| float qTDL_GetOldest | ( | const qTDL_t *const | q | ) |
Get the oldest sample from the TDL x(k-n).
| [in] | q | A pointer to the TDL instance. |
| float qTDL_GetRecent | ( | const qTDL_t *const | q | ) |
Get the most recent sample from the TDL x(k).
| [in] | q | A pointer to the TDL instance. |
| void qTDL_InsertSample | ( | qTDL_t *const | q, |
| const float | sample ) |
Insert a new sample to the TDL removing the oldest sample.
| [in] | q | A pointer to the TDL instance. |
| [in] | sample | The new sample to insert. |
| void qTDL_Setup | ( | qTDL_t *const | q, |
| float *const | area, | ||
| const size_t | n, | ||
| const float | initVal ) |
Setup and initialize a Tapped Delay Line (TDL) instance by setting the default optimal parameters.
| [in] | q | A pointer to the TDL instance. |
| [in] | area | An array of size n where delays will be stored |
| [in] | n | The number of elements on area. |
| [in] | initVal | The value with which all TDL delays will be initialized |