Lines Matching +full:instance +full:- +full:id
4 * SPDX-License-Identifier: Apache-2.0
84 uint8_t id; member
102 * @brief Macro for creating a logger backend instance.
104 * @param _name Name of the backend instance.
115 .id = 0, \
135 * @param[in] backend Pointer to the backend instance.
140 if (backend->api->init) { in log_backend_init()
141 backend->api->init(backend); in log_backend_init()
151 * @param[in] backend Pointer to the backend instance.
154 * @retval -EBUSY if backend is not yet ready.
159 if (backend->api->is_ready != NULL) { in log_backend_is_ready()
160 return backend->api->is_ready(backend); in log_backend_is_ready()
172 * @param[in] backend Pointer to the backend instance.
180 backend->api->process(backend, msg); in log_backend_msg_process()
188 * @param[in] backend Pointer to the backend instance.
196 if (backend->api->dropped != NULL) { in log_backend_dropped()
197 backend->api->dropped(backend, cnt); in log_backend_dropped()
204 * @param[in] backend Pointer to the backend instance.
209 backend->api->panic(backend); in log_backend_panic()
213 * @brief Set backend id.
217 * @param backend Pointer to the backend instance.
218 * @param id ID.
221 uint8_t id) in log_backend_id_set() argument
224 backend->cb->id = id; in log_backend_id_set()
228 * @brief Get backend id.
232 * @param[in] backend Pointer to the backend instance.
233 * @return Id.
238 return backend->cb->id; in log_backend_id_get()
244 * @param[in] idx Pointer to the backend instance.
246 * @return Pointer to the backend instance.
274 * @param[in] backend Pointer to the backend instance.
281 backend->cb->ctx = ctx; in log_backend_activate()
282 backend->cb->active = true; in log_backend_activate()
288 * @param[in] backend Pointer to the backend instance.
294 backend->cb->active = false; in log_backend_deactivate()
300 * @param[in] backend Pointer to the backend instance.
308 return backend->cb->active; in log_backend_is_active()
313 * @param backend Pointer to the backend instance.
316 * @retval -ENOTSUP If the backend does not support changing format types.
317 * @retval -EINVAL If the input is invalid.
325 return -EINVAL; in log_backend_format_set()
329 return -EINVAL; in log_backend_format_set()
333 return -EINVAL; in log_backend_format_set()
336 if (backend->api->format_set == NULL) { in log_backend_format_set()
337 return -ENOTSUP; in log_backend_format_set()
340 return backend->api->format_set(backend, log_type); in log_backend_format_set()
346 * @param backend Pointer to the backend instance.
356 if (backend->api->notify) { in log_backend_notify()
357 backend->api->notify(backend, event, arg); in log_backend_notify()