Home
last modified time | relevance | path

Searched full:observer (Results 1 – 25 of 50) sorted by relevance

12

/Zephyr-Core-3.5.0/include/zephyr/zbus/
Dzbus.h31 /** Static channel observer list start index. Considering the ITERABLE SECTIONS allocation
36 /** Static channel observer list end index. Considering the ITERABLE SECTIONS allocation
47 /** Channel observer list. Represents the channel's observers list, it can be empty
89 * @brief Type used to represent an observer type.
91 * A observer can be a listener or a subscriber.
100 * @brief Type used to represent an observer.
102 * Every observer has an representation structure containing the relevant information.
103 * An observer is a code portion interested in some channel. The observer can be notified
105 * The observer can be enabled or disabled during runtime by change the enabled boolean
111 * @see zbus_obs_set_enable function to properly change the observer's enabled field.
[all …]
/Zephyr-Core-3.5.0/samples/bluetooth/observer/
DREADME.rst1 .. _bluetooth-observer-sample:
3 Bluetooth: Observer
9 A simple application demonstrating Bluetooth Low Energy Observer role
26 This sample can be found under :zephyr_file:`samples/bluetooth/observer` in the
Dsample.yaml2 name: observer
4 sample.bluetooth.observer:
13 sample.bluetooth.observer.extended:
DCMakeLists.txt5 project(observer) project
9 src/observer.c
/Zephyr-Core-3.5.0/tests/bsim/bluetooth/host/adv/chain/
DCMakeLists.txt11 ${ZEPHYR_BASE}/samples/bluetooth/observer/src/observer.c
/Zephyr-Core-3.5.0/samples/subsys/zbus/runtime_obs_registration/
DREADME.rst2 :name: Runtime observer registration
5 Use zbus' runtime observer registration to filter data generated by a producer.
9 …a way of using the runtime observer registration feature. The developer can understand how to use …
Dsample.yaml2 name: Runtime observer registration
/Zephyr-Core-3.5.0/subsys/zbus/
Dzbus_runtime_observers.c40 /* Check if the observer is already a runtime observer */ in zbus_chan_add_obs()
52 LOG_ERR("Could not allocate observer node the heap is full!"); in zbus_chan_add_obs()
DKconfig19 bool "Observer name field"
Dzbus.c121 /* Static observer event dispatcher logic */ in _zbus_vded_exec()
156 LOG_ERR("could not deliver notification to observer %s. Error code %d", in _zbus_vded_exec()
170 /* Dynamic observer event dispatcher logic */ in _zbus_vded_exec()
/Zephyr-Core-3.5.0/samples/bluetooth/broadcaster_multiple/
DREADME.rst32 To test this sample use the Observer sample with Extended Scanning enabled,
34 :zephyr_file:`samples/bluetooth/observer` in the Zephyr tree.
/Zephyr-Core-3.5.0/include/zephyr/net/
Dcoap.h237 struct coap_observer *observer);
816 * @param observer Observer to be initialized
817 * @param request Request on which the observer will be based
820 void coap_observer_init(struct coap_observer *observer,
825 * @brief After the observer is initialized, associate the observer
828 * @param resource Resource to add an observer
829 * @param observer Observer to be added
831 * @return true if this is the first observer added to this resource.
834 struct coap_observer *observer);
837 * @brief Remove this observer from the list of registered observers
[all …]
/Zephyr-Core-3.5.0/samples/bluetooth/scan_adv/
Dsample.yaml3 description: Demonstrates combined BLE Broadcaster & Observer role functionality
DREADME.rst9 A simple application demonstrating combined BLE Broadcaster & Observer
/Zephyr-Core-3.5.0/subsys/net/lib/lwm2m/
Dlwm2m_observation.c351 SYS_SLIST_FOR_EACH_CONTAINER(&sock_ctx[i]->observer, obs, node) { in lwm2m_notify_observer_path()
353 /* update the event time for this observer */ in lwm2m_notify_observer_path()
390 /* find an unused observer index node */ in engine_allocate_observer()
444 sys_slist_append(&ctx->observer, &obs->node); in engine_observe_node_init()
447 LOG_DBG("OBSERVER ADDED %u/%u/%u/%u(%u)", tmp->path.obj_id, tmp->path.obj_inst_id, in engine_observe_node_init()
464 LOG_DBG("Removing observer %p for path %s", obs, lwm2m_path_log_buf(buf, &o_p->path)); in remove_observer_path_from_list()
593 obs = engine_observe_node_discover(&msg->ctx->observer, &prev_node, &lwm2m_path_list, NULL, in engine_add_observer()
605 LOG_DBG("OBSERVER DUPLICATE %u/%u/%u(%u) [%s]", msg->path.obj_id, in engine_add_observer()
682 obs = engine_observe_node_discover(&msg->ctx->observer, &prev_node, &lwm2m_path_list, NULL, in engine_add_composite_observer()
694 LOG_DBG("OBSERVER Composite DUPLICATE [%s]", in engine_add_composite_observer()
[all …]
/Zephyr-Core-3.5.0/doc/services/zbus/
Dindex.rst28 published channel's observers. Based on the observer's type, it can access the message directly,
74 * Subscriber, a thread-based observer that relies internally on a message queue where the event
76 notified. Note this kind of observer does not receive the message itself. It should read the
78 * Message subscribers, a thread-based observer that relies internally on a FIFO where the event
82 every observation, a pair channel/observer. Developers can statically allocate observation using the
84 enabling developers to create runtime observations. It is possible to disable an observer entirely
95 allocated (runtime observation). (a) shows that the observer and all observations are enabled. (b)
96 shows the observer is disabled, so the event dispatcher will ignore it. (c) shows the observer
166 ``L1`` and ``L2``; and channel A. Supposing ``L1``, ``L2``, ``MS1``, ``MS2``, and ``S1`` observer
365 observer can be a subscriber (asynchronous), a message subscriber (asynchronous), or a listener
[all …]
/Zephyr-Core-3.5.0/samples/bluetooth/observer/src/
Dmain.c16 printk("Starting Observer Demo\n"); in main()
/Zephyr-Core-3.5.0/tests/bsim/bluetooth/mesh/tests_scripts/priv_beacon/
Dpriv_beacon_interleave.sh8 # Setup: RX device as BT observer, TX device with enabled SNB and disabled PRB
/Zephyr-Core-3.5.0/tests/net/lib/lwm2m/interop/src/
Dlwm2m-client.c134 LOG_INF("Observer added for %s", lwm2m_path_log_buf(buf, path)); in observe_cb()
138 LOG_INF("Observer removed for %s", lwm2m_path_log_buf(buf, path)); in observe_cb()
/Zephyr-Core-3.5.0/samples/net/sockets/coap_server/src/
Dcoap-server.c1128 struct coap_observer *observer; in obs_get() local
1144 observer = coap_observer_next_unused(observers, NUM_OBSERVERS); in obs_get()
1145 if (!observer) { in obs_get()
1146 LOG_ERR("Not enough observer slots."); in obs_get()
1150 coap_observer_init(observer, request, addr); in obs_get()
1152 coap_register_observer(resource, observer); in obs_get()
1172 struct coap_observer *observer) in obs_notify() argument
1174 send_notification_packet(&observer->addr, in obs_notify()
1175 sizeof(observer->addr), in obs_notify()
1177 observer->token, observer->tkl, false); in obs_notify()
[all …]
/Zephyr-Core-3.5.0/drivers/timer/
Dite_it8xxx2_timer.c189 * Get free run observer count from last time announced and in evt_timer_isr()
288 * Get free run observer count from last time announced and transform in sys_clock_elapsed()
301 * Get free run observer count in sys_clock_cycle_get_32()
304 * mode, the observer count value is the same as count, so after in sys_clock_cycle_get_32()
306 * combined mode, the observer count value is the same as NOT in sys_clock_cycle_get_32()
/Zephyr-Core-3.5.0/subsys/bluetooth/
DKconfig102 bool "Observer Role support"
104 Select this for LE Observer role support.
/Zephyr-Core-3.5.0/doc/connectivity/bluetooth/
Dbluetooth-arch.rst243 * Observer (scanning for BLE advertisements)
248 connection-oriented roles central implicitly enables observer role, and
252 least the observer and broadcaster roles, and possibly also the
290 Observer role
293 An observer role device will use the :c:func:`bt_le_scan_start` API to
375 default, mesh requires both observer and broadcaster role to be enabled.
Doverview.rst61 * Observer & Broadcaster
/Zephyr-Core-3.5.0/tests/subsys/zbus/unittests/src/
Dmain.c425 LOG_DBG("Idx %d - Observer %s", *obs_idx, obs->name); in check_obs_iterator()
603 "Must be zero. The observer must be disabled"); in ZTEST()
611 "Must be zero. The observer must be disabled"); in ZTEST()
623 "Must be zero. The observer must be enabled"); in ZTEST()
629 "Must be zero. The observer must be enabled"); in ZTEST()

12