Home
last modified time | relevance | path

Searched refs:smf_ctx (Results 1 – 9 of 9) sorted by relevance

/Zephyr-Core-3.4.0/include/zephyr/
Dsmf.h53 #define SMF_CTX(o) ((struct smf_ctx *)o)
93 struct smf_ctx { struct
118 void smf_set_initial(struct smf_ctx *ctx, const struct smf_state *init_state); argument
128 void smf_set_state(struct smf_ctx *ctx, const struct smf_state *new_state);
137 void smf_set_terminate(struct smf_ctx *ctx, int32_t val);
148 int32_t smf_run_state(struct smf_ctx *ctx);
/Zephyr-Core-3.4.0/tests/lib/smf/src/
Dtest_lib_hierarchical_smf.c112 struct smf_ctx ctx;
360 smf_set_initial((struct smf_ctx *)&test_obj, &test_states[STATE_A]); in ZTEST()
363 if (smf_run_state((struct smf_ctx *)&test_obj) < 0) { in ZTEST()
377 smf_set_initial((struct smf_ctx *)&test_obj, &test_states[STATE_A]); in ZTEST()
380 if (smf_run_state((struct smf_ctx *)&test_obj) < 0) { in ZTEST()
394 smf_set_initial((struct smf_ctx *)&test_obj, &test_states[STATE_A]); in ZTEST()
397 if (smf_run_state((struct smf_ctx *)&test_obj) < 0) { in ZTEST()
411 smf_set_initial((struct smf_ctx *)&test_obj, &test_states[STATE_A]); in ZTEST()
414 if (smf_run_state((struct smf_ctx *)&test_obj) < 0) { in ZTEST()
428 smf_set_initial((struct smf_ctx *)&test_obj, &test_states[STATE_A]); in ZTEST()
[all …]
Dtest_lib_flat_smf.c75 struct smf_ctx ctx;
228 smf_set_initial((struct smf_ctx *)&test_obj, &test_states[STATE_A]); in ZTEST()
231 if (smf_run_state((struct smf_ctx *)&test_obj)) { in ZTEST()
245 smf_set_initial((struct smf_ctx *)&test_obj, &test_states[STATE_A]); in ZTEST()
248 if (smf_run_state((struct smf_ctx *)&test_obj)) { in ZTEST()
262 smf_set_initial((struct smf_ctx *)&test_obj, &test_states[STATE_A]); in ZTEST()
265 if (smf_run_state((struct smf_ctx *)&test_obj)) { in ZTEST()
279 smf_set_initial((struct smf_ctx *)&test_obj, &test_states[STATE_A]); in ZTEST()
282 if (smf_run_state((struct smf_ctx *)&test_obj)) { in ZTEST()
Dtest_lib_hierarchical_5_ancestor_smf.c111 struct smf_ctx ctx;
430 smf_set_initial((struct smf_ctx *)&test_obj, &test_states[A]); in ZTEST()
433 if (smf_run_state((struct smf_ctx *)&test_obj) < 0) { in ZTEST()
/Zephyr-Core-3.4.0/lib/smf/
Dsmf.c37 static bool last_state_share_paren(struct smf_ctx *const ctx, in last_state_share_paren()
77 struct smf_ctx *const ctx, const struct smf_state *target) in smf_execute_ancestor_entry_actions()
105 __unused static bool smf_execute_ancestor_run_actions(struct smf_ctx *ctx) in smf_execute_ancestor_run_actions()
153 struct smf_ctx *const ctx, const struct smf_state *target) in smf_execute_ancestor_exit_actions()
174 void smf_set_initial(struct smf_ctx *ctx, const struct smf_state *init_state) in smf_set_initial()
198 void smf_set_state(struct smf_ctx *const ctx, const struct smf_state *target) in smf_set_state()
257 void smf_set_terminate(struct smf_ctx *ctx, int32_t val) in smf_set_terminate()
265 int32_t smf_run_state(struct smf_ctx *const ctx) in smf_run_state()
/Zephyr-Core-3.4.0/subsys/usb/usb_c/
Dusbc_prl.h42 struct smf_ctx ctx;
75 struct smf_ctx ctx;
Dusbc_tc_common_internal.h68 struct smf_ctx ctx;
Dusbc_pe_common_internal.h195 struct smf_ctx ctx;
/Zephyr-Core-3.4.0/doc/services/smf/
Dindex.rst21 defined structure that has the state machine context, ``struct smf_ctx``, as
25 struct smf_ctx ctx;
29 The ``struct smf_ctx`` member must be first because the state machine
30 framework's functions casts the user defined object to the ``struct smf_ctx``
33 For example instead of doing this ``(struct smf_ctx *)&user_obj``, you could
74 ``void smf_set_initial(smf_ctx *ctx, smf_state *state)``
78 ``void smf_set_state(smf_ctx *ctx, smf_state *state)``
90 prototype: ``int32_t smf_run_state(smf_ctx *ctx)``
99 ``void smf_terminate(smf_ctx *ctx, int32_t val)``
136 struct smf_ctx ctx;
[all …]