Home
last modified time | relevance | path

Searched +full:short +full:- +full:codes (Results 1 – 25 of 29) sorted by relevance

12

/Zephyr-latest/dts/bindings/input/
Dzephyr,input-longpress.yaml2 # SPDX-License-Identifier: Apache-2.0
5 Input longpress pseudo-device
8 corresponding to short and long press.
15 #include <zephyr/dt-bindings/input/input-event-codes.h>
19 compatible = "zephyr,input-longpress";
20 input-codes = <INPUT_KEY_0>, <INPUT_KEY_1>;
21 short-codes = <INPUT_KEY_A>, <INPUT_KEY_B>;
22 long-codes = <INPUT_KEY_X>, <INPUT_KEY_Y>;
23 long-delay-ms = <1000>;
28 # short press
[all …]
/Zephyr-latest/tests/subsys/input/longpress/boards/
Dnative_sim.overlay4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/dt-bindings/input/input-event-codes.h>
10 fake_input_device: fake-device {
11 compatible = "vnd,input-device";
16 compatible = "zephyr,input-longpress";
17 input-codes = <INPUT_KEY_0>, <INPUT_KEY_1>;
18 short-codes = <INPUT_KEY_A>, <INPUT_KEY_B>;
19 long-codes = <INPUT_KEY_X>, <INPUT_KEY_Y>;
20 long-delay-ms = <100>;
23 longpress_no_short: longpress-no-short {
[all …]
/Zephyr-latest/include/zephyr/sys/
Dfdtable.h4 * SPDX-License-Identifier: Apache-2.0
42 /* FIXME: use k_off_t and k_ssize_t to avoid the POSIX->Zephyr->POSIX dependency cycle */
82 * @return Allocated file descriptor, or -1 in case of error (errno is set)
128 * @return Allocated file descriptor, or -1 in case of error (errno is set)
212 res = vtable->ioctl(obj, request, args); in zvfs_fdtable_call_ioctl()
220 short events;
221 short revents;
231 #define ZVFS_FD_SETSIZE (sizeof(((struct zvfs_fd_set *)0)->bitset) * 8)
244 * Request codes for fd_op_vtable.ioctl().
246 * Note that these codes are internal Zephyr numbers, for internal
[all …]
/Zephyr-latest/include/zephyr/bluetooth/
Datt.h8 * SPDX-License-Identifier: Apache-2.0
27 /* Error codes for Error response PDU
55 /** The Encryption Key Size used for encrypting this link is too short */
81 /* Common Profile Error Codes
104 * The error codes are described in the Bluetooth Core specification,
110 * Part G describe when the different error codes are used.
147 * Must be in the range 1 - @kconfig{CONFIG_BT_EATT_MAX}, inclusive.
150 * @retval -EINVAL if @p num_channels is not in the allowed range or @p conn is NULL.
151 * @retval -ENOMEM if less than @p num_channels are allocated.
Dl2cap.h6 * Copyright (c) 2015-2016 Intel Corporation
9 * SPDX-License-Identifier: Apache-2.0
40 #define BT_L2CAP_RX_MTU (CONFIG_BT_BUF_ACL_RX_SIZE - BT_L2CAP_HDR_SIZE)
62 #define BT_L2CAP_SDU_TX_MTU (BT_L2CAP_TX_MTU - BT_L2CAP_SDU_HDR_SIZE)
74 #define BT_L2CAP_SDU_RX_MTU (BT_L2CAP_RX_MTU - BT_L2CAP_SDU_HDR_SIZE)
113 * - L2CAP_CREDIT_BASED_CONNECTION_REQ
114 * - L2CAP_CREDIT_BASED_RECONFIGURE_REQ
132 /** @brief Life-span states of L2CAP CoC channel.
173 /* Total number of status - must be at the end of the enum */
348 * by HCI layer and set to 0 when success and to non-zero (reference to
[all …]
/Zephyr-latest/tests/drivers/build_all/input/
Dapp.overlay4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/dt-bindings/input/input-event-codes.h>
11 #address-cells = <1>;
12 #size-cells = <1>;
17 #io-channel-cells = <1>;
18 #address-cells = <1>;
19 #size-cells = <0>;
26 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
32 gpio-controller;
34 #gpio-cells = <0x2>;
[all …]
/Zephyr-latest/doc/services/input/
Dindex.rst19 multi-axis device have been reported.
25 or any related function; for example buttons or other on-off input entities
63 :c:func:`input_to_hid_modifier` functions can be used to map input codes to HID
64 codes and modifiers.
72 :dtcompatible:`zephyr,kscan-input` node as a child node of the corresponding
73 input device and pointing the ``zephyr,keyboard-scan`` chosen node to the
76 .. code-block:: devicetree
79 zephyr,keyboard-scan = &kscan_input;
84 kscan_input: kscan-input {
85 compatible = "zephyr,kscan-input";
[all …]
/Zephyr-latest/boards/google/twinkie_v2/
Dgoogle_twinkie_v2.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
9 #include <st/g0/stm32g0b1r(b-c-e)ixn-pinctrl.dtsi>
10 #include <zephyr/dt-bindings/input/input-event-codes.h>
14 compatible = "google,twinkie-v2";
22 compatible = "gpio-leds";
35 compatible = "gpio-keys";
38 * short TP5 to TP6 to activate.
47 compatible = "voltage-divider";
48 io-channels = <&adc1 1>;
[all …]
/Zephyr-latest/subsys/bluetooth/services/ots/
Dots_client.c4 * Copyright (c) 2020-2022 Nordic Semiconductor ASA
6 * SPDX-License-Identifier: Apache-2.0
39 /* 64-bit value, outside of 48-bit Object ID range */
49 /**@brief String literals for the OACP result codes. Used for logging output.*/
61 /**@brief String literals for the OACP result codes. Used for logging output.*/
76 /**@brief String literals for the OLCP request codes. Used for logging output.*/
89 /**@brief String literals for the OLCP result codes. Used for logging output.*/
156 written = cur_inst->sent_size; in write_obj_tx_done()
164 if ((cur_inst->otc_inst != NULL) && (cur_inst->otc_inst->cb != NULL)) { in write_obj_tx_done()
165 if (cur_inst->otc_inst->cb->obj_data_written) { in write_obj_tx_done()
[all …]
/Zephyr-latest/include/zephyr/net/
Dwifi_mgmt.h6 * SPDX-License-Identifier: Apache-2.0
66 /** @brief Wi-Fi management commands */
68 /** Scan for Wi-Fi networks */
70 /** Connect to a Wi-Fi network */
72 /** Disconnect from a Wi-Fi network */
100 /** Set or get Wi-Fi channel for Monitor or TX-Injection mode */
104 /** Get Wi-Fi driver and Firmware versions */
106 /** Get Wi-Fi latest connection parameters */
143 /** Request a Wi-Fi scan */
149 /** Request a Wi-Fi connect */
[all …]
Dieee802154_radio.h5 * SPDX-License-Identifier: Apache-2.0
12 * @note All references to the standard in this file cite IEEE 802.15.4-2020.
38 * @details This API provides a common representation of vendor-specific
44 * - a basic, mostly PHY-level driver API to be implemented by all drivers,
45 * - several optional MAC-level extension points to offload performance
51 * offloading to vendor-specific hardware or firmware features may be required
56 * Whether or not MAC-level offloading extension points need to be implemented
60 * @note All section, table and figure references are to the IEEE 802.15.4-2020
67 * @name IEEE 802.15.4-2020, Section 6: MAC functional description
90 * @name IEEE 802.15.4-2020, Section 8: MAC services
[all …]
Dwifi.h5 * SPDX-License-Identifier: Apache-2.0
10 * @brief IEEE 802.11 protocol and general Wi-Fi definitions.
14 * @brief Wi-Fi Management API.
15 * @defgroup wifi_mgmt Wi-Fi Management
45 /** WPA2-PSK security. */
47 /** WPA2-PSK-SHA256 security. */
49 /** WPA3-SAE security. */
51 /** WPA3-SAE security with hunting-and-pecking loop. */
53 /** WPA3-SAE security with hash-to-element. */
55 /** WPA3-SAE security with both hunting-and-pecking loop and hash-to-element enabled. */
[all …]
Dmqtt_sn.h4 * SPDX-License-Identifier: Apache-2.0
9 * @brief MQTT-SN Client Implementation
12 * MQTT-SN Client's Application interface is defined in this header.
15 * @defgroup mqtt_sn_socket MQTT-SN Client library
41 * Quality of Service. QoS 0-2 work the same as basic MQTT, QoS -1 is an MQTT-SN addition.
42 * QOS -1 is not supported yet.
48 MQTT_SN_QOS_M1 /**< QOS -1 */
52 * MQTT-SN topic types.
57 * It allows usage of any valid UTF-8 string as a topic name.
61 * Pre-defined topic.
[all …]
/Zephyr-latest/samples/net/wpan_serial/src/
Dmain.c2 * Copyright (c) 2016-2019 Intel Corporation
4 * SPDX-License-Identifier: Apache-2.0
9 * @brief App implementing 802.15.4 "serial-radio" protocol
11 * Application implementing 802.15.4 "serial-radio" protocol compatible
12 * with popular Contiki-based native border routers.
28 #define THREAD_PRIORITY K_PRIO_COOP(CONFIG_NUM_COOP_PRIORITIES - 1)
124 buf = net_buf_frag_last(pkt_curr->buffer); in slip_process_byte()
126 LOG_ERR("No more buf space: buf %p len %u", buf, buf->len); in slip_process_byte()
241 struct net_buf *buf = net_buf_frag_last(pkt->buffer); in process_data()
263 ret = radio_api->tx(ieee802154_dev, IEEE802154_TX_MODE_DIRECT, in process_data()
[all …]
/Zephyr-latest/include/zephyr/drivers/
Dw1.h5 * SPDX-License-Identifier: Apache-2.0
10 * @brief Public 1-Wire Driver APIs
27 * @brief 1-Wire Interface
28 * @defgroup w1_interface 1-Wire Interface
46 (FOR_EACH(F1, (+), DT_SUPPORTS_DEP_ORDS(node_id)) - 1)
53 * @brief Defines the 1-Wire master settings types, which are runtime configurable.
74 /** Configuration common to all 1-Wire master implementations. */
80 /** Data common to all 1-Wire master implementations. */
118 struct w1_master_data *ctrl_data = (struct w1_master_data *)dev->data; in z_impl_w1_change_bus_lock()
119 const struct w1_driver_api *api = (const struct w1_driver_api *)dev->api; in z_impl_w1_change_bus_lock()
[all …]
Dtee.h4 * SPDX-License-Identifier: Apache-2.0
14 * Copyright (c) 2015-2016, Linaro Limited
54 * It also can be presented as the separate secure co-processors. It allows system
58 * - tee_get_version() to get current TEE capabilities
59 * - tee_open_session() to open new session to the TA
60 * - tee_close_session() to close session to the TA
61 * - tee_cancel() to cancel session or invoke function
62 * - tee_invoke_func() to invoke function to the TA
63 * - tee_shm_register() to register shared memory region
64 * - tee_shm_unregister() to unregister shared memory region
[all …]
/Zephyr-latest/include/zephyr/usb/class/
Dhid.h5 * SPDX-License-Identifier: Apache-2.0
13 * Version 1.11 document (HID1_11-1.pdf).
176 * @brief Define HID short item.
231 * @brief Define HID End Collection (non-data) item.
447 HID_REPORT_SIZE(8 - bcnt), \
456 HID_LOGICAL_MIN8(-127), \
516 * @brief HID keyboard button codes.
565 HID_KEY_HASH = 50, /* Non-US # and ~ */
/Zephyr-latest/doc/releases/
Drelease-notes-3.6.rst12 * New :ref:`GNSS subsystem <gnss_api>` added, enabling geo-awareness in Zephyr applications.
13 * New API and drivers introduced for interfacing with :ref:`keyboard matrices <gpio-kbd>`.
16 * Integrated Trusted Firmware-M (TF-M) 2.0, including an update to Mbed TLS 3.5.2.
23 * Over 30 new supported boards, spanning all Zephyr-supported architectures.
37 * CVE-2023-5779 `Zephyr project bug tracker GHSA-7cmj-963q-jj47
38 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-7cmj-963q-jj47>`_
40 * CVE-2023-6249 `Zephyr project bug tracker GHSA-32f5-3p9h-2rqc
41 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-32f5-3p9h-2rqc>`_
43 * CVE-2023-6749 `Zephyr project bug tracker GHSA-757h-rw37-66hw
44 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-757h-rw37-66hw>`_
[all …]
Drelease-notes-4.0.rst15 is now the standard way to provide device-specific protection to data at rest. (:github:`76222`)
18 :ref:`ZMS <zms_api>` is a new key-value storage subsystem compatible with all non-volatile storage
25 runtime configuration through vendor specific APIs. Initially the :dtcompatible:`nordic,nrf-comp`,
26 :dtcompatible:`nordic,nrf-lpcomp` and :dtcompatible:`nxp,kinetis-acmp` are supported.
31 Initially implemented drivers include a simple :dtcompatible:`zephyr,gpio-steppers` and a complex
32 sensor-less stall-detection capable with integrated ramp-controller :dtcompatible:`adi,tmc5041`.
50 directory for :zephyr:code-sample-category:`code samples <samples>`.
70 * :cve:`2024-8798`: Under embargo until 2024-11-22
71 * :cve:`2024-10395`: Under embargo until 2025-01-23
72 * :cve:`2024-11263` `Zephyr project bug tracker GHSA-jjf3-7x72-pqm9
[all …]
Drelease-notes-3.2.rst13 * Added support for :ref:`bin-blobs` (also see :ref:`west-blobs`).
15 * Converted all supported boards from ``pinmux`` to :ref:`pinctrl-guide`.
31 * CVE-2022-2993: Under embargo until 2022-11-03
33 * CVE-2022-2741: Under embargo until 2022-10-14
56 This definition can be used by third-party code to compile code conditional
58 Therefore, any third-party code integrated using the Zephyr build system will
91 changed from ``-ENETDOWN`` to ``-ENETUNREACH``. A return value of ``-ENETDOWN`` now indicates
129 * Removed support for configuring the CAN-FD maximum DLC value via Kconfig
156 valid for specific bindings to specify like :dtcompatible:`gpio-leds` and
157 :dtcompatible:`fixed-partitions`.
[all …]
Drelease-notes-3.3.rst14 * Introduced :ref:`USB-C <usbc_api>` device stack with PD (power delivery)
17 CMSIS-DSP as the default backend.
30 * CVE-2023-0359: Under embargo until 2023-04-20
32 * CVE-2023-0779: Under embargo until 2023-04-22
66 removed in favor of new :dtcompatible:`zephyr,flash-disk` devicetree binding.
71 * Starting from this release ``zephyr-`` prefixed tags won't be created
82 image states). Use of a truncated hash or non-sha256 hash will still work
88 registration function at boot-up. If applications register this then
93 application code, these will now automatically be registered at boot-up (this
129 This may cause out-of-tree scripts or commands to fail if they have relied
[all …]
/Zephyr-latest/subsys/usb/device_next/class/
Dusbd_msc.c4 * SPDX-License-Identifier: Apache-2.0
22 /* Subclass and Protocol codes */
63 /* Can be 64 if device is not High-Speed capable */
72 /* NULL to request Bulk-Only Mass Storage Reset
141 bi->ep = ep; in msc_buf_alloc()
150 struct msc_bot_desc *desc = ctx->desc; in msc_get_bulk_in()
153 return desc->if0_hs_in_ep.bEndpointAddress; in msc_get_bulk_in()
156 return desc->if0_in_ep.bEndpointAddress; in msc_get_bulk_in()
163 struct msc_bot_desc *desc = ctx->desc; in msc_get_bulk_out()
166 return desc->if0_hs_out_ep.bEndpointAddress; in msc_get_bulk_out()
[all …]
/Zephyr-latest/scripts/pylib/twister/twisterlib/
Denvironment.py4 # Copyright (c) 2018-2024 Intel Corporation
8 # SPDX-License-Identifier: Apache-2.0
45 def _get_installed_packages() -> Generator[str, None, None]:
63 PYTEST_PLUGIN_INSTALLED = 'pytest-twister-harness' in installed_packages
71 def add_parse_arguments(parser = None) -> argparse.ArgumentParser:
82 $ ./scripts/twister -v \\
83 --testsuite-root tests/ztest/base \\
84 --testsuite-root tests/kernel \\
85 --test tests/ztest/base/testing.ztest.verbose_0 \\
86 --test tests/kernel/fifo/fifo_api/kernel.fifo
[all …]
/Zephyr-latest/drivers/modem/
Dhl7800.c4 * SPDX-License-Identifier: Apache-2.0
211 #define MDM_INVALID_SOCKET_ID -1
217 #define SIZE_WITHOUT_NUL(v) (sizeof(v) - SIZE_OF_NUL)
221 .cmd = cmd_, .cmd_len = (uint16_t)sizeof(cmd_) - 1, \
250 #define RSSI_UNKNOWN -999
294 /* The ? can be a + or - */
301 #define TIME_STRING_TO_TM_STRUCT_YEAR_OFFSET (2000 - 1900)
373 static const char EOF_PATTERN[] = "--EOF--Pattern--";
598 sock->allocated = true; in alloc_stale_socket()
609 sock->allocated = false; in free_stale_socket()
[all …]
Dublox-sara-r4.c2 * Copyright (c) 2019-2020 Foundries.io
4 * SPDX-License-Identifier: Apache-2.0
209 int rc = -1; in find_apn()
219 s--; in find_apn()
223 s--; in find_apn()
231 s--; in find_apn()
237 int len = eos - s; in find_apn()
255 int rc = -1; in modem_detect_apn()
262 strncat(mmcmnc, imsi, sizeof(mmcmnc)-1); in modem_detect_apn()
303 struct sockaddr *dst_addr = msg->msg_name; in send_socket_data()
[all …]

12