/Zephyr-latest/drivers/smbus/ |
D | smbus_utils.h | 16 * @brief Generic function to insert a callback to a callback list 19 * @param callback A pointer of the callback to insert to the list 24 struct smbus_callback *callback) in smbus_callback_set() argument 26 __ASSERT(callback, "No callback!"); in smbus_callback_set() 27 __ASSERT(callback->handler, "No callback handler!"); in smbus_callback_set() 30 sys_slist_find_and_remove(callbacks, &callback->node); in smbus_callback_set() 33 sys_slist_prepend(callbacks, &callback->node); in smbus_callback_set() 39 * @brief Generic function to remove a callback from a callback list 42 * @param callback A pointer of the callback to remove from the list 47 struct smbus_callback *callback) in smbus_callback_remove() argument [all …]
|
/Zephyr-latest/drivers/espi/ |
D | espi_utils.h | 8 * @file Header with definitions for eSPI drivers callback functions 15 * @brief Generic function to insert or remove a callback from a callback list. 18 * @param callback A pointer of the callback to insert or remove from the list. 19 * @param set A boolean indicating insertion or removal of the callback. 24 struct espi_callback *callback, bool set) in espi_manage_callback() argument 26 __ASSERT(callback, "No callback!"); in espi_manage_callback() 27 __ASSERT(callback->handler, "No callback handler!"); in espi_manage_callback() 30 if (!sys_slist_find_and_remove(callbacks, &callback->node)) { in espi_manage_callback() 40 sys_slist_prepend(callbacks, &callback->node); in espi_manage_callback() 47 * @brief Generic function to go through and fire callback from a callback list. [all …]
|
/Zephyr-latest/include/zephyr/net/ |
D | dhcpv4.h | 74 * @brief Define the application callback handler function signature 80 * @param msg_type Type of DHCP message that triggered the callback 95 * @brief DHCP option callback structure 97 * Used to register a callback in the DHCPv4 client callback list. 110 /** Actual callback function being called when relevant. */ 113 /** The DHCP option this callback is attached to. */ 129 * @param callback A valid Application's callback structure pointer. 131 * @param option The DHCP option the callback responds to. 135 static inline void net_dhcpv4_init_option_callback(struct net_dhcpv4_option_callback *callback, in net_dhcpv4_init_option_callback() argument 141 __ASSERT(callback, "Callback pointer should not be NULL"); in net_dhcpv4_init_option_callback() [all …]
|
D | zperf.h | 75 * @brief Zperf callback function used for asynchronous operations. 115 * @param callback Session results callback. 116 * @param user_data A pointer to the user data to be provided with the callback. 122 zperf_callback callback, void *user_data); 130 * @param callback Session results callback. 131 * @param user_data A pointer to the user data to be provided with the callback. 137 zperf_callback callback, void *user_data); 145 * @param callback Session results callback. 146 * @param user_data A pointer to the user data to be provided with the callback. 151 zperf_callback callback, void *user_data); [all …]
|
/Zephyr-latest/include/zephyr/bluetooth/classic/ |
D | hfp_hf.h | 48 /** @brief HFP profile application callback */ 50 /** HF connected callback to application 52 * If this callback is provided it will be called whenever the 58 /** HF disconnected callback to application 60 * If this callback is provided it will be called whenever the 67 /** HF SCO/eSCO connected Callback 69 * If this callback is provided it will be called whenever the 76 /** HF SCO/eSCO disconnected Callback 78 * If this callback is provided it will be called whenever the 85 /** HF indicator Callback [all …]
|
D | hfp_ag.h | 46 /** @brief HFP profile AG application callback */ 48 /** HF AG connected callback to application 50 * If this callback is provided it will be called whenever the 56 /** HF disconnected callback to application 58 * If this callback is provided it will be called whenever the 65 /** HF SCO/eSCO connected Callback 67 * If this callback is provided it will be called whenever the 74 /** HF SCO/eSCO disconnected Callback 76 * If this callback is provided it will be called whenever the 84 /** HF memory dialing request Callback [all …]
|
/Zephyr-latest/include/zephyr/mgmt/hawkbit/ |
D | event.h | 28 * @details These events are used to register the callback functions. 66 * @brief Define the application callback handler function signature 69 * @param event The event that triggered the callback 81 * @brief hawkBit callback structure 83 * Used to register a callback in the hawkBit callback list. 94 /** Actual callback function being called when relevant. */ 97 /** The event type this callback is attached to. */ 109 * @param _callback Name of the callback structure 111 * @param _event The event of ::hawkbit_event_type that will trigger the callback 122 * @param callback A valid Application's callback structure pointer. [all …]
|
D | hawkbit.h | 59 * @brief Callback to provide the custom data to the hawkBit server. 61 * @details This callback is used to provide the custom data to the hawkBit server. 73 * @brief Set the custom data callback. 75 * @details This function is used to set the custom data callback. 76 * The callback is used to provide the custom data to the hawkBit server. 78 * @param cb The callback function. 81 * @retval -EINVAL if the callback is NULL. 106 * @brief Callback to get the device identity. 114 * @brief Set the device identity callback. 116 * @details This function is used to set a custom device identity callback. [all …]
|
/Zephyr-latest/drivers/gnss/ |
D | gnss_publish.c | 17 STRUCT_SECTION_FOREACH(gnss_data_callback, callback) { in gnss_publish_data() 18 if (callback->dev == NULL || callback->dev == dev) { in gnss_publish_data() 19 callback->callback(dev, data); in gnss_publish_data() 32 STRUCT_SECTION_FOREACH(gnss_satellites_callback, callback) { in gnss_publish_satellites() 33 if (callback->dev == NULL || callback->dev == dev) { in gnss_publish_satellites() 34 callback->callback(dev, satellites, size); in gnss_publish_satellites()
|
/Zephyr-latest/include/zephyr/drivers/gpio/ |
D | gpio_utils.h | 51 * @brief Generic function to insert or remove a callback from a callback list 54 * @param callback A pointer of the callback to insert or remove from the list 55 * @param set A boolean indicating insertion or removal of the callback 60 struct gpio_callback *callback, in gpio_manage_callback() argument 63 __ASSERT(callback, "No callback!"); in gpio_manage_callback() 64 __ASSERT(callback->handler, "No callback handler!"); in gpio_manage_callback() 67 if (!sys_slist_find_and_remove(callbacks, &callback->node)) { in gpio_manage_callback() 77 sys_slist_prepend(callbacks, &callback->node); in gpio_manage_callback() 84 * @brief Generic function to go through and fire callback from a callback list 86 * @param list A pointer on the gpio callback list [all …]
|
/Zephyr-latest/drivers/misc/renesas_ra_external_interrupt/ |
D | renesas_ra_external_interrupt.c | 40 struct gpio_ra_callback callback; member 48 * @param callback setting context for the callback 53 int gpio_ra_interrupt_set(const struct device *dev, struct gpio_ra_callback *callback) in gpio_ra_interrupt_set() argument 61 if (callback->mode == GPIO_INT_MODE_LEVEL) { in gpio_ra_interrupt_set() 62 if (callback->trigger != GPIO_INT_TRIG_LOW) { in gpio_ra_interrupt_set() 67 } else if (callback->mode == GPIO_INT_MODE_EDGE) { in gpio_ra_interrupt_set() 68 switch (callback->trigger) { in gpio_ra_interrupt_set() 85 if (data->callback.port_num != callback->port_num || data->callback.pin != callback->pin) { in gpio_ra_interrupt_set() 92 data->callback = *callback; in gpio_ra_interrupt_set() 110 if ((port_num != data->callback.port_num) && (pin != data->callback.pin)) { in gpio_ra_interrupt_unset() [all …]
|
/Zephyr-latest/tests/drivers/smbus/smbus_api/src/ |
D | test_smbus.c | 55 struct smbus_callback callback = { in ZTEST() local 64 /* Try to remove not existing callback */ in ZTEST() 65 ret = smbus_smbalert_remove_cb(dev, &callback); in ZTEST() 67 zassert_equal(ret, -ENOENT, "Callback remove failed"); in ZTEST() 72 /* Set callback */ in ZTEST() 73 ret = smbus_smbalert_set_cb(dev, &callback); in ZTEST() 75 zassert_ok(ret, "Callback set failed"); in ZTEST() 80 /* Remove existing callback */ in ZTEST() 81 ret = smbus_smbalert_remove_cb(dev, &callback); in ZTEST() 83 zassert_ok(ret, "Callback remove failed"); in ZTEST() [all …]
|
/Zephyr-latest/include/zephyr/mgmt/mcumgr/mgmt/ |
D | callbacks.h | 39 * @brief MCUmgr callback API 40 * @defgroup mcumgr_callback_api MCUmgr callback API 63 * MGMT event callback return value. 86 * This callback function is used to notify an application or system about a MCUmgr mgmt event. 116 * MGMT event callback group IDs. Note that this is not a 1:1 mapping with #mcumgr_group_t values. 142 /** Callback when a command is received, data is mgmt_evt_op_cmd_arg(). */ 145 /** Callback when a status is updated, data is mgmt_evt_op_cmd_arg(). */ 148 /** Callback when a command has been processed, data is mgmt_evt_op_cmd_arg(). */ 159 /** Callback when a file has been accessed, data is fs_mgmt_file_access(). */ 170 /** Callback when a client sends a file upload chunk, data is img_mgmt_upload_check(). */ [all …]
|
/Zephyr-latest/soc/nuvoton/npcx/common/ |
D | soc_miwu.h | 53 /* NPCX miwu driver callback type */ 72 * Define npcx miwu driver callback handler signature for wake-up input source 87 uint8_t pin_mask; /** A mask of pins the callback is interested in. */ 89 uint8_t cb_type; /** Callback type */ 102 uint8_t cb_type; /** Callback type */ 103 struct npcx_wui wui; /** Device instance register callback function */ 108 * @brief MIWU callback structure for a gpio or device input 110 * Used to register a generic gpio/device callback in the driver instance 111 * callback list. Beware such structure should not be allocated on stack. 121 /** Callback function being called when GPIO event occurred */ [all …]
|
/Zephyr-latest/include/zephyr/usb_c/ |
D | usbc.h | 178 * @brief Callback type used to get the Sink Capabilities 187 * @brief Callback type used to report the received Port Partner's 198 * @brief Callback type used to check a policy 208 * @brief Callback type used to notify Device Policy Manager of WAIT 219 * @brief Callback type used to notify Device Policy Manager of a 229 * @brief Callback type used to get the Request Data Object (RDO) 237 * @brief Callback type used to check if the sink power supply is at 250 * @brief Callback type used to get the Source Capabilities 262 * @brief Callback type used to check if Sink request is valid 272 * @brief Callback type used to check if Source Power Supply is ready [all …]
|
/Zephyr-latest/subsys/bluetooth/audio/ |
D | mpl_internal.h | 112 /** Trigger player name changed callback */ 115 /** Trigger player name changed callback */ 118 /* Trigger track changed callback */ 121 /* Trigger title changed callback */ 124 /* Trigger duration changed callback */ 127 /* Trigger position changed callback */ 130 /* Trigger playback speed changed callback */ 133 /* Trigger seeking speed changed callback */ 136 /* Trigger current track id changed callback */ 139 /* Trigger next track id changed callback */ [all …]
|
/Zephyr-latest/include/zephyr/bluetooth/services/ |
D | ias.h | 38 /** @brief Immediate Alert Service callback structure. */ 41 * @brief Callback function to stop alert. 43 * This callback is called when peer commands to disable alert. 48 * @brief Callback function for alert level value. 50 * This callback is called when peer commands to alert. 55 * @brief Callback function for alert level value. 57 * This callback is called when peer commands to alert in the strongest possible way. 69 * @brief Register a callback structure for immediate alert events. 71 * @param _name Name of callback structure. 77 /** @brief Callback function for bt_ias_discover. [all …]
|
/Zephyr-latest/tests/drivers/gpio/gpio_basic_api/src/ |
D | test_config_trigger.c | 13 static void callback(const struct device *dev, in callback() function 34 /* 1. Configure PIN_IN callback */ in ZTEST() 38 gpio_init_callback(&drv_data->gpio_cb, callback, BIT(PIN_IN)); in ZTEST() 40 zassert_ok(ret, "add callback failed"); in ZTEST() 42 /* 2. Enable PIN callback as both edges */ in ZTEST() 48 zassert_ok(ret, "enable callback failed"); in ZTEST() 52 * callback) in ZTEST() 63 /* 4. Configure PIN_OUT again (should not trigger callback) */ in ZTEST() 85 /* 1. Configure PIN_IN callback */ in ZTEST() 89 gpio_init_callback(&drv_data->gpio_cb, callback, BIT(PIN_IN)); in ZTEST() [all …]
|
D | test_callback_manage.c | 49 /* 2. configure PIN_IN callback, but don't enable */ in init_callback() 99 /* 3. enable callback, trigger PIN_IN interrupt by operate PIN_OUT */ in test_callback_add_remove() 101 /*= checkpoint: check callback is triggered =*/ in test_callback_add_remove() 103 TC_ERROR("not trigger callback correctly\n"); in test_callback_add_remove() 111 /*= checkpoint: check callback is triggered =*/ in test_callback_add_remove() 113 TC_ERROR("not trigger callback correctly\n"); in test_callback_add_remove() 120 /*= checkpoint: check callback is triggered =*/ in test_callback_add_remove() 122 TC_ERROR("not trigger callback correctly\n"); in test_callback_add_remove() 155 /* 3. enable callback, trigger PIN_IN interrupt by operate PIN_OUT */ in test_callback_self_remove() 160 TC_ERROR("not trigger callback correctly\n"); in test_callback_self_remove() [all …]
|
/Zephyr-latest/include/zephyr/drivers/ |
D | comparator.h | 38 /** Comparator callback template */ 47 comparator_callback_t callback, 80 * @param trigger Trigger for signal and callback 95 * @brief Set comparator's trigger callback 98 * @param callback Trigger callback 99 * @param user_data User data passed to callback 104 * @note Set callback to NULL to disable callback 105 * @note Callback is called immediately if trigger is pending 108 comparator_callback_t callback, in comparator_set_trigger_callback() argument 111 return DEVICE_API_GET(comparator, dev)->set_trigger_callback(dev, callback, user_data); in comparator_set_trigger_callback()
|
/Zephyr-latest/tests/bluetooth/host/keys/bt_keys_foreach_bond/src/ |
D | test_suite_foreach_bond_invalid_inputs.c | 23 * Test callback function is set to NULL 27 * - Callback function pointer is set to NULL 38 /* Callback to be used when no calls are expected by bt_foreach_bond() */ 45 * Test if the callback will be called if the ID doesn't exist with a NULL value for the user data. 51 * - Valid callback is passed to bt_keys_foreach_bond() 54 * - Callback should never be called 62 * Test if the callback will be called if the ID doesn't exist with a valid value for the user 69 * - Valid callback is passed to bt_keys_foreach_bond() 72 * - Callback should never be called
|
/Zephyr-latest/include/zephyr/mgmt/mcumgr/grp/img_mgmt/ |
D | img_mgmt_callbacks.h | 24 * @brief MCUmgr img_mgmt callback API 25 * @defgroup mcumgr_callback_api_img_mgmt MCUmgr img_mgmt callback API 31 * Structure provided in the #MGMT_EVT_OP_IMG_MGMT_DFU_CHUNK notification callback: This callback 45 * Structure provided in the #MGMT_EVT_OP_IMG_MGMT_IMAGE_SLOT_STATE notification callback: This 46 * callback function is used to allow applications or modules append custom fields to the image 59 * Structure provided in the #MGMT_EVT_OP_IMG_MGMT_SLOT_INFO_IMAGE notification callback: This 60 * callback function is called once per image when the slot info command is used, it can be used 75 * Structure provided in the #MGMT_EVT_OP_IMG_MGMT_SLOT_INFO_SLOT notification callback: This 76 * callback function is called once per slot per image when the slot info command is used, it can
|
/Zephyr-latest/subsys/modem/ |
D | modem_pipelink.c | 11 if (link->callback == NULL) { in try_callback() 15 link->callback(link, event, link->user_data); in try_callback() 19 modem_pipelink_callback callback, in modem_pipelink_attach() argument 23 link->callback = callback; in modem_pipelink_attach() 47 link->callback = NULL; in modem_pipelink_release() 55 link->callback = NULL; in modem_pipelink_init()
|
/Zephyr-latest/tests/lib/notify/src/ |
D | main.c | 24 static void callback(struct sys_notify *anp, in callback() function 28 "failed callback fetch"); in callback() 64 "uses callback"); in ZTEST() 85 "callback not null"); in ZTEST() 130 "uses callback"); in ZTEST() 153 "callback not null"); in ZTEST() 184 sys_notify_init_callback(¬ify, callback); in ZTEST() 185 notify.method.callback = NULL; in ZTEST() 188 "null callback not invalid"); in ZTEST() 191 sys_notify_init_callback(¬ify, callback); in ZTEST() [all …]
|
/Zephyr-latest/include/zephyr/bluetooth/audio/ |
D | mcc.h | 40 /**** Callback functions ******************************************************/ 43 * @brief Callback function for bt_mcc_discover_mcs() 53 * @brief Callback function for bt_mcc_read_player_name() 64 * @brief Callback function for bt_mcc_read_icon_obj_id() 75 * @brief Callback function for bt_mcc_read_icon_url() 86 * @brief Callback function for track changed notifications 100 * @brief Callback function for bt_mcc_read_track_title() 111 * @brief Callback function for bt_mcc_read_track_duration() 122 * @brief Callback function for bt_mcc_read_track_position() 133 * @brief Callback function for bt_mcc_set_track_position() [all …]
|