OperationsRequired.h 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. #ifndef OPERATIONSREQUIRED_H_
  2. #define OPERATIONSREQUIRED_H_
  3. #include "sc_types.h"
  4. #include "Operations.h"
  5. #ifdef __cplusplus
  6. extern "C"
  7. {
  8. #endif
  9. /*! \file This header defines prototypes for all functions that are required by the state machine implementation.
  10. This state machine makes use of operations declared in the state machines interface or internal scopes. Thus the function prototypes:
  11. - operationsInternal_internalOperation1
  12. - operationsInternal_internalOperation2
  13. - operationsInternal_internalOperation3
  14. - operationsInternal_internalOperation3a
  15. - operationsInternal_internalOperation4
  16. - operationsInternal_internalOperation4a
  17. - operationsInternal_internalOperation5
  18. - operationsInternal_internalOperation5a
  19. - operationsIfaceInterface1_interfaceOperation1
  20. - operationsIfaceInterface1_interfaceOperation2
  21. - operationsIfaceInterface1_interfaceOperation3
  22. - operationsIfaceInterface1_interfaceOperation3a
  23. - operationsIfaceInterface1_interfaceOperation4
  24. - operationsIfaceInterface1_interfaceOperation4a
  25. - operationsIfaceInterface1_interfaceOperation5
  26. - operationsIfaceInterface1_interfaceOperation5a
  27. - operationsIface_unnamedInterfaceOperation1
  28. - operationsIface_unnamedInterfaceOperation2
  29. - operationsIface_unnamedOperation3
  30. - operationsIface_unnamedOperation3a
  31. - operationsIface_unnamedOperation4
  32. - operationsIface_unnamedOperation4a
  33. - operationsIface_unnamedOperation5
  34. - operationsIface_unnamedOperation5a
  35. - operationsIface_alwaysTrue
  36. are defined.
  37. These functions will be called during a 'run to completion step' (runCycle) of the statechart.
  38. There are some constraints that have to be considered for the implementation of these functions:
  39. - never call the statechart API functions from within these functions.
  40. - make sure that the execution time is as short as possible.
  41. */
  42. extern void operationsInternal_internalOperation1(const Operations* handle);
  43. extern sc_boolean operationsInternal_internalOperation2(const Operations* handle, const sc_integer param1);
  44. extern sc_real operationsInternal_internalOperation3(const Operations* handle);
  45. extern sc_real operationsInternal_internalOperation3a(const Operations* handle, const sc_real param1);
  46. extern sc_integer operationsInternal_internalOperation4(const Operations* handle);
  47. extern sc_integer operationsInternal_internalOperation4a(const Operations* handle, const sc_integer param1);
  48. extern sc_string operationsInternal_internalOperation5(const Operations* handle);
  49. extern sc_string operationsInternal_internalOperation5a(const Operations* handle, const sc_string param1);
  50. extern void operationsIfaceInterface1_interfaceOperation1(const Operations* handle);
  51. extern sc_boolean operationsIfaceInterface1_interfaceOperation2(const Operations* handle, const sc_integer param1);
  52. extern sc_real operationsIfaceInterface1_interfaceOperation3(const Operations* handle);
  53. extern sc_real operationsIfaceInterface1_interfaceOperation3a(const Operations* handle, const sc_real param1);
  54. extern sc_integer operationsIfaceInterface1_interfaceOperation4(const Operations* handle);
  55. extern sc_integer operationsIfaceInterface1_interfaceOperation4a(const Operations* handle, const sc_integer param1);
  56. extern sc_string operationsIfaceInterface1_interfaceOperation5(const Operations* handle);
  57. extern sc_string operationsIfaceInterface1_interfaceOperation5a(const Operations* handle, const sc_string param1);
  58. extern void operationsIface_unnamedInterfaceOperation1(const Operations* handle);
  59. extern sc_boolean operationsIface_unnamedInterfaceOperation2(const Operations* handle, const sc_integer param1);
  60. extern sc_real operationsIface_unnamedOperation3(const Operations* handle);
  61. extern sc_real operationsIface_unnamedOperation3a(const Operations* handle, const sc_real param1);
  62. extern sc_integer operationsIface_unnamedOperation4(const Operations* handle);
  63. extern sc_integer operationsIface_unnamedOperation4a(const Operations* handle, const sc_integer param1);
  64. extern sc_string operationsIface_unnamedOperation5(const Operations* handle);
  65. extern sc_string operationsIface_unnamedOperation5a(const Operations* handle, const sc_string param1);
  66. extern sc_boolean operationsIface_alwaysTrue(const Operations* handle);
  67. #ifdef __cplusplus
  68. }
  69. #endif
  70. #endif /* OPERATIONSREQUIRED_H_ */