Infineon MOTIX™ MCU TLE988x/9x Device Family SDK
Data Structures | Macros | Typedefs
types.h File Reference

Go to the source code of this file.

Detailed Description

General type declarations.

Version
V0.4.2
Date
25. Oct 2022

Include Graph

Include dependency graph for types.h:

Include Graph

This graph shows which files directly or indirectly include this file:

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...
 

Macro Definition Documentation

◆ BIT0_POS

#define BIT0_POS   (0u)

◆ BIT10_POS

#define BIT10_POS   (10u)

◆ BIT11_POS

#define BIT11_POS   (11u)

◆ BIT12_POS

#define BIT12_POS   (12u)

◆ BIT13_POS

#define BIT13_POS   (13u)

◆ BIT14_POS

#define BIT14_POS   (14u)

◆ BIT15_POS

#define BIT15_POS   (15u)

◆ BIT16_POS

#define BIT16_POS   (16u)

◆ BIT17_POS

#define BIT17_POS   (17u)

◆ BIT18_POS

#define BIT18_POS   (18u)

◆ BIT19_POS

#define BIT19_POS   (19u)

◆ BIT1_POS

#define BIT1_POS   (1u)

◆ BIT20_POS

#define BIT20_POS   (20u)

◆ BIT21_POS

#define BIT21_POS   (21u)

◆ BIT22_POS

#define BIT22_POS   (22u)

◆ BIT23_POS

#define BIT23_POS   (23u)

◆ BIT24_POS

#define BIT24_POS   (24u)

◆ BIT25_POS

#define BIT25_POS   (25u)

◆ BIT26_POS

#define BIT26_POS   (26u)

◆ BIT27_POS

#define BIT27_POS   (27u)

◆ BIT28_POS

#define BIT28_POS   (28u)

◆ BIT29_POS

#define BIT29_POS   (29u)

◆ BIT2_POS

#define BIT2_POS   (2u)

◆ BIT30_POS

#define BIT30_POS   (30u)

◆ BIT31_POS

#define BIT31_POS   (31u)

◆ BIT3_POS

#define BIT3_POS   (3u)

◆ BIT4_POS

#define BIT4_POS   (4u)

◆ BIT5_POS

#define BIT5_POS   (5u)

◆ BIT6_POS

#define BIT6_POS   (6u)

◆ BIT7_POS

#define BIT7_POS   (7u)

◆ BIT8_POS

#define BIT8_POS   (8u)

◆ BIT9_POS

#define BIT9_POS   (9u)

◆ bool

#define bool   unsigned int

Boolean definitions.

◆ ERR_LOG_CODE_ADC1_SEQ_NOT_RUNNING

#define ERR_LOG_CODE_ADC1_SEQ_NOT_RUNNING   (-104)

ADC1 sequence not running.

◆ ERR_LOG_CODE_ADC2_SEQ_NOT_RUNNING

#define ERR_LOG_CODE_ADC2_SEQ_NOT_RUNNING   (-105)

ADC2 sequence not running.

◆ ERR_LOG_CODE_ERR_BDRV_INIT

#define ERR_LOG_CODE_ERR_BDRV_INIT   (-114)

Several errors in the BDRV initialization.

◆ ERR_LOG_CODE_INVALID_VALUE

#define ERR_LOG_CODE_INVALID_VALUE   (-103)

Invalid output value.

◆ ERR_LOG_CODE_MODULE_DISABLED_IN_CW

#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

◆ ERR_LOG_CODE_NO_TRIGGER

#define ERR_LOG_CODE_NO_TRIGGER   (-106)

No watchdog trigger.

◆ ERR_LOG_CODE_PARAM_OUT_OF_RANGE

#define ERR_LOG_CODE_PARAM_OUT_OF_RANGE   (-122)

Parameter out of range.

◆ ERR_LOG_CODE_SAFE_SHUTDOWN_ACTIVE

#define ERR_LOG_CODE_SAFE_SHUTDOWN_ACTIVE   (-118)

Safe Shutdown active.

◆ ERR_LOG_CODE_SOW_DISABLED

#define ERR_LOG_CODE_SOW_DISABLED   (-107)

No Short Open Window activated.

◆ ERR_LOG_CODE_TIMEOUT

#define ERR_LOG_CODE_TIMEOUT   (-101)

Timeout.

◆ false

#define false   0

◆ INLINE

#define INLINE   __STATIC_INLINE

◆ NULL

#define NULL   (0U)

NULL pointer definition.

◆ NULL_PTR

#define NULL_PTR   ((void*)0)

◆ STD_REAL_FIX_POINT_16

#define STD_REAL_FIX_POINT_16   (1)

Standard real type definitions to ease the use of different types.

◆ STD_REAL_FIX_POINT_32

#define STD_REAL_FIX_POINT_32   (2)

◆ STD_REAL_FLOAT_32

#define STD_REAL_FLOAT_32   (3)

◆ STD_REAL_SHIFT_Q0_y

#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.

◆ STD_REAL_SHIFT_Q10_y

#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.

◆ STD_REAL_SHIFT_Q11_y

#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.

◆ STD_REAL_SHIFT_Q12_y

#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.

◆ STD_REAL_SHIFT_Q13_y

#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.

◆ STD_REAL_SHIFT_Q14_y

#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.

◆ STD_REAL_SHIFT_Q15_y

#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.

◆ STD_REAL_SHIFT_Q16_y

#define STD_REAL_SHIFT_Q16_y   ( 16 - 1)

Range=[-2^15 , 2^15[; Q16.0=>Step=1, Q16.16=>Step=1/2^16.

◆ STD_REAL_SHIFT_Q1_y

#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.

◆ STD_REAL_SHIFT_Q2_y

#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.

◆ STD_REAL_SHIFT_Q32_y

#define STD_REAL_SHIFT_Q32_y   ( 32 - 1)

Range=[-2^31 , 2^31[; Q16.0=> Q32.0 =>Step=1

◆ STD_REAL_SHIFT_Q3_y

#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.

◆ STD_REAL_SHIFT_Q4_y

#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.

◆ STD_REAL_SHIFT_Q5_y

#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.

◆ STD_REAL_SHIFT_Q6_y

#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.

◆ STD_REAL_SHIFT_Q7_y

#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.

◆ STD_REAL_SHIFT_Q8_y

#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.

◆ STD_REAL_SHIFT_Q9_y

#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.

◆ STD_REAL_SHIFT_Qn1_y

#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.

◆ STD_REAL_SHIFT_Qn2_y

#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.

◆ STD_REAL_SHIFT_Qn3_y

#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.

◆ STD_REAL_SHIFT_Qn4_y

#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.

◆ STD_REAL_SHIFT_Qn5_y

#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.

◆ STD_REAL_SHIFT_Qn6_y

#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.

◆ STD_REAL_SHIFT_Qn7_y

#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.

◆ STD_REAL_SHIFT_Qn8_y

#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

◆ STD_REAL_TYPE

#define STD_REAL_TYPE   (STD_REAL_FIX_POINT_16)

◆ true

#define true   1

Typedef Documentation

◆ FixPoint16

typedef short FixPoint16

16 bit fix point value

◆ FixPoint32

typedef long FixPoint32

32 bit fix point value

◆ float32

typedef float float32

32 bit float value

◆ float64

typedef double float64

64 bit float value

◆ sint16

typedef int16_t sint16

16 bit signed value

◆ sint32

typedef int32_t sint32

32 bit signed value

◆ sint64

typedef int64_t sint64

64 bit signed value

◆ sint8

typedef int8_t sint8

8 bit signed value

◆ TLongStdReal

◆ TStdReal

Standard real type definitions to ease the use of different types.

◆ TStdRealComplex

Complex type definition based on TStdReal.

◆ uint16

typedef uint16_t uint16

16 bit unsigned value

◆ uint32

typedef uint32_t uint32

32 bit unsigned value

◆ uint64

typedef uint64_t uint64

64 bit unsigned value

◆ uint8

typedef uint8_t uint8

8 bit unsigned value