/* * File: socTouchDisplay.h * * Code generated for Simulink model 'socTouchDisplay'. * * Model version : 1.128 * Simulink Coder version : 23.2 (R2023b) 01-Aug-2023 * C/C++ source code generated on : Fri Dec 27 18:51:07 2024 * * Target selection: ert.tlc * Embedded hardware selection: Intel->x86-64 (Windows64) * Code generation objectives: Unspecified * Validation result: Not run */ #ifndef RTW_HEADER_socTouchDisplay_h_ #define RTW_HEADER_socTouchDisplay_h_ #ifndef socTouchDisplay_COMMON_INCLUDES_ #define socTouchDisplay_COMMON_INCLUDES_ #include "rtwtypes.h" #endif /* socTouchDisplay_COMMON_INCLUDES_ */ #include "socTouchDisplay_types.h" #include "ivec_rte_dummy.h" /* Macros for accessing real-time model data structure */ #ifndef rtmGetErrorStatus #define rtmGetErrorStatus(rtm) ((rtm)->errorStatus) #endif #ifndef rtmSetErrorStatus #define rtmSetErrorStatus(rtm, val) ((rtm)->errorStatus = (val)) #endif /* Block signals (default storage) */ typedef struct { CAN_MESSAGE_BUS Selector; /* '/Selector' */ CAN_MESSAGE_BUS SFunction; /* '/S-Function' */ uint8_T In1[8]; /* '/In1' */ boolean_T Compare; /* '/Compare' */ } B_socTouchDisplay_T; /* Block states (default storage) for system '' */ typedef struct { void* SFunction_canFrameBUS; /* '/S-Function' */ uint32_T durationCounter_1; /* '/Chart1' */ uint32_T temporalCounter_i1; /* '/Chart' */ uint32_T durationCounter_1_g; /* '/Chart' */ uint32_T durationCounter_2; /* '/Chart' */ uint32_T durationCounter_3; /* '/Chart' */ uint8_T is_active_c1_socTouchDisplay;/* '/Chart1' */ uint8_T is_c1_socTouchDisplay; /* '/Chart1' */ uint8_T is_active_c3_socTouchDisplay;/* '/Chart' */ uint8_T is_c3_socTouchDisplay; /* '/Chart' */ } DW_socTouchDisplay_T; /* External inputs (root inport signals with default storage) */ typedef struct { real_T in_bTouchDetected; /* '/in_bTouchDetected' */ real_T ip_u32TouchDuration_msec; /* '/ip_u32TouchDuration_msec' */ real_T ip_u32DisplayDuration_msec; /* '/ip_u32DisplayDuration_msec' */ CAN_MESSAGE_BUS Input[MAX_CAN_MESSAGE_INSTANCE];/* '/Input' */ uint32_T ip_u32canId; /* '/ip_u32canId' */ } ExtU_socTouchDisplay_T; /* External outputs (root outports fed by signals with default storage) */ typedef struct { boolean_T op_bDisplayStatus; /* '/op_bDisplayStatus' */ boolean_T op_bErrorStatus; /* '/op_bErrorStatus' */ uint8_T op_u8HundredsPlace; /* '/op_u8HundredsPlace' */ uint8_T op_u8TensPlace; /* '/op_u8TensPlace' */ uint8_T op_u8OnesPlace; /* '/op_u8OnesPlace' */ } ExtY_socTouchDisplay_T; /* Real-time Model Data Structure */ struct tag_RTM_socTouchDisplay_T { const char_T * volatile errorStatus; }; /* Block signals (default storage) */ extern B_socTouchDisplay_T socTouchDisplay_B; /* Block states (default storage) */ extern DW_socTouchDisplay_T socTouchDisplay_DW; /* External inputs (root inport signals with default storage) */ extern ExtU_socTouchDisplay_T socTouchDisplay_U; /* External outputs (root outports fed by signals with default storage) */ extern ExtY_socTouchDisplay_T socTouchDisplay_Y; /* Model entry point functions */ extern void socTouchDisplay_initialize(void); extern void socTouchDisplay_step(void); extern void socTouchDisplay_terminate(void); /* Real-time Model object */ extern RT_MODEL_socTouchDisplay_T *const socTouchDisplay_M; /*- * These blocks were eliminated from the model due to optimizations: * * Block '/Cast' : Eliminate redundant data type conversion * Block '/Cast1' : Eliminate redundant data type conversion * Block '/Cast2' : Eliminate redundant data type conversion */ /*- * The generated code includes comments that allow you to trace directly * back to the appropriate location in the model. The basic format * is /block_name, where system is the system number (uniquely * assigned by Simulink) and block_name is the name of the block. * * Use the MATLAB hilite_system command to trace the generated code back * to the model. For example, * * hilite_system('') - opens system 3 * hilite_system('/Kp') - opens and selects block Kp which resides in S3 * * Here is the system hierarchy for this model * * '' : 'socTouchDisplay' * '' : 'socTouchDisplay/Chart' * '' : 'socTouchDisplay/Chart1' * '' : 'socTouchDisplay/canMsgDecode' * '' : 'socTouchDisplay/displayData' * '' : 'socTouchDisplay/canMsgDecode/Enabled Subsystem' * '' : 'socTouchDisplay/canMsgDecode/Enabled Subsystem1' * '' : 'socTouchDisplay/canMsgDecode/Enabled Subsystem1/Compare To Constant' */ #endif /* RTW_HEADER_socTouchDisplay_h_ */ /* * File trailer for generated code. * * [EOF] */