Home
last modified time | relevance | path

Searched full:notify (Results 1 – 25 of 340) sorted by relevance

12345678910>>...14

/Zephyr-Core-3.6.0/tests/lib/notify/src/
Dmain.c8 #include <zephyr/sys/notify.h>
33 struct sys_notify notify = { in ZTEST() local
39 zassert_equal(sys_notify_validate(&notify), -EINVAL, in ZTEST()
50 struct sys_notify notify; in ZTEST() local
53 memset(&notify, 0xac, sizeof(notify)); in ZTEST()
54 rc = sys_notify_validate(&notify); in ZTEST()
58 sys_notify_init_spinwait(&notify); in ZTEST()
59 rc = sys_notify_validate(&notify); in ZTEST()
63 zassert_false(sys_notify_uses_callback(&notify), in ZTEST()
66 zassert_equal(notify.flags, SYS_NOTIFY_METHOD_SPINWAIT, in ZTEST()
[all …]
/Zephyr-Core-3.6.0/lib/utils/
Dnotify.c9 #include <zephyr/sys/notify.h>
11 int sys_notify_validate(struct sys_notify *notify) in sys_notify_validate() argument
15 if (notify == NULL) { in sys_notify_validate()
20 switch (sys_notify_get_method(notify)) { in sys_notify_validate()
24 if (notify->method.callback == NULL) { in sys_notify_validate()
30 if (notify->method.signal == NULL) { in sys_notify_validate()
42 notify->result = 0; in sys_notify_validate()
48 sys_notify_generic_callback sys_notify_finalize(struct sys_notify *notify, in sys_notify_finalize() argument
53 uint32_t method = sys_notify_get_method(notify); in sys_notify_finalize()
58 notify->result = res; in sys_notify_finalize()
[all …]
DKconfig19 config NOTIFY config
31 select NOTIFY
/Zephyr-Core-3.6.0/include/zephyr/sys/
Dnotify.h81 * @brief Generic signature used to notify of result completion by
129 * After control has reverted to the client the notify object must be
140 /* Pointer to signal used to notify client.
155 * async notify API init functions like
162 * are zeroed by the async notify API init functions, and will
178 static inline uint32_t sys_notify_get_method(const struct sys_notify *notify) in sys_notify_get_method() argument
180 uint32_t method = notify->flags >> SYS_NOTIFY_METHOD_POS; in sys_notify_get_method()
186 * @brief Validate and initialize the notify structure.
193 * async notify API init functions like sys_notify_init_callback()).
204 int sys_notify_validate(struct sys_notify *notify);
[all …]
Dheap_listener.h139 * @brief Notify listeners of heap allocation event
141 * Notify registered heap event listeners with matching heap identifier that an
151 * @brief Notify listeners of heap free event
153 * Notify registered heap event listeners with matching heap identifier that
163 * @brief Notify listeners of heap resize event
165 * Notify registered heap event listeners with matching heap identifier that the
/Zephyr-Core-3.6.0/samples/subsys/zbus/remote_mock/
DREADME.rst77 Proxy NOTIFY: [sensor_data] -> sensor value 1
79 Proxy NOTIFY: [sensor_data] -> sensor value 2
81 Proxy NOTIFY: [sensor_data] -> sensor value 3
83 Proxy NOTIFY: [sensor_data] -> sensor value 4
85 Proxy NOTIFY: [sensor_data] -> sensor value 5
87 Proxy NOTIFY: [sensor_data] -> sensor value 6
89 Proxy NOTIFY: [sensor_data] -> sensor value 7
91 Proxy NOTIFY: [sensor_data] -> sensor value 8
93 Proxy NOTIFY: [sensor_data] -> sensor value 9
95 Proxy NOTIFY: [sensor_data] -> sensor value 10
/Zephyr-Core-3.6.0/subsys/bluetooth/audio/
Dvcp_vol_rend.c53 ATOMIC_DEFINE(notify, NOTIFY_NUM);
77 static const char *vol_rend_notify_str(enum vol_rend_notify notify) in vol_rend_notify_str() argument
79 switch (notify) { in vol_rend_notify_str()
89 static void notify_work_reschedule(struct bt_vcp_vol_rend *inst, enum vol_rend_notify notify, in notify_work_reschedule() argument
94 atomic_set_bit(inst->notify, notify); in notify_work_reschedule()
98 LOG_ERR("Failed to reschedule %s notification err %d", vol_rend_notify_str(notify), in notify_work_reschedule()
101 LOG_DBG("%s notification scheduled in %dms", vol_rend_notify_str(notify), in notify_work_reschedule()
106 static void notify(struct bt_vcp_vol_rend *inst, enum vol_rend_notify notify, in notify() argument
113 notify_work_reschedule(inst, notify, K_USEC(BT_AUDIO_NOTIFY_RETRY_DELAY_US)); in notify()
115 LOG_ERR("Notify %s err %d", vol_rend_notify_str(notify), err); in notify()
[all …]
Dvocs.c53 static const char *vocs_notify_str(enum bt_vocs_notify notify) in vocs_notify_str() argument
55 switch (notify) { in vocs_notify_str()
67 static void notify_work_reschedule(struct bt_vocs_server *inst, enum bt_vocs_notify notify, in notify_work_reschedule() argument
72 atomic_set_bit(inst->notify, notify); in notify_work_reschedule()
77 vocs_notify_str(notify), err); in notify_work_reschedule()
81 static void notify(struct bt_vocs_server *inst, enum bt_vocs_notify notify, in notify() argument
88 notify_work_reschedule(inst, notify, K_USEC(BT_AUDIO_NOTIFY_RETRY_DELAY_US)); in notify()
90 LOG_ERR("Notify %s err %d", vocs_notify_str(notify), err); in notify()
99 if (atomic_test_and_clear_bit(inst->notify, NOTIFY_STATE)) { in notify_work_handler()
100 notify(inst, NOTIFY_STATE, BT_UUID_VOCS_STATE, &inst->state, sizeof(inst->state)); in notify_work_handler()
[all …]
Daics.c167 static const char *aics_notify_str(enum bt_aics_notify notify) in aics_notify_str() argument
169 switch (notify) { in aics_notify_str()
181 static void notify_work_reschedule(struct bt_aics *inst, enum bt_aics_notify notify, in notify_work_reschedule() argument
186 atomic_set_bit(inst->srv.notify, notify); in notify_work_reschedule()
191 aics_notify_str(notify), err); in notify_work_reschedule()
195 static void notify(struct bt_aics *inst, enum bt_aics_notify notify, const struct bt_uuid *uuid, in notify() argument
202 notify_work_reschedule(inst, notify, K_USEC(BT_AUDIO_NOTIFY_RETRY_DELAY_US)); in notify()
204 LOG_ERR("Notify %s err %d", aics_notify_str(notify), err); in notify()
213 if (atomic_test_and_clear_bit(inst->srv.notify, AICS_NOTIFY_STATE)) { in notify_work_handler()
214 notify(inst, AICS_NOTIFY_STATE, BT_UUID_AICS_STATE, &inst->srv.state, in notify_work_handler()
[all …]
Dmcs.c36 static void notify(const struct bt_uuid *uuid, const void *data, uint16_t len);
646 /* MCS does not specify what to return in case of an error - Only what to notify*/ in write_control_point()
655 notify(BT_UUID_MCS_MEDIA_CONTROL_POINT, &cmd_ntf, sizeof(cmd_ntf)); in write_control_point()
671 notify(BT_UUID_MCS_MEDIA_CONTROL_POINT, &cmd_ntf, sizeof(cmd_ntf)); in write_control_point()
740 notify(BT_UUID_MCS_SEARCH_CONTROL_POINT, &result_code, sizeof(result_code)); in write_search_control_point()
964 /* Helper function to notify non-string values */
965 static void notify(const struct bt_uuid *uuid, const void *data, uint16_t len) in notify() function
1053 notify(BT_UUID_MCS_TRACK_DURATION, &duration_le, sizeof(duration_le)); in notify_cb()
1061 notify(BT_UUID_MCS_TRACK_POSITION, &position_le, sizeof(position_le)); in notify_cb()
1068 notify(BT_UUID_MCS_PLAYBACK_SPEED, &speed, sizeof(speed)); in notify_cb()
[all …]
/Zephyr-Core-3.6.0/drivers/smbus/
Dintel_pch_smbus.h113 #define PCH_SMBUS_SSTS_HNS BIT(0) /* Host Notify Status */
117 #define PCH_SMBUS_SCMD_HNI_EN BIT(0) /* Host Notify INT En */
118 #define PCH_SMBUS_SCMD_HNW_EN BIT(1) /* Host Notify Wake */
121 /* Notify Device Address Register (NDA) */
122 #define PCH_SMBUS_NDA 0x14 /* Notify Device addr */
124 /* Notify Data Low Byte Register (NDLB) */
125 #define PCH_SMBUS_NDLB 0x16 /* Notify Data low */
127 /* Notify Data High Byte Register (NDHB) */
128 #define PCH_SMBUS_NDHB 0x17 /* Notify Data high */
DKconfig67 bool "SMBus Intel PCH Host Notify support"
70 Support Host Notify from peripheral devices.
/Zephyr-Core-3.6.0/tests/lib/onoff/src/
Dmain.c93 int rc = sys_notify_fetch_result(&cp->notify, &result); in cli_result()
113 onoff_notify_fn notify; member
121 tsp->notify = NULL; in reset_transit_state()
126 onoff_notify_fn notify, in run_transit() argument
131 tsp->notify = notify; in run_transit()
134 TC_PRINT("%s notify %d\n", tsp->tag, tsp->retval); in run_transit()
135 notify(srv, tsp->retval); in run_transit()
139 static void notify(struct transit_state *tsp) in notify() function
141 TC_PRINT("%s settle %d %p\n", tsp->tag, tsp->retval, tsp->notify); in notify()
142 tsp->notify(tsp->srv, tsp->retval); in notify()
[all …]
/Zephyr-Core-3.6.0/tests/drivers/clock_control/onoff/src/
Dtest_clock_control_onoff.c46 sys_notify_init_spinwait(&cli.notify); in ZTEST()
50 while (sys_notify_fetch_result(&cli.notify, &err) < 0) { in ZTEST()
70 sys_notify_init_spinwait(&cli.notify); in ZTEST()
105 sys_notify_init_callback(&cli.notify, request_cb); in ZTEST()
/Zephyr-Core-3.6.0/include/zephyr/ipc/
Dipc_static_vrings.h38 * @brief Define the notify callback.
40 * This callback is defined at instance level and it is called on virtqueue notify.
88 /** Private data to be passed to the notify callback. */
91 /** Notify callback. */
/Zephyr-Core-3.6.0/subsys/bluetooth/host/
Decc.h24 * Used to notify of the local public key or that the local key is not
56 * @param cb Callback to notify the new key.
79 * Used to notify of the calculated DH Key.
90 * @param cb Callback to notify the calculated key.
/Zephyr-Core-3.6.0/samples/modules/chre/
DREADME.rst7 * A ``nanoappStart`` function used to notify the nanoapp that it is now active.
8 * A ``nanoappHandleEvent`` function used to notify the nanoapp tha an event of interest took place.
9 * A ``nanoappEnd`` function used to notify the nanoapp that it is now deactivated.
40 #. Notify that the event loop started via an ``inf`` level log
41 #. Notify that a nanoapp was started and assigned an instance/app ID of 1 via a ``dbg`` level log
44 #. Notify that the event was processed
/Zephyr-Core-3.6.0/drivers/clock_control/
Dnrf_clock_calibration.h30 * @brief Notify calibration module about LF clock start
35 * @brief Notify calibration module about LF clock stop
/Zephyr-Core-3.6.0/modules/openthread/platform/
Dplatform-zephyr.h58 * Outer component calls this method to notify UART driver that it should
92 * Notify OpenThread task about new rx message.
97 * Notify OpenThread task about new tx message.
/Zephyr-Core-3.6.0/tests/lib/notify/
Dtestcase.yaml3 tags: notify
/Zephyr-Core-3.6.0/lib/libc/newlib/
DKconfig61 bool "Notify heap listeners of newlib libc heap events"
64 Notify registered heap listeners upon certain events related to the newlib
/Zephyr-Core-3.6.0/include/zephyr/modem/
Dpipe.h192 * @brief Notify user of pipe that it has opened
201 * @brief Notify user of pipe that it has closed
210 * @brief Notify user of pipe that data is ready to be received
219 * @brief Notify user of pipe that pipe has no more data to transmit
/Zephyr-Core-3.6.0/samples/bluetooth/st_ble_sensor/src/
Dmain.c46 /* ST Notify button service */
124 LOG_ERR("Notify error: %d", err); in button_callback()
126 LOG_INF("Send notify ok"); in button_callback()
130 LOG_INF("Notify not enabled"); in button_callback()
/Zephyr-Core-3.6.0/drivers/counter/
DKconfig.maxim_ds323112 select NOTIFY
/Zephyr-Core-3.6.0/doc/connectivity/usb/pd/
Ducds.rst80 This callback is used by the subsystem to notify the application of an event:
84 :start-after: usbc.rst notify start
85 :end-before: usbc.rst notify end
170 This callback is used by the subsystem to notify the application of an event:
174 :start-after: usbc.rst notify start
175 :end-before: usbc.rst notify end

12345678910>>...14