#ifndef BOOTDIAGTP_H #define BOOTDIAGTP_H /*************************** * @file : BootDiag_CanTp_type.h *********************************/ /******************************************************************************* ** Revision Control History ** ******************************************************************************** Version Date User Comment ******************************************************************************** 0.1 2019-12-19 wu wenyin - Initial Draft *******************************************************************************/ /*============================================================================== ======= INCLUDES ======= ==============================================================================*/ #include /*============================================================================== ======= DEFINES & MACROS FOR GENERAL PURPOSE ======= ==============================================================================*/ /*============================================================================== ======= CONSTANTS & TYPES ======= ==============================================================================*/ #ifndef NULL #define NULL 0 #endif #ifndef TRUE #define TRUE (uint8_t)1 #endif #ifndef FALSE #define FALSE (uint8_t)0 #endif /*============================================================================== ======= EXPORTS ======= ==============================================================================*/ typedef struct{ uint32_t ID; uint16_t size; uint8_t physical_address ; union { uint8_t SID; uint8_t Byte[2056]; }Data; }UDSpacket_t; /*============================================================================== ======= DEFINES & MACROS FOR GENERAL PURPOSE ======= ==============================================================================*/ /*============================================================================== ======= CONSTANTS & TYPES ======= ==============================================================================*/ /*============================================================================== ======= EXPORTS ======= ==============================================================================*/ /*============================================================================== ======= PROTOTYPES OF PUBLIC FUNCTIONS ======= ==============================================================================*/ extern uint8_t StdDiagnosticHandler(void); extern void BootProgrammingTriggereded(void); #endif