![]() |
Infineon MOTIX™ MCU TLE988x/9x Device Family SDK
|
Go to the source code of this file.
General type declarations.
Data Structures | |
struct | StdRealComplex |
Complex type definition based on TStdReal. More... | |
struct | TComplex |
Complex type definition. More... | |
struct | TPhaseCurr |
2 phase currents type definition More... | |
Macros | |
#define | STD_REAL_FIX_POINT_16 (1) |
Standard real type definitions to ease the use of different types. More... | |
#define | STD_REAL_FIX_POINT_32 (2) |
#define | STD_REAL_FLOAT_32 (3) |
#define | STD_REAL_TYPE (STD_REAL_FIX_POINT_16) |
#define | bool unsigned int |
Boolean definitions. More... | |
#define | true 1 |
#define | false 0 |
#define | NULL (0U) |
NULL pointer definition. More... | |
#define | STD_REAL_SHIFT_Qn8_y (-8 - 1) |
Shift definitions for fix point format. More... | |
#define | STD_REAL_SHIFT_Qn7_y (-7 - 1) |
Range=[-2^(-8), 2^(-8)[; Q1.15=>Step=1/2^23, Q1.31 =>Step=1/2^39. More... | |
#define | STD_REAL_SHIFT_Qn6_y (-6 - 1) |
Range=[-2^(-7), 2^(-7)[; Q1.15=>Step=1/2^22, Q1.31 =>Step=1/2^38. More... | |
#define | STD_REAL_SHIFT_Qn5_y (-5 - 1) |
Range=[-2^(-6), 2^(-6)[; Q1.15=>Step=1/2^21, Q1.31 =>Step=1/2^37. More... | |
#define | STD_REAL_SHIFT_Qn4_y (-4 - 1) |
Range=[-2^(-5), 2^(-5)[; Q1.15=>Step=1/2^20, Q1.31 =>Step=1/2^36. More... | |
#define | STD_REAL_SHIFT_Qn3_y (-3 - 1) |
Range=[-2^(-4), 2^(-4)[; Q1.15=>Step=1/2^19, Q1.31 =>Step=1/2^35. More... | |
#define | STD_REAL_SHIFT_Qn2_y (-2 - 1) |
Range=[-2^(-3), 2^(-3)[; Q1.15=>Step=1/2^18, Q1.31 =>Step=1/2^34. More... | |
#define | STD_REAL_SHIFT_Qn1_y (-1 - 1) |
Range=[-2^(-2), 2^(-2)[; Q1.15=>Step=1/2^17, Q1.31 =>Step=1/2^33. More... | |
#define | STD_REAL_SHIFT_Q0_y ( 0 - 1) |
Range=[-2^(-1), 2^(-1)[; Q1.15=>Step=1/2^16, Q1.31 =>Step=1/2^32. More... | |
#define | STD_REAL_SHIFT_Q1_y ( 1 - 1) |
Range=[-2^0 , 2^0[; Q1.15=>Step=1/2^15, Q1.31 =>Step=1/2^31. More... | |
#define | STD_REAL_SHIFT_Q2_y ( 2 - 1) |
Range=[-2^1 , 2^1[; Q1.15=>Step=1/2^14, Q1.31 =>Step=1/2^30. More... | |
#define | STD_REAL_SHIFT_Q3_y ( 3 - 1) |
Range=[-2^2 , 2^2[; Q1.15=>Step=1/2^13, Q1.31 =>Step=1/2^29. More... | |
#define | STD_REAL_SHIFT_Q4_y ( 4 - 1) |
Range=[-2^3 , 2^3[; Q1.15=>Step=1/2^12, Q1.31 =>Step=1/2^28. More... | |
#define | STD_REAL_SHIFT_Q5_y ( 5 - 1) |
Range=[-2^4 , 2^4[; Q1.15=>Step=1/2^11, Q1.31 =>Step=1/2^27. More... | |
#define | STD_REAL_SHIFT_Q6_y ( 6 - 1) |
Range=[-2^5 , 2^5[; Q1.15=>Step=1/2^10, Q1.31 =>Step=1/2^26. More... | |
#define | STD_REAL_SHIFT_Q7_y ( 7 - 1) |
Range=[-2^6 , 2^6[; Q7.9 =>Step=1/2^9, Q8.24 =>Step=1/2^25. More... | |
#define | STD_REAL_SHIFT_Q8_y ( 8 - 1) |
Range=[-2^7 , 2^7[; Q8.8 =>Step=1/2^8, Q8.24 =>Step=1/2^24. More... | |
#define | STD_REAL_SHIFT_Q9_y ( 9 - 1) |
Range=[-2^8 , 2^8[; Q9.7 =>Step=1/2^7, Q9.23 =>Step=1/2^23. More... | |
#define | STD_REAL_SHIFT_Q10_y ( 10 - 1) |
Range=[-2^9 , 2^9[; Q10.6=>Step=1/2^6, Q10.22=>Step=1/2^22. More... | |
#define | STD_REAL_SHIFT_Q11_y ( 11 - 1) |
Range=[-2^10 , 2^10[; Q11.5=>Step=1/2^5, Q11.21=>Step=1/2^21. More... | |
#define | STD_REAL_SHIFT_Q12_y ( 12 - 1) |
Range=[-2^11 , 2^11[; Q12.4=>Step=1/2^4, Q12.20=>Step=1/2^20. More... | |
#define | STD_REAL_SHIFT_Q13_y ( 13 - 1) |
Range=[-2^12 , 2^12[; Q13.3=>Step=1/2^3, Q13.19=>Step=1/2^19. More... | |
#define | STD_REAL_SHIFT_Q14_y ( 14 - 1) |
Range=[-2^13 , 2^13[; Q14.2=>Step=1/2^2, Q14.18=>Step=1/2^18. More... | |
#define | STD_REAL_SHIFT_Q15_y ( 15 - 1) |
Range=[-2^14 , 2^14[; Q15.1=>Step=1/2^1, Q15.17=>Step=1/2^17. More... | |
#define | STD_REAL_SHIFT_Q16_y ( 16 - 1) |
Range=[-2^15 , 2^15[; Q16.0=>Step=1, Q16.16=>Step=1/2^16. More... | |
#define | STD_REAL_SHIFT_Q32_y ( 32 - 1) |
Range=[-2^31 , 2^31[; Q16.0=> Q32.0 =>Step=1 More... | |
#define | NULL_PTR ((void*)0) |
#define | INLINE __STATIC_INLINE |
#define | BIT0_POS (0u) |
#define | BIT1_POS (1u) |
#define | BIT2_POS (2u) |
#define | BIT3_POS (3u) |
#define | BIT4_POS (4u) |
#define | BIT5_POS (5u) |
#define | BIT6_POS (6u) |
#define | BIT7_POS (7u) |
#define | BIT8_POS (8u) |
#define | BIT9_POS (9u) |
#define | BIT10_POS (10u) |
#define | BIT11_POS (11u) |
#define | BIT12_POS (12u) |
#define | BIT13_POS (13u) |
#define | BIT14_POS (14u) |
#define | BIT15_POS (15u) |
#define | BIT16_POS (16u) |
#define | BIT17_POS (17u) |
#define | BIT18_POS (18u) |
#define | BIT19_POS (19u) |
#define | BIT20_POS (20u) |
#define | BIT21_POS (21u) |
#define | BIT22_POS (22u) |
#define | BIT23_POS (23u) |
#define | BIT24_POS (24u) |
#define | BIT25_POS (25u) |
#define | BIT26_POS (26u) |
#define | BIT27_POS (27u) |
#define | BIT28_POS (28u) |
#define | BIT29_POS (29u) |
#define | BIT30_POS (30u) |
#define | BIT31_POS (31u) |
#define | ERR_LOG_CODE_MODULE_DISABLED_IN_CW (-116) |
Error codes definition. More... | |
#define | ERR_LOG_CODE_TIMEOUT (-101) |
Timeout. More... | |
#define | ERR_LOG_CODE_INVALID_VALUE (-103) |
Invalid output value. More... | |
#define | ERR_LOG_CODE_ADC1_SEQ_NOT_RUNNING (-104) |
ADC1 sequence not running. More... | |
#define | ERR_LOG_CODE_ADC2_SEQ_NOT_RUNNING (-105) |
ADC2 sequence not running. More... | |
#define | ERR_LOG_CODE_NO_TRIGGER (-106) |
No watchdog trigger. More... | |
#define | ERR_LOG_CODE_SOW_DISABLED (-107) |
No Short Open Window activated. More... | |
#define | ERR_LOG_CODE_PARAM_OUT_OF_RANGE (-122) |
Parameter out of range. More... | |
#define | ERR_LOG_CODE_SAFE_SHUTDOWN_ACTIVE (-118) |
Safe Shutdown active. More... | |
#define | ERR_LOG_CODE_ERR_BDRV_INIT (-114) |
Several errors in the BDRV initialization. More... | |
Typedefs | |
typedef uint8_t | uint8 |
8 bit unsigned value More... | |
typedef uint16_t | uint16 |
16 bit unsigned value More... | |
typedef uint32_t | uint32 |
32 bit unsigned value More... | |
typedef uint64_t | uint64 |
64 bit unsigned value More... | |
typedef int8_t | sint8 |
8 bit signed value More... | |
typedef int16_t | sint16 |
16 bit signed value More... | |
typedef int32_t | sint32 |
32 bit signed value More... | |
typedef int64_t | sint64 |
64 bit signed value More... | |
typedef float | float32 |
32 bit float value More... | |
typedef double | float64 |
64 bit float value More... | |
typedef short | FixPoint16 |
16 bit fix point value More... | |
typedef long | FixPoint32 |
32 bit fix point value More... | |
typedef FixPoint16 | TStdReal |
Standard real type definitions to ease the use of different types. More... | |
typedef FixPoint32 | TLongStdReal |
typedef struct StdRealComplex | TStdRealComplex |
Complex type definition based on TStdReal. More... | |
#define BIT0_POS (0u) |
#define BIT10_POS (10u) |
#define BIT11_POS (11u) |
#define BIT12_POS (12u) |
#define BIT13_POS (13u) |
#define BIT14_POS (14u) |
#define BIT15_POS (15u) |
#define BIT16_POS (16u) |
#define BIT17_POS (17u) |
#define BIT18_POS (18u) |
#define BIT19_POS (19u) |
#define BIT1_POS (1u) |
#define BIT20_POS (20u) |
#define BIT21_POS (21u) |
#define BIT22_POS (22u) |
#define BIT23_POS (23u) |
#define BIT24_POS (24u) |
#define BIT25_POS (25u) |
#define BIT26_POS (26u) |
#define BIT27_POS (27u) |
#define BIT28_POS (28u) |
#define BIT29_POS (29u) |
#define BIT2_POS (2u) |
#define BIT30_POS (30u) |
#define BIT31_POS (31u) |
#define BIT3_POS (3u) |
#define BIT4_POS (4u) |
#define BIT5_POS (5u) |
#define BIT6_POS (6u) |
#define BIT7_POS (7u) |
#define BIT8_POS (8u) |
#define BIT9_POS (9u) |
#define bool unsigned int |
Boolean definitions.
#define ERR_LOG_CODE_ADC1_SEQ_NOT_RUNNING (-104) |
ADC1 sequence not running.
#define ERR_LOG_CODE_ADC2_SEQ_NOT_RUNNING (-105) |
ADC2 sequence not running.
#define ERR_LOG_CODE_ERR_BDRV_INIT (-114) |
Several errors in the BDRV initialization.
#define ERR_LOG_CODE_INVALID_VALUE (-103) |
Invalid output value.
#define ERR_LOG_CODE_MODULE_DISABLED_IN_CW (-116) |
Error codes definition.
ERR_LOG_SUCCESS, value 0 already defined in the error codes list from Firmware
ERR_LOG_ERROR, value -1 already defined in the error codes list from Firmware
One or more modules disabled in Config Wizard
#define ERR_LOG_CODE_NO_TRIGGER (-106) |
No watchdog trigger.
#define ERR_LOG_CODE_PARAM_OUT_OF_RANGE (-122) |
Parameter out of range.
#define ERR_LOG_CODE_SAFE_SHUTDOWN_ACTIVE (-118) |
Safe Shutdown active.
#define ERR_LOG_CODE_SOW_DISABLED (-107) |
No Short Open Window activated.
#define ERR_LOG_CODE_TIMEOUT (-101) |
Timeout.
#define false 0 |
#define INLINE __STATIC_INLINE |
#define NULL (0U) |
NULL pointer definition.
#define NULL_PTR ((void*)0) |
#define STD_REAL_FIX_POINT_16 (1) |
Standard real type definitions to ease the use of different types.
#define STD_REAL_FIX_POINT_32 (2) |
#define STD_REAL_FLOAT_32 (3) |
#define STD_REAL_SHIFT_Q0_y ( 0 - 1) |
Range=[-2^(-1), 2^(-1)[; Q1.15=>Step=1/2^16, Q1.31 =>Step=1/2^32.
#define STD_REAL_SHIFT_Q10_y ( 10 - 1) |
Range=[-2^9 , 2^9[; Q10.6=>Step=1/2^6, Q10.22=>Step=1/2^22.
#define STD_REAL_SHIFT_Q11_y ( 11 - 1) |
Range=[-2^10 , 2^10[; Q11.5=>Step=1/2^5, Q11.21=>Step=1/2^21.
#define STD_REAL_SHIFT_Q12_y ( 12 - 1) |
Range=[-2^11 , 2^11[; Q12.4=>Step=1/2^4, Q12.20=>Step=1/2^20.
#define STD_REAL_SHIFT_Q13_y ( 13 - 1) |
Range=[-2^12 , 2^12[; Q13.3=>Step=1/2^3, Q13.19=>Step=1/2^19.
#define STD_REAL_SHIFT_Q14_y ( 14 - 1) |
Range=[-2^13 , 2^13[; Q14.2=>Step=1/2^2, Q14.18=>Step=1/2^18.
#define STD_REAL_SHIFT_Q15_y ( 15 - 1) |
Range=[-2^14 , 2^14[; Q15.1=>Step=1/2^1, Q15.17=>Step=1/2^17.
#define STD_REAL_SHIFT_Q16_y ( 16 - 1) |
Range=[-2^15 , 2^15[; Q16.0=>Step=1, Q16.16=>Step=1/2^16.
#define STD_REAL_SHIFT_Q1_y ( 1 - 1) |
Range=[-2^0 , 2^0[; Q1.15=>Step=1/2^15, Q1.31 =>Step=1/2^31.
#define STD_REAL_SHIFT_Q2_y ( 2 - 1) |
Range=[-2^1 , 2^1[; Q1.15=>Step=1/2^14, Q1.31 =>Step=1/2^30.
#define STD_REAL_SHIFT_Q32_y ( 32 - 1) |
Range=[-2^31 , 2^31[; Q16.0=> Q32.0 =>Step=1
#define STD_REAL_SHIFT_Q3_y ( 3 - 1) |
Range=[-2^2 , 2^2[; Q1.15=>Step=1/2^13, Q1.31 =>Step=1/2^29.
#define STD_REAL_SHIFT_Q4_y ( 4 - 1) |
Range=[-2^3 , 2^3[; Q1.15=>Step=1/2^12, Q1.31 =>Step=1/2^28.
#define STD_REAL_SHIFT_Q5_y ( 5 - 1) |
Range=[-2^4 , 2^4[; Q1.15=>Step=1/2^11, Q1.31 =>Step=1/2^27.
#define STD_REAL_SHIFT_Q6_y ( 6 - 1) |
Range=[-2^5 , 2^5[; Q1.15=>Step=1/2^10, Q1.31 =>Step=1/2^26.
#define STD_REAL_SHIFT_Q7_y ( 7 - 1) |
Range=[-2^6 , 2^6[; Q7.9 =>Step=1/2^9, Q8.24 =>Step=1/2^25.
#define STD_REAL_SHIFT_Q8_y ( 8 - 1) |
Range=[-2^7 , 2^7[; Q8.8 =>Step=1/2^8, Q8.24 =>Step=1/2^24.
#define STD_REAL_SHIFT_Q9_y ( 9 - 1) |
Range=[-2^8 , 2^8[; Q9.7 =>Step=1/2^7, Q9.23 =>Step=1/2^23.
#define STD_REAL_SHIFT_Qn1_y (-1 - 1) |
Range=[-2^(-2), 2^(-2)[; Q1.15=>Step=1/2^17, Q1.31 =>Step=1/2^33.
#define STD_REAL_SHIFT_Qn2_y (-2 - 1) |
Range=[-2^(-3), 2^(-3)[; Q1.15=>Step=1/2^18, Q1.31 =>Step=1/2^34.
#define STD_REAL_SHIFT_Qn3_y (-3 - 1) |
Range=[-2^(-4), 2^(-4)[; Q1.15=>Step=1/2^19, Q1.31 =>Step=1/2^35.
#define STD_REAL_SHIFT_Qn4_y (-4 - 1) |
Range=[-2^(-5), 2^(-5)[; Q1.15=>Step=1/2^20, Q1.31 =>Step=1/2^36.
#define STD_REAL_SHIFT_Qn5_y (-5 - 1) |
Range=[-2^(-6), 2^(-6)[; Q1.15=>Step=1/2^21, Q1.31 =>Step=1/2^37.
#define STD_REAL_SHIFT_Qn6_y (-6 - 1) |
Range=[-2^(-7), 2^(-7)[; Q1.15=>Step=1/2^22, Q1.31 =>Step=1/2^38.
#define STD_REAL_SHIFT_Qn7_y (-7 - 1) |
Range=[-2^(-8), 2^(-8)[; Q1.15=>Step=1/2^23, Q1.31 =>Step=1/2^39.
#define STD_REAL_SHIFT_Qn8_y (-8 - 1) |
Shift definitions for fix point format.
Range=[-2^(-9), 2^(-9)[; Q1.15=>Step=1/2^24, Q1.31 =>Step=1/2^40
#define STD_REAL_TYPE (STD_REAL_FIX_POINT_16) |
#define true 1 |
typedef short FixPoint16 |
16 bit fix point value
typedef long FixPoint32 |
32 bit fix point value
typedef float float32 |
32 bit float value
typedef double float64 |
64 bit float value
typedef int16_t sint16 |
16 bit signed value
typedef int32_t sint32 |
32 bit signed value
typedef int64_t sint64 |
64 bit signed value
typedef int8_t sint8 |
8 bit signed value
typedef FixPoint32 TLongStdReal |
typedef FixPoint16 TStdReal |
Standard real type definitions to ease the use of different types.
typedef struct StdRealComplex TStdRealComplex |
Complex type definition based on TStdReal.
typedef uint16_t uint16 |
16 bit unsigned value
typedef uint32_t uint32 |
32 bit unsigned value
typedef uint64_t uint64 |
64 bit unsigned value
typedef uint8_t uint8 |
8 bit unsigned value