Home
last modified time | relevance | path

Searched full:transition (Results 1 – 25 of 215) sorted by relevance

123456789

/Zephyr-latest/samples/boards/nordic/mesh/onoff_level_lighting_vnd_app/src/mesh/
Dtransition.c12 #include "transition.h"
18 void calculate_rt(struct transition_data *transition) in calculate_rt() argument
24 if (transition->type == MOVE) { in calculate_rt()
25 transition->rt = UNKNOWN_VALUE; in calculate_rt()
29 if (transition->just_started) { in calculate_rt()
30 transition->rt = transition->tt; in calculate_rt()
33 duration_remainder = transition->total_duration - in calculate_rt()
34 (now - transition->start_timestamp); in calculate_rt()
57 transition->rt = (resolution << 6) | steps; in calculate_rt()
63 static bool set_transition_counter(struct transition_data *transition) in set_transition_counter() argument
[all …]
Ddevice_composition.c12 #include "transition.h"
53 .transition = &onoff_transition,
82 if (ctl->transition->counter) { in gen_onoff_get()
83 calculate_rt(ctl->transition); in gen_onoff_get()
85 net_buf_simple_add_u8(msg, ctl->transition->rt); in gen_onoff_get()
108 if (ctl->transition->counter) { in gen_onoff_publish()
109 calculate_rt(ctl->transition); in gen_onoff_publish()
111 net_buf_simple_add_u8(msg, ctl->transition->rt); in gen_onoff_publish()
159 ctl->transition->counter = 0U; in gen_onoff_set_unack()
160 k_timer_stop(&ctl->transition->timer); in gen_onoff_set_unack()
[all …]
Dtransition.h39 void calculate_rt(struct transition_data *transition);
/Zephyr-latest/doc/services/resource_management/
Dindex.rst33 in the off state. The service may also be in a transition to a given
38 transition). The service manages the state based on calls to
45 transition from off to on, from on to off, and optionally from an
50 cancellation has no effect on the in-progress transition.
51 * Requests to turn on may be queued while a transition to off is in
63 Failures in executing a transition are recorded and inhibit further
67 Transition operation completion notifications are provided through
/Zephyr-latest/include/zephyr/sys/
Donoff.h88 * @brief Signature used to notify an on-off manager that a transition
91 * Functions of this type are passed to service-specific transition
95 * @param mgr the manager for which transition was requested.
97 * @param res the result of the transition. This shall be
106 * transition.
109 * to be notified that a transition is required, and a third optional
121 * @param mgr the manager for which transition was requested.
123 * @param notify the function to be invoked when the transition has
124 * completed. If the transition is synchronous, notify shall be
125 * invoked by the implementation before the transition function
[all …]
/Zephyr-latest/lib/utils/
Donoff.c32 * * TRANSITION indicates whether a service transition function is in
34 * transitions, and with ERROR to identify a reset transition.
38 * state transition. This bounds the depth by limiting
42 * * COMPLETE indicates that a transition completion notification has
47 * * RECHECK indicates that a state transition has completed but
51 * transition to off, which means that when the transition completes
52 * a transition to on must be initiated if the request is still
53 * present. Transition to ON with no remaining requests similarly
67 /* Completion of a service transition.
69 * This event is triggered by the transition notify callback.
[all …]
/Zephyr-latest/tests/bsim/bluetooth/mesh/tests_scripts/bridge/
Dbrg_net_key_refresh.sh35 # c. Tester triggers transition to KRP phase 0x02 for relevant nodes for
38 # e. Tester triggers transition to KRP phase 0x03 for relevant nodes for
43 # 7. Tester triggers transition to KRP phase 0x02 for all nodes and net keys.
45 # 9. Tester triggers transition to KRP phase 0x03 for all nodes and net keys.
/Zephyr-latest/subsys/usb/usb_c/
Dusbc_pe_snk_states.c97 * transition to the PE_SNK_Discovery state in pe_snk_startup_run()
123 * Transition to the PE_SNK_Wait_for_Capabilities state when in pe_snk_discovery_run()
156 * Transition to the PE_SNK_Evaluate_Capability state when: in pe_snk_wait_for_capabilities_run()
214 /* Transition to PE_Snk_Select_Capability */ in pe_snk_evaluate_capability_entry()
269 * Transition to the PE_SNK_Transition_Sink state when: in pe_snk_select_capability_run()
272 * Transition to the PE_SNK_Wait_for_Capabilities state when: in pe_snk_select_capability_run()
277 * Transition to the PE_SNK_Ready state when: in pe_snk_select_capability_run()
282 * Transition to the PE_SNK_Hard_Reset state when: in pe_snk_select_capability_run()
293 * We had a previous explicit contract, so transition to in pe_snk_select_capability_run()
312 * No previous explicit contract, so transition in pe_snk_select_capability_run()
[all …]
Dusbc_pe_src_states.c124 * transition to the PE_SRC_Send_Capabilities state in pe_src_startup_run()
153 * The Policy Engine Shall transition to the PE_SRC_Send_Capabilities state when: in pe_src_discovery_run()
212 * The Policy Engine Shall transition to the PE_SRC_Discovery in pe_src_send_capabilities_run()
226 * The Policy Engine Shall transition to the PE_SRC_Negotiate_Capability state when: in pe_src_send_capabilities_run()
240 * The Policy Engine Shall transition to the PE_SRC_Hard_Reset in pe_src_send_capabilities_run()
274 * The Policy Engine Shall transition to the in pe_src_negotiate_capability_entry()
282 * The Policy Engine Shall transition to the in pe_src_negotiate_capability_entry()
305 * and inform the Device Policy Manager that it Shall transition in pe_src_transition_supply_entry()
327 * The Policy Engine Shall transition to the PE_SRC_Ready state when: in pe_src_transition_supply_run()
337 * The Policy Engine Shall transition to the PE_SRC_Hard_Reset in pe_src_transition_supply_run()
[all …]
/Zephyr-latest/soc/nxp/imxrt/imxrt11xx/
Dpower.c19 * power saving will improve when both cores request a transition to a low
54 /* Configure GPC transition steps to enabled */
88 /* Enable all steps in flow of set point transition */ in gpc_set_transition_flow()
138 /* Enable all steps in standby transition */ in gpc_set_transition_flow()
192 /* Setup GPC set point transition flow */ in gpc_init()
297 /* Request set point transition at sleep */ in pm_state_set()
302 /* Request CPU mode transition without set mode transition */ in pm_state_set()
/Zephyr-latest/dts/bindings/sensor/
Dnxp,mcux-qdec.yaml27 Bypass the quadrature decoder. A positive transition of the PHASEA input
36 filter accepting an input transition. A value of 0 represents 3
Dst,vl53l1x.yaml18 transition from LOW to HIGH.
/Zephyr-latest/doc/services/smf/
Dindex.rst75 This example creates three hierarchical states with an initial transition
92 To transition from one state to another, the :c:func:`smf_set_state`
98 child state to transition to. Transitioning to a parent state is OK
99 if an initial transition to a child state is defined. A well-formed
105 log and no transition will occur.
134 transition, unless said transition is a transition to self.
141 1. Executing the actions associated with the transition within the context
143 2. Only allowing external transitions to self, not to sub-states. A transition
144 from a superstate to a child state is treated as a local transition.
522 State Machine Example With Initial Transitions And Transition To Self
/Zephyr-latest/lib/smf/
DKconfig20 If y, then each state can have an initial transition to a sub-state
Dsmf.c62 * @param source transition source
63 * @param dest transition destination
272 * since we are already in a transition; we would always ignore the in smf_set_state()
273 * intended state to transition into. in smf_set_state()
303 /* if self-transition, call the exit action */ in smf_set_state()
315 /* if self transition, call the entry action */ in smf_set_state()
344 /* Flat state machines have a very simple transition: */ in smf_set_state()
/Zephyr-latest/drivers/input/
DKconfig.npcx22 low-to-high transition time.
/Zephyr-latest/samples/boards/nordic/mesh/onoff_level_lighting_vnd_app/
DCMakeLists.txt18 src/mesh/transition.c
/Zephyr-latest/tests/subsys/pm/power_states_api/src/
Dtest_driver.h17 * the SoC not transition to certain power states.
/Zephyr-latest/dts/bindings/input/
Dgpio-qdec.yaml9 transition on any of the encoder signal lines, then switches to polling mode
84 Timeout for the last detected transition before stopping the sampling
/Zephyr-latest/include/zephyr/
Dsmf.h33 * @param _initial State initial transition object or NULL
91 * Optional initial transition state. NULL for leaf states.
137 * @param new_state State to transition to (NULL is valid and exits all states)
/Zephyr-latest/tests/net/offloaded_netdev/src/
Dmain.c155 "Bad transition-count, offload_impl_enable not called correctly"); in ZTEST()
166 "Bad transition-count, offload_impl_enable not called correctly"); in ZTEST()
217 "Bad transition-count, offload_impl_enable not called correctly"); in ZTEST()
228 "Bad transition-count, offload_impl_enable not called correctly"); in ZTEST()
280 "Bad transition-count, offload_impl_enable not called correctly"); in ZTEST()
292 "Bad transition-count, offload_impl_enable not called correctly"); in ZTEST()
/Zephyr-latest/soc/nordic/common/
Dmram_latency.h67 * @retval ONOFF_STATE_TO_ON if the cancellation occurred before the transition
69 * @retval ONOFF_STATE_ON if the cancellation occurred after the transition
/Zephyr-latest/doc/services/pm/
Dsystem.rst13 the appropriate power state to transition to based on the configured power management policy.
90 for deciding which power state the system should transition to.
119 to decide which power state the system should transition to based on the
/Zephyr-latest/soc/nxp/imxrt/imxrt10xx/
Dpower.h22 * The system will transition to sleep after calling this function.
/Zephyr-latest/samples/subsys/usb_c/source/src/
Dmain.c46 /** True if power supply should transition to a new level */
270 /* Transition PS to Default level */ in port0_notify()
359 /* Init power supply transition start */ in main()
372 /* Transition PS to new level */ in main()
375 * Transition Power Supply to new voltage. in main()

123456789