ESP8266 Treppenlichtsteuerung mit OTA zum Firmware Upload
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

FSMTreppe.h 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. //
  2. // Academic License - for use in teaching, academic research, and meeting
  3. // course requirements at degree granting institutions only. Not for
  4. // government, commercial, or other organizational use.
  5. //
  6. // File: FSMTreppe.h
  7. //
  8. // Code generated for Simulink model 'FSMTreppe'.
  9. //
  10. // Model version : 1.22
  11. // Simulink Coder version : 9.5 (R2021a) 14-Nov-2020
  12. // C/C++ source code generated on : Fri Jul 2 17:45:36 2021
  13. //
  14. // Target selection: ert.tlc
  15. // Embedded hardware selection: ARM Compatible->ARM Cortex-M
  16. // Code generation objectives: Unspecified
  17. // Validation result: Not run
  18. //
  19. #ifndef RTW_HEADER_FSMTreppe_h_
  20. #define RTW_HEADER_FSMTreppe_h_
  21. #include <stdint.h>
  22. // Class declaration for model FSMTreppe
  23. class FSMTreppeModelClass {
  24. // public data and function members
  25. public:
  26. // Block states (default storage) for system '<Root>'
  27. struct DW_FSMTreppe_T {
  28. uint16_t temporalCounter_i1; // '<Root>/FSMTreppe'
  29. uint8_t is_active_c3_FSMTreppe; // '<Root>/FSMTreppe'
  30. uint8_t is_c3_FSMTreppe; // '<Root>/FSMTreppe'
  31. uint8_t got_anim_finished; // '<Root>/FSMTreppe'
  32. uint8_t finished_up; // '<Root>/FSMTreppe'
  33. uint8_t finished_dn; // '<Root>/FSMTreppe'
  34. uint8_t got_sensor; // '<Root>/FSMTreppe'
  35. };
  36. // External inputs (root inport signals with default storage)
  37. struct ExtU_FSMTreppe_T {
  38. bool sensor_unten; // '<Root>/sensor_unten'
  39. bool sensor_oben; // '<Root>/sensor_oben'
  40. bool anim_finished; // '<Root>/anim_finished'
  41. };
  42. // External outputs (root outports fed by signals with default storage)
  43. struct ExtY_FSMTreppe_T {
  44. uint8_t anim_active; // '<Root>/anim_active'
  45. };
  46. // model initialize function
  47. void initialize();
  48. // model step function
  49. void step();
  50. // model terminate function
  51. void terminate();
  52. // Constructor
  53. FSMTreppeModelClass();
  54. // Destructor
  55. ~FSMTreppeModelClass();
  56. // Root-level structure-based inputs set method
  57. // Root inports set method
  58. void setExternalInputs(const ExtU_FSMTreppe_T* pExtU_FSMTreppe_T)
  59. {
  60. FSMTreppe_U = *pExtU_FSMTreppe_T;
  61. }
  62. // Root-level structure-based outputs get method
  63. // Root outports get method
  64. const FSMTreppeModelClass::ExtY_FSMTreppe_T & getExternalOutputs() const
  65. {
  66. return FSMTreppe_Y;
  67. }
  68. // private data and function members
  69. private:
  70. // Block states
  71. DW_FSMTreppe_T FSMTreppe_DW;
  72. // External inputs
  73. ExtU_FSMTreppe_T FSMTreppe_U;
  74. // External outputs
  75. ExtY_FSMTreppe_T FSMTreppe_Y;
  76. };
  77. //-
  78. // The generated code includes comments that allow you to trace directly
  79. // back to the appropriate location in the model. The basic format
  80. // is <system>/block_name, where system is the system number (uniquely
  81. // assigned by Simulink) and block_name is the name of the block.
  82. //
  83. // Note that this particular code originates from a subsystem build,
  84. // and has its own system numbers different from the parent model.
  85. // Refer to the system hierarchy for this subsystem below, and use the
  86. // MATLAB hilite_system command to trace the generated code back
  87. // to the parent model. For example,
  88. //
  89. // hilite_system('FSM_Treppenlicht/FSMTreppe') - opens subsystem FSM_Treppenlicht/FSMTreppe
  90. // hilite_system('FSM_Treppenlicht/FSMTreppe/Kp') - opens and selects block Kp
  91. //
  92. // Here is the system hierarchy for this model
  93. //
  94. // '<Root>' : 'FSM_Treppenlicht'
  95. // '<S1>' : 'FSM_Treppenlicht/FSMTreppe'
  96. #endif // RTW_HEADER_FSMTreppe_h_
  97. //
  98. // File trailer for generated code.
  99. //
  100. // [EOF]
  101. //