Searched refs:smf_ctx (Results 1 – 13 of 13) sorted by relevance
/Zephyr-latest/include/zephyr/ |
D | smf.h | 50 #define SMF_CTX(o) ((struct smf_ctx *)o) 99 struct smf_ctx { struct 129 void smf_set_initial(struct smf_ctx *ctx, const struct smf_state *init_state); argument 139 void smf_set_state(struct smf_ctx *ctx, const struct smf_state *new_state); 148 void smf_set_terminate(struct smf_ctx *ctx, int32_t val); 157 void smf_set_handled(struct smf_ctx *ctx); 168 int32_t smf_run_state(struct smf_ctx *ctx);
|
/Zephyr-latest/tests/lib/smf/src/ |
D | test_lib_hierarchical_smf.c | 112 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 …]
|
D | test_lib_flat_smf.c | 75 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()
|
D | test_lib_self_transition_smf.c | 150 struct smf_ctx ctx; 469 smf_set_initial((struct smf_ctx *)&test_obj, &test_states[PARENT_AB]); in ZTEST() 472 if (smf_run_state((struct smf_ctx *)&test_obj) < 0) { in ZTEST() 486 smf_set_initial((struct smf_ctx *)&test_obj, &test_states[PARENT_AB]); in ZTEST() 489 if (smf_run_state((struct smf_ctx *)&test_obj) < 0) { in ZTEST() 504 smf_set_initial((struct smf_ctx *)&test_obj, &test_states[PARENT_AB]); in ZTEST() 507 if (smf_run_state((struct smf_ctx *)&test_obj) < 0) { in ZTEST() 522 smf_set_initial((struct smf_ctx *)&test_obj, &test_states[PARENT_AB]); in ZTEST() 525 if (smf_run_state((struct smf_ctx *)&test_obj) < 0) { in ZTEST() 540 smf_set_initial((struct smf_ctx *)&test_obj, &test_states[PARENT_AB]); in ZTEST() [all …]
|
D | test_lib_hierarchical_5_ancestor_smf.c | 111 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-latest/lib/smf/ |
D | smf.c | 89 static bool smf_execute_all_entry_actions(struct smf_ctx *const ctx, in smf_execute_all_entry_actions() 139 static bool smf_execute_ancestor_run_actions(struct smf_ctx *ctx) in smf_execute_ancestor_run_actions() 191 static bool smf_execute_all_exit_actions(struct smf_ctx *const ctx, const struct smf_state *topmost) in smf_execute_all_exit_actions() 212 void smf_set_initial(struct smf_ctx *ctx, const struct smf_state *init_state) in smf_set_initial() 261 void smf_set_state(struct smf_ctx *const ctx, const struct smf_state *new_state) in smf_set_state() 368 void smf_set_terminate(struct smf_ctx *ctx, int32_t val) in smf_set_terminate() 376 void smf_set_handled(struct smf_ctx *ctx) in smf_set_handled() 383 int32_t smf_run_state(struct smf_ctx *const ctx) in smf_run_state()
|
/Zephyr-latest/subsys/usb/usb_c/ |
D | usbc_prl.h | 42 struct smf_ctx ctx; 75 struct smf_ctx ctx;
|
D | usbc_tc_common_internal.h | 68 struct smf_ctx ctx;
|
D | usbc_pe_common_internal.h | 197 struct smf_ctx ctx;
|
/Zephyr-latest/doc/services/smf/ |
D | index.rst | 23 defined structure that has the state machine context, :c:struct:`smf_ctx`, as 27 struct smf_ctx ctx; 31 The :c:struct:`smf_ctx` member must be first because the state machine 32 framework's functions casts the user defined object to the :c:struct:`smf_ctx` 35 For example instead of doing this ``(struct smf_ctx *)&user_obj``, you could 190 struct smf_ctx ctx; 298 struct smf_ctx ctx; 419 struct smf_ctx ctx;
|
/Zephyr-latest/samples/subsys/smf/hsm_psicc2/src/ |
D | hsm_psicc2_thread.c | 24 struct smf_ctx ctx;
|
/Zephyr-latest/samples/subsys/smf/smf_calculator/src/ |
D | smf_calculator_thread.c | 39 struct smf_ctx ctx;
|
/Zephyr-latest/subsys/mgmt/hawkbit/ |
D | hawkbit.c | 145 struct smf_ctx ctx;
|