Infineon MOTIX™ MCU TLE988x/9x Device Family SDK
inc/com_types.h
Go to the documentation of this file.
1 /**************************************************************************************************
2 * _ _ ___ _ *
3 * (_)| |__ _ __ / _ \ _ __ ___ | |__ /\ /\ *
4 * | || '_ \ | '__| / /_\/| '_ ` _ \ | '_ \ / /_/ / *
5 * | || | | || | / /_\\ | | | | | || |_) |/ __ / *
6 * |_||_| |_||_| \____/ |_| |_| |_||_.__/ \/ /_/ *
7 * *
8 * ihr GmbH *
9 * Airport Boulevard B210 *
10 * 77836 Rheinmuenster - Germany *
11 * http://www.ihr.de *
12 * Phone +49(0) 7229-18475-0 *
13 * Fax +49(0) 7229-18475-11 *
14 ***************************************************************************************************
15 * *
16 * Revision: $Rev:: 250 $ *
17 * Last Modtime: $Date:: 2022-05-19#$ *
18 * Last Modification: $Author:: PhilippKoch $ *
19 * *
20 **************************************************************************************************/
25 #ifndef COM_TYPES_H
26 #define COM_TYPES_H
27 
28 #include "types.h"
29 #include "com_cfg.h"
30 
31 #ifndef STD_ON
32 #define STD_ON 1
33 #endif
34 #ifndef STD_OFF
35 #define STD_OFF 0
36 #endif
37 
38 #ifndef NULL
39 #define NULL ((void*)0u)
40 #endif
41 
42 #if (CAN_USE_LONG_ID == STD_ON)
43 typedef uint32 tComFrameId;
44 #else
46 #endif
47 
48 
51 
52 /* CalloutFunc for Tx frames is the TxConfirmation(TxHandle, State) */
53 /* CalloutFunc for Rx frames is the RxIndication(RxHandle, RxLength) */
55 /* ErrorFunc is the ErrorNotification(Handle, ErrorCode) */
58 
59 typedef struct
60 {
68  const uint8* pInitData;
75 
76 typedef struct
77 {
84 
89 
90 /* Evaluation of stComFrameDescriptor.Flags */
91 #define FLAGS_ENABLE_IRQ 0x80u
92 #define FLAGS_RESERVED_6 0x40u
93 #define FLAGS_MASK_HW_MODE 0x30u
94 #define FLAGS_FD_FRAME 0x08u
95 #define FLAGS_USE_BRS 0x04u
96 #define FLAGS_EXT_ID 0x02u
97 #define FLAGS_REMOTE_FRAME 0x01u
98 
99 /* Evaluation of stComSignalDescriptor[].Format */
100 #define FORMAT_RESERVED_7 0x80u
101 #define FORMAT_RESERVED_6 0x40u
102 #define FORMAT_IS_SIGNED 0x20u
103 #define FORMAT_IS_SINGLE_FLAG 0x10u
104 #define FORMAT_IS_ALIGNED 0x08u
105 #define FORMAT_IS_BIG_ENDIAN 0x04u
106 #define FORMAT_MASK_BASE_TYPE 0x03u
107 
108 /* Evaluation of format base type field */
109 #define FORMAT_BASE_TYPE_8BIT 0x00u
110 #define FORMAT_BASE_TYPE_16BIT 0x01u
111 #define FORMAT_BASE_TYPE_32BIT 0x02u
112 #define FORMAT_BASE_TYPE_64BIT 0x03u
113 
114 #endif /* #ifndef COM_TYPES_H */
uint16 tComFrameId
Definition: inc/com_types.h:45
const stComFrameDescriptor * COM_GetPtr_TxFrmDescrStart(void)
void(* tFrmCalloutFunc)(tComFrameHandle, uint8)
Definition: inc/com_types.h:54
void(* tFrmErrorFunc)(tComFrameHandle, uint8)
Definition: inc/com_types.h:56
const stComSignalDescriptor * COM_GetPtr_RxSignalsStart(void)
uint16 tComFrameHandle
Definition: inc/com_types.h:49
uint16 tComSignalHandle
Definition: inc/com_types.h:50
uint8(* tSignalPackFunc)(tComSignalHandle, void *)
Definition: inc/com_types.h:57
const stComFrameDescriptor * COM_GetPtr_RxFrmDescrStart(void)
const stComSignalDescriptor * COM_GetPtr_TxSignalsStart(void)
Definition: inc/com_types.h:60
uint16 FirstSignal
Definition: inc/com_types.h:71
uint8 * pBuffer
Definition: inc/com_types.h:66
uint8 * pShadow
Definition: inc/com_types.h:67
tComFrameId Id
Definition: inc/com_types.h:62
uint8 Channel
Definition: inc/com_types.h:65
uint16 CycleTO
Definition: inc/com_types.h:73
tFrmCalloutFunc CalloutFunc
Definition: inc/com_types.h:69
tFrmErrorFunc ErrorFunc
Definition: inc/com_types.h:70
const uint8 * pInitData
Definition: inc/com_types.h:68
uint8 BufferSize
Definition: inc/com_types.h:63
uint16 NSignals
Definition: inc/com_types.h:72
tComFrameHandle Handle
Definition: inc/com_types.h:61
uint8 Flags
Definition: inc/com_types.h:64
Definition: inc/com_types.h:77
uint16 BitPos
Definition: inc/com_types.h:80
uint16 BitSize
Definition: inc/com_types.h:81
uint8 Format
Definition: inc/com_types.h:82
tComSignalHandle Handle
Definition: inc/com_types.h:78
tComFrameHandle Owner
Definition: inc/com_types.h:79
General type declarations.
uint8_t uint8
8 bit unsigned value
Definition: types.h:220
uint16_t uint16
16 bit unsigned value
Definition: types.h:221
uint32_t uint32
32 bit unsigned value
Definition: types.h:222