|
hsk_libs-dev
163:b63ae088cc97
High Speed Karlsruhe XC878 library collection
|
HSK Filter generator. More...
#include <Infineon/XC878.h>#include <string.h>
Go to the source code of this file.
Macros | |
| #define | FILTER_FACTORY(prefix, valueType, sumType, sizeType, size) |
| Generates a filter. More... | |
| #define | FILTER_GROUP_FACTORY(prefix, filters, valueType, sumType, sizeType, size) |
| Generates a group of filters. More... | |
HSK Filter generator.
This file offers preprocessor macros to filter analogue values, by calculating the average of a set of a given length.
The buffer for the filter is stored in xdata memory.
| #define FILTER_FACTORY | ( | prefix, | |
| valueType, | |||
| sumType, | |||
| sizeType, | |||
| size | |||
| ) |
Generates a filter.
The filter can be accessed with:
| prefix | A prefix for the generated internals and functions |
| valueType | The data type of the stored values |
| sumType | A data type that can contain the sum of all buffered values |
| sizeType | A data type that can hold the length of the buffer |
| size | The length of the buffer |
| #define FILTER_GROUP_FACTORY | ( | prefix, | |
| filters, | |||
| valueType, | |||
| sumType, | |||
| sizeType, | |||
| size | |||
| ) |
Generates a group of filters.
The filters can be accessed with:
| prefix | A prefix for the generated internals and functions |
| filters | The number of filters |
| valueType | The data type of the stored values |
| sumType | A data type that can contain the sum of all buffered values |
| sizeType | A data type that can hold the length of the buffer |
| size | The length of the buffer |