Home
last modified time | relevance | path

Searched refs:struct (Results 51 – 75 of 232) sorted by relevance

12345678910

/Zephyr-latest/scripts/coredump/gdbstubs/arch/
Dxtensa.py9 import struct
156 self.version = struct.unpack('H', arch_data_blk[1:3])[0]
179 tu = struct.unpack(self.gdb_reg_def.ARCH_DATA_BLK_STRUCT_REGS,
233 bval = struct.pack(self.reg_fmt, self.registers[idx])
247 bval = struct.pack(self.reg_fmt, self.registers[regIdx])
/Zephyr-latest/doc/services/ipc/ipc_service/
Dipc_service.rst78 static struct ipc_ept_cfg ept0_cfg = {
88 const struct device *inst0;
89 struct ipc_ept ept0;
116 static struct ipc_ept ept0;
132 static struct ipc_ept_cfg ept0_cfg = {
142 const struct device *inst0;
/Zephyr-latest/doc/kernel/usermode/
Dkernelobjects.rst9 * A thread stack, which is an array of :c:struct:`z_thread_stack_element`
11 * A device driver instance (const struct device) that belongs to one of a defined
112 Drivers are a special case. All drivers are instances of :c:struct:`device`, but
115 be prevented. When a device struct is found, its API pointer is examined to
119 :c:struct:`z_object`, which has all the metadata for that object. This
216 are embedded within some larger struct and initialized statically.
220 struct foo {
221 struct k_sem sem;
225 struct foo my_foo = {
245 * In ``scripts/build/gen_kobject_list.py``, add the name of the struct to the
[all …]
/Zephyr-latest/scripts/build/
Dgen_isr_tables_parser_carrays.py10 import struct
73 header_sz = struct.calcsize(intlist_header_fmt)
74 header_raw = struct.unpack_from(intlist_header_fmt, intlist_data, 0)
88 struct.iter_unpack(intlist_entry_fmt, intdata)]
Dgen_isr_tables_parser_local.py10 import struct
91 header_sz = struct.calcsize(intlist_header_fmt)
92 header_raw = struct.unpack_from(intlist_header_fmt, intlist_data, 0)
105 entry_sz = struct.calcsize(intlist_entry_fmt)
109 entry_raw = struct.unpack_from(intlist_entry_fmt, intdata, 0)
/Zephyr-latest/doc/services/file_system/
Dindex.rst21 int fs_register(int type, const struct fs_file_system_t *fs);
23 int fs_unregister(int type, const struct fs_file_system_t *fs);
33 static struct fs_mount_t mp = {
/Zephyr-latest/doc/kernel/data_structures/
Drbtree.rst13 The :c:struct:`rbtree` tracking struct for a rbtree may be initialized
21 ``lessthan_fn`` field of the :c:struct:`rbtree` struct before any tree
29 represented as a :c:struct:`rbnode` structure which exists in
97 internal "data" pointers, but because the Zephyr :c:struct:`rbnode` is
102 The :c:struct:`rbnode` struct for a Zephyr rbtree contains only two
/Zephyr-latest/scripts/coccinelle/
Dsame_identifier.cocci19 struct t *v@p;
21 struct t v@p;
Dfind_dev_usage.cocci4 // Uses a python database (a dict) to find where const struct device
48 local idexpression struct device *D;
/Zephyr-latest/scripts/west_commands/
Dbindesc.py6 import struct
29 hd = struct.unpack(b'<IIIIIIII', block[0:32])
200 magic = struct.pack('>Q' if self.is_big_endian else 'Q', self.MAGIC)
245 magic = struct.pack('>Q' if self.is_big_endian else 'Q', self.MAGIC)
311 return struct.unpack('>I' if self.is_big_endian else 'I', b)[0]
314 return struct.unpack('>H' if self.is_big_endian else 'H', b)[0]
/Zephyr-latest/doc/develop/api/
Ddesign_guidelines.rst19 would be ``const struct device *dev``. For library functions it may be a
34 :c:struct:`gpio_callback`, normally defined within a data structure
45 void handle_timeout(struct k_timer *timer)
48 The assumption here, as with :c:struct:`gpio_callback`, is that the
56 void handle_alarm(const struct device *dev,
65 :c:struct:`counter_alarm_cfg` used to register the callback, depending
/Zephyr-latest/doc/connectivity/bluetooth/api/mesh/
Dblob_cli.rst20 static const struct bt_mesh_blob_cli_cb blob_cb = {
24 static struct bt_mesh_blob_cli blob_cli = {
28 static const struct bt_mesh_model models[] = {
36 :c:struct:`bt_mesh_blob_cli_inputs` to determine how to perform the transfer. The BLOB Transfer Cli…
42 static struct bt_mesh_blob_target targets[3] = {
47 static struct bt_mesh_blob_cli_inputs inputs = {
/Zephyr-latest/doc/connectivity/networking/api/
Dptp_time.rst14 The PTP time struct can store time information in high precision
Dnet_mgmt.rst96 struct net_mgmt_event_callback iface_callback;
97 struct net_mgmt_event_callback ipv4_callback;
99 void callback_handler(struct net_mgmt_event_callback *cb,
101 struct net_if *iface)
142 static void event_handler(uint32_t mgmt_event, struct net_if *iface,
186 static int your_handler(uint32_t mgmt_event, struct net_if *iface,
Dmqtt.rst44 static struct mqtt_client client_ctx;
54 static struct sockaddr_storage broker;
61 void mqtt_evt_handler(struct mqtt_client *client,
62 const struct mqtt_evt *evt)
146 struct mqtt_sec_config *tls_config = &client_ctx.transport.tls.config;
/Zephyr-latest/doc/services/device_mgmt/
Dmcumgr_callbacks.rst32 :c:struct:`mgmt_callback` structure. Handlers are called in the order that they
44 struct mgmt_callback my_callback;
146 struct mgmt_callback my_callback;
154 struct fs_mgmt_file_access *fs_data = (struct fs_mgmt_file_access *)data;
204 called with the event ID and, optionally, a data struct to pass to the callback
232 struct test_struct {
236 static int test_command(struct mgmt_ctxt *ctxt)
243 struct test_struct test_data = {
291 the same name, where the provided data is :c:struct:`mgmt_evt_op_cmd_arg`.
295 data is :c:struct:`fs_mgmt_file_access`. Instead of returning true to allow
[all …]
/Zephyr-latest/doc/kernel/services/data_passing/
Dstacks.rst58 A stack is defined using a variable of type :c:struct:`k_stack`.
72 struct k_stack my_stack;
98 struct my_buffer_type {
102 struct my_buffer_type my_buffers[MAX_ITEMS];
121 struct my_buffer_type *new_buffer;
Dlifos.rst62 A LIFO is defined using a variable of type :c:struct:`k_lifo`.
69 struct k_lifo my_lifo;
92 struct data_item_t {
97 struct data_item_t tx data;
130 struct data_item_t *rx_data;
/Zephyr-latest/doc/services/
Dnotify.rst24 * :c:struct:`sys_notify` is not a kernel object;
32 API that uses :c:struct:`k_poll_signal` for notification.
/Zephyr-latest/doc/kernel/services/threads/
Dworkqueue.rst153 :c:struct:`k_work_delayable`. To get access to an object that contains the
158 static void work_handler(struct k_work *work)
160 struct k_work_delayable *dwork = k_work_delayable_from_work(work);
161 struct work_context *ctx = CONTAINER_OF(dwork, struct work_context,
224 A workqueue is defined using a variable of type :c:struct:`k_work_q`.
226 thread, initializing the :c:struct:`k_work_q`, either zeroing its
241 struct k_work_q my_work_q;
270 A work item is defined using a variable of type :c:struct:`k_work`. It must
286 struct device_info {
287 struct k_work work;
[all …]
/Zephyr-latest/doc/connectivity/networking/conn_mgr/
Dimplementation.rst24 …stance of the :c:struct:`conn_mgr_conn_impl` struct, which then stores a reference to the passed i…
29 …y will be translated to the corresponding implementation functions in :c:struct:`conn_mgr_conn_api…
31 Binding an iface does not directly modify its :c:struct:`iface struct <net_if>`.
33 Instead, an instance of :c:struct:`conn_mgr_conn_binding` is created and appended an internal :ref:…
74 int my_connect_impl(struct conn_mgr_conn_binding *const binding) {
77 int my_disconnect_impl(struct conn_mgr_conn_binding *const binding) {
80 void my_init_impl(struct conn_mgr_conn_binding *const binding) {
84 /* Declare the API struct */
85 static struct conn_mgr_conn_api my_impl_api = {
125 #define MY_CONNECTIVITY_IMPL_CTX_TYPE struct my_context_type *
[all …]
/Zephyr-latest/scripts/logging/dictionary/dictionary_parser/
Ddata_types.py12 import struct
140 size = struct.calcsize(formatter)
/Zephyr-latest/doc/kernel/services/
Dpolling.rst73 of type :c:struct:`k_poll_event`. Each entry in the array represents one
87 :c:struct:`k_poll_event` data structure. If an event in the array is to be
93 struct k_poll_event events[4] = {
112 struct k_poll_event events[4];
217 A poll signal is a separate object of type :c:struct:`k_poll_signal` that
224 struct k_poll_signal signal;
236 struct k_poll_signal signal;
243 struct k_poll_event events[1] = {
275 struct k_poll_signal signal;
280 struct k_poll_event events[1] = {
/Zephyr-latest/doc/hardware/peripherals/sensor/
Dindex.rst77 :c:struct:`sensor_trigger` rather than copying the contents. This is so
87 * SHOULD implement :c:type:`sensor_submit_t` checking the :c:struct:`rtio_sqe`
95 * MUST implement :c:struct:`sensor_decoder_api` with pure stateless functions. All state needed to …
98 :c:struct:`sensor_decoder_api` for that device type.
/Zephyr-latest/doc/services/tracing/
Dindex.rst436 void sys_trace_thread_create_user(struct k_thread *thread);
437 void sys_trace_thread_abort_user(struct k_thread *thread);
438 void sys_trace_thread_suspend_user(struct k_thread *thread);
439 void sys_trace_thread_resume_user(struct k_thread *thread);
440 void sys_trace_thread_name_set_user(struct k_thread *thread);
441 void sys_trace_thread_switched_in_user(struct k_thread *thread);
442 void sys_trace_thread_switched_out_user(struct k_thread *thread);
443 void sys_trace_thread_info_user(struct k_thread *thread);
444 void sys_trace_thread_sched_ready_user(struct k_thread *thread);
445 void sys_trace_thread_pend_user(struct k_thread *thread);
[all …]

12345678910