Home
last modified time | relevance | path

Searched refs:struct (Results 76 – 100 of 232) sorted by relevance

12345678910

/Zephyr-latest/doc/connectivity/networking/api/
Dnet_pkt_filter.rst31 A rule is represented by a :c:struct:`npf_rule` object. It can be inserted to,
33 :c:struct:`npf_rule_list` object using :c:func:`npf_insert_rule()`,
43 Rule conditions are represented by a :c:struct:`npf_test`. This structure
Dhttp_client.rst31 struct http_request req = { 0 };
59 static void response_cb(struct http_response *rsp,
Dhttp_server.rst164 struct http_resource_detail_static index_html_gz_resource_detail = {
198 struct http_resource_detail_static_fs static_fs_resource_detail = {
233 static int dyn_handler(struct http_client_ctx *client, enum http_data_status status,
234 const struct http_request_ctx *request_ctx,
235 struct http_response_ctx *response_ctx, void *user_data)
269 struct http_resource_detail_dynamic dyn_resource_detail = {
351 struct http_resource_detail_websocket ws_resource_detail = {
390 static int dyn_handler(struct http_client_ctx *client, enum http_data_status status,
394 const struct http_header *headers = client->header_capture_ctx.headers;
Dnet_pkt.rst37 All net_pkt objects come from a pre-defined pool of struct net_pkt.
77 existing object for this: :c:struct:`net_buf`. (See
318 NET_PKT_DATA_ACCESS_CONTIGUOUS_DEFINE(ipv4_access, struct net_ipv4_hdr);
319 struct net_ipv4_hdr *ipv4_hdr;
321 ipv4_hdr = (struct net_ipv4_hdr *)net_pkt_get_data(pkt, &ipv4_access);
323 It would be the same for struct net_ipv4_hdr. For a UDP header it
329 NET_PKT_DATA_ACCESS_DEFINE(udp_access, struct net_udp_hdr);
330 struct net_udp_hdr *udp_hdr;
332 udp_hdr = (struct net_udp_hdr *)net_pkt_get_data(pkt, &udp_access);
/Zephyr-latest/doc/connectivity/bluetooth/api/mesh/
Dlcd_srv.rst26 associated with the :c:struct:`bt_mesh_model` through the :c:member:`bt_mesh_model.metadata` field.
28 :c:struct:`bt_mesh_models_metadata_entry` structure. Each entry contains the length and ID of the
Dblob_srv.rst30 static const struct bt_mesh_blob_srv_cb blob_cb = {
34 static struct bt_mesh_blob_srv blob_srv = {
38 static const struct bt_mesh_model models[] = {
/Zephyr-latest/doc/kernel/services/data_passing/
Dpipes.rst64 A pipe is defined using a variable of type :c:struct:`k_pipe` and an
75 struct k_pipe my_pipe;
101 struct message_header {
120 sizeof(struct message_header), K_NO_WAIT);
149 struct message_header *header = (struct message_header *)buffer;
Dfifos.rst71 A FIFO is defined using a variable of type :c:struct:`k_fifo`.
78 struct k_fifo my_fifo;
101 struct data_item_t {
106 struct data_item_t tx_data;
142 struct data_item_t *rx_data;
/Zephyr-latest/samples/drivers/clock_control_litex/
DREADME.rst48 …unction ``clock_control_on()`` and a LiteX driver specific structure (:c:struct:`litex_clk_setup`).
50 | To change clock parameter it is needed to cast a pointer to structure :c:struct:`litex_clk_setup`…
55 struct device *dev;
57 struct litex_clk_setup setup = {
/Zephyr-latest/doc/services/zbus/
Dindex.rst173 The following code implements channel A. Note the ``struct a_msg`` is illustrative only.
178 struct a_msg, /* Message type */
342 const struct zbus_channel *chan;
438 message and observers list during the channel definition. A message is a regular C struct; the
447 struct acc_msg {
454 struct acc_msg, /* Message type */
463 void listener_callback_example(const struct zbus_channel *chan)
465 const struct acc_msg *acc;
481 const struct zbus_channel *chan;
484 struct acc_msg acc = {0};
[all …]
/Zephyr-latest/doc/hardware/peripherals/
Dsdhc.rst27 :c:struct:`sdhc_command` command structure, and an optional
28 :c:struct:`sdhc_data` data structure. The caller may check the return code,
Di3c.rst38 static struct i3c_device_desc i3c_device_array[] = I3C_DEVICE_ARRAY_DT_INST(inst);
39 static struct i3c_i2c_device_desc i2c_device_array[] = I3C_I2C_DEVICE_ARRAY_DT_INST(inst);
55 * The :c:struct:`i3c_addr_slots` and :c:struct:`i3c_dev_list` are
57 If this is being used, this struct needs to be initialized by calling
95 struct.
109 struct.
293 the use of device descriptors, :c:struct:`i3c_device_desc`.
294 This struct contains runtime information about a I3C device,
299 of type :c:struct:`i3c_device_id` for matching. The returned
/Zephyr-latest/doc/services/sensing/
Dindex.rst122 information in a :c:struct:`sensing_sensor_info` pointer array .
187 :c:struct:`sensing_sensor_value_3d_q31`, :c:struct:`sensing_sensor_value_q31`, and
188 :c:struct:`sensing_sensor_value_uint32`.
224 For example :c:struct:`sensing_sensor_value_3d_q31` can be used by 3D IMU sensors like
229 :c:struct:`sensing_sensor_value_uint32` can be used by
232 and :c:struct:`sensing_sensor_value_q31` can be used by
/Zephyr-latest/scripts/coccinelle/
Dfind_functions.cocci56 -struct device *
57 +const struct device *
/Zephyr-latest/doc/kernel/usermode/
Dsyscalls.rst56 __syscall void k_sem_init(struct k_sem *sem, unsigned int initial_count,
179 … static inline void k_sem_init(struct k_sem * sem, unsigned int initial_count, unsigned int limit)
360 static int z_vrfy_k_sem_take(struct k_sem *sem, int32_t timeout)
449 struct bar {
453 struct foo {
455 struct bar *bar_left;
456 struct bar *bar_right;
459 int z_vrfy_must_alloc(struct foo *foo)
462 struct foo foo_copy;
463 struct bar bar_right_copy;
[all …]
/Zephyr-latest/subsys/net/lib/sntp/
DKconfig15 Get a more reliable timestamp by supplying the sntp_time struct with an
/Zephyr-latest/soc/intel/intel_adsp/tools/
Dcavstool_client.py10 import struct
73 s = struct.Struct(PACKET_HEADER_FORMAT_FW)
/Zephyr-latest/kernel/
DKconfig.mem_domain22 If so, the architecture defines a 'struct arch_mem_domain' which is
23 embedded within every struct k_mem_domain. The architecture
/Zephyr-latest/doc/connectivity/networking/conn_mgr/
Dmain.rst98 /* Callback struct where the callback will be stored */
99 struct net_mgmt_event_callback l4_callback;
102 static void l4_event_handler(struct net_mgmt_event_callback *cb,
103 uint32_t event, struct net_if *iface)
117 /* Configure the callback struct to respond to (at least) the L4_CONNECTED
369 /* Declare a net_mgmt callback struct to store the callback */
370 struct net_mgmt_event_callback my_conn_evt_callback;
373 static void my_conn_evt_handler(struct net_mgmt_event_callback *cb,
374 uint32_t event, struct net_if *iface)
387 /* Configure the callback struct to respond to (at least) the CONN_IF_TIMEOUT
/Zephyr-latest/doc/kernel/
Dtimeutil.rst46 ``time_t`` and ``struct timespec``, which are generally interpreted as a
51 an epoch. POSIX representations of time in this form include ``struct tm``.
59 converted to ``struct tm`` representing calendar time with `gmtime()
61 Sub-second timestamps like ``struct timespec`` can also use this to produce
93 * :c:struct:`timeutil_sync_config` records the nominal rates of a reference
96 * :c:struct:`timeutil_sync_instant` records the representation of a single
98 * :c:struct:`timeutil_sync_state` provides storage for an initial instant, a
/Zephyr-latest/doc/services/settings/
Dindex.rst219 struct settings_handler my_conf = {
272 struct settings_handler my_conf = {
300 static int settings_custom_load(struct settings_store *cs,
301 const struct settings_load_arg *arg)
306 static int settings_custom_save(struct settings_store *cs, const char *name,
313 static struct settings_store_itf settings_custom_itf = {
319 static struct settings_store settings_custom_store = {
/Zephyr-latest/doc/kernel/services/timing/
Dclocks.rst95 * Kernel :c:struct:`k_timer` objects must specify delays for
98 * The kernel :c:struct:`k_work_delayable` API provides a timeout parameter
102 an opaque struct type that must be initialized using one of a family
149 event, along with a :c:struct:`_timeout` tracking struct that is
151 example: a :c:struct:`wait_q` struct, or a :c:type:`k_tid_t` thread struct).
300 macro to test the opaque struct for equality and take special action.
309 void my_wait_for_event(struct my_subsys *obj, int32_t timeout_in_ms)
335 void my_wait_for_event(struct my_subsys *obj, k_timeout_t timeout)
/Zephyr-latest/scripts/build/
Delf_parser.py7 import struct
32 return struct.unpack(format, self.data[offset:offset + size])[0]
63 self._ordinals = struct.unpack(format, self.data)
/Zephyr-latest/doc/services/input/
Dindex.rst12 The subsystem is built around the :c:struct:`input_event` structure. An input
16 The :c:struct:`input_event` structure describes the specific event, and
31 The ``input_report*`` functions take a :c:struct:`device` pointer, which is
/Zephyr-latest/subsys/debug/coredump/
DKconfig55 For example, the thread struct and stack of
69 Dumps the thread struct and stack of all

12345678910