iLLD_TC27xD  1.0
IfxStdIf_Pos.c
Go to the documentation of this file.
1 /**
2  * \file IfxStdIf_Pos.c
3  * \brief Standard interface: Position interface
4  * \ingroup IfxStdIf
5  *
6  * \version iLLD_1_0_0_11_0
7  * \copyright Copyright (c) 2013 Infineon Technologies AG. All rights reserved.
8  *
9  *
10  * IMPORTANT NOTICE
11  *
12  *
13  * Infineon Technologies AG (Infineon) is supplying this file for use
14  * exclusively with Infineon's microcontroller products. This file can be freely
15  * distributed within development tools that are supporting such microcontroller
16  * products.
17  *
18  * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
19  * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
20  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
21  * INFINEON SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL,
22  * OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
23  *
24  */
25 
26 #include "IfxStdIf_Pos.h"
27 
29 {
30  config->offset = 0;
31  config->reversed = FALSE;
32  config->resolution = 0;
33  config->periodPerRotation = 1;
35  config->updatePeriod = 0.001;
36  config->speedModeThreshold = 0;
37  config->minSpeed = 0; // 0 rpm
38  config->maxSpeed = 20000.0 / 60.0 * (2 * IFX_PI); // 20000 rpm
39  config->speedFilterEnabled = FALSE;
40  config->speedFilerCutOffFrequency = 0;
41 
42 }