Lines Matching refs:struct
23 defined structure that has the state machine context, :c:struct:`smf_ctx`, as
26 struct user_object {
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
58 const struct smf_state demo_states[] = {
68 const struct smf_state demo_states[] = {
81 const struct smf_state demo_states[];
83 const struct smf_state demo_states[] = {
182 static const struct smf_state demo_states[];
188 struct s_object {
190 struct smf_ctx ctx;
230 static const struct smf_state demo_states[] = {
290 static const struct smf_state demo_states[];
296 struct s_object {
298 struct smf_ctx ctx;
332 static const struct smf_state demo_states[] = {
405 static const struct gpio_dt_spec button =
408 static struct gpio_callback button_cb_data;
411 static const struct smf_state demo_states[];
417 struct s_object {
419 struct smf_ctx ctx;
422 struct k_event smf_event;
436 struct s_object *s = (struct s_object *)o;
452 struct s_object *s = (struct s_object *)o;
461 static const struct smf_state demo_states[] = {
466 void button_pressed(const struct device *dev,
467 struct gpio_callback *cb, uint32_t pins)