Infineon MOTIX™ MCU TLE988x/9x Device Family SDK
Can_Api.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:: 274 $ *
17 * Last Modtime: $Date:: 2022-05-20#$ *
18 * Last Modification: $Author:: PhilippKoch $ *
19 * *
20 **************************************************************************************************/
25 #ifndef CAN_API_H
26 #define CAN_API_H
27 
28 /* ========== [includes] ======================================================================= */
29 
30 #include "can_types.h" /* Com basic types needed for config */
31 #include "can_cfg.h"
32 
33 
34 /* ========== [compiler switches] ============================================================== */
35 
36 /* empty */
37 
38 /* ========== [defines] ======================================================================== */
39 
40 /* empty */
41 
42 /* ========== [macros] ========================================================================= */
43 
44 /* empty */
45 
46 /* ========== [unions, structs and enums] ====================================================== */
47 
48 /* empty */
49 
50 /* ========== [external function declarations] ================================================= */
51 
52 /* ---------- initialization, deinitialization, state change ----- */
62 extern void Can_Init(void);
63 
72 extern void Can_DeInit(void);
73 
83 extern uint8 Can_ControllerReset( uint8 Channel );
84 
85 /* ---------- cyclic runnables ----- */
96 extern void Can_MainFunctionWrite(void);
97 
110 extern void Can_MainFunctionRead(void);
111 
112 
113 /* ---------- sending/receiving ----- */
133 extern uint8 Can_Transmit( tComFrameHandle TxFrameHdl, const uint8* DataPtr, uint8 Length );
134 
135 
136 
137 #if (CAN_USE_INTERRUPTS_FULLCAN_RX == STD_ON)
138 uint8 Can_Interrupts_Disable(void);
139 void Can_Interrupts_Enable(uint8 previousState);
140 #endif
141 
142 
143 
144 /* ========== [external variable declarations] ================================================= */
145 
146 /* empty */
147 
148 /* ========== [end of file] ==================================================================== */
149 #endif /* end #ifndef CAN_API_H */
void Can_MainFunctionRead(void)
Runnable of Can module: cyclic call required when receive path operates in polling mode.
uint8 Can_ControllerReset(uint8 Channel)
trigger a specific CAN controller channel to re-init the hardware after bus-off
void Can_MainFunctionWrite(void)
Runnable of Can module.
void Can_Init(void)
Initialization of Can driver.
uint8 Can_Transmit(tComFrameHandle TxFrameHdl, const uint8 *DataPtr, uint8 Length)
Copy a data string and trigger transmission.
void Can_DeInit(void)
This function shall be called only during shutdown routine.
Type definitions for CAN.
uint16 tComFrameHandle
Definition: inc/com_types.h:49
uint8_t uint8
8 bit unsigned value
Definition: types.h:220