CALCRATIO API/interface file.
Go to the source code of this file.
Data Structures | |
| struct | CalcRatio_t |
| CALCRATIO Parameters. More... | |
Macros | |
| #define | CALCRATIO_MA1_LENGTH (1024U) |
| Length of the first-stage moving average filter used in ratio smoothing. More... | |
| #define | CALCRATIO_MA2_LENGTH (128U) |
| Length of the second-stage moving average filter for refined smoothing. More... | |
Functions | |
| int32_t | calcRatio_init (CalcRatio_t *calcRatioInstance, float sampleRateIn, float sampleRateOut) |
| Initializes the ratio calculation module for ASRC (Asynchronous Sample Rate Converter) with input and output sample rates. More... | |
| int32_t | calcRatio_exec (CalcRatio_t *calcRatioInstance, double *Tx_Counter, double *Rx_Counter) |
| Executes the CALCRATIO algorithm to derive and update the smoothed actual sample rate ratio. More... | |
| double | calcRatio_getActualratio (CalcRatio_t *calcRatioInstance) |
| Safely retrieve the derived actual sample rate ratio. More... | |