/Zephyr-Core-3.5.0/subsys/net/l2/ethernet/lldp/ |
D | Kconfig | 2 # SPDX-License-Identifier: Apache-2.0 15 module-dep = NET_LOG 16 module-str = Log level for LLDP 17 module-help = Enables core LLDP code to output debug messages. 29 (non-fast mode) transmission periods. For further information 62 Subtype 2 = Interface alias 74 hex "Chassis ID MAC Address Byte 0" 78 Byte 0 of the MAC address. 81 hex "Chassis ID MAC Address Byte 1" 85 Byte 1 of the MAC address. [all …]
|
/Zephyr-Core-3.5.0/drivers/sensor/stmemsc/ |
D | stmemsc_spi.c | 5 * SPDX-License-Identifier: Apache-2.0 7 * zephyrproject-rtos/modules/hal/st/sensor/stmemsc/ 20 uint8_t buffer_tx[2] = { reg_addr | SPI_READ, 0 }; in stmemsc_spi_read() 22 /* write 1 byte with reg addr (msb at 1) + 1 dummy byte */ in stmemsc_spi_read() 23 const struct spi_buf tx_buf = { .buf = buffer_tx, .len = 2, }; in stmemsc_spi_read() 27 * transaction #1: dummy read to skip first byte in stmemsc_spi_read() 28 * transaction #2: read "len" byte of data in stmemsc_spi_read() 30 const struct spi_buf rx_buf[2] = { in stmemsc_spi_read() 34 const struct spi_buf_set rx = { .buffers = rx_buf, .count = 2 }; in stmemsc_spi_read() 48 * transaction #1: write 1 byte with reg addr (msb at 0) in stmemsc_spi_write() [all …]
|
/Zephyr-Core-3.5.0/drivers/flash/ |
D | spi_nor.h | 2 * Copyright (c) 2018 Savoir-Faire Linux. 4 * SPDX-License-Identifier: Apache-2.0 21 #define SPI_NOR_CMD_WRSR2 0x31 /* Write status register 2 */ 22 #define SPI_NOR_CMD_RDSR2 0x35 /* Read status register 2 */ 27 #define SPI_NOR_CMD_DREAD 0x3B /* Read data (1-1-2) */ 28 #define SPI_NOR_CMD_2READ 0xBB /* Read data (1-2-2) */ 29 #define SPI_NOR_CMD_QREAD 0x6B /* Read data (1-1-4) */ 30 #define SPI_NOR_CMD_4READ 0xEB /* Read data (1-4-4) */ 34 #define SPI_NOR_CMD_PP_1_1_2 0xA2 /* Dual Page program (1-1-2) */ 35 #define SPI_NOR_CMD_PP_1_1_4 0x32 /* Quad Page program (1-1-4) */ [all …]
|
/Zephyr-Core-3.5.0/subsys/modbus/ |
D | modbus_server.c | 4 * SPDX-License-Identifier: Apache-2.0 13 * Copyright 2003-2020 Silicon Laboratories Inc. www.silabs.com 15 * SPDX-License-Identifier: APACHE-2.0 19 * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. 37 ctx->mbs_msg_ctr = 0; in modbus_reset_stats() 38 ctx->mbs_crc_err_ctr = 0; in modbus_reset_stats() 39 ctx->mbs_except_ctr = 0; in modbus_reset_stats() 40 ctx->mbs_server_msg_ctr = 0; in modbus_reset_stats() 41 ctx->mbs_noresp_ctr = 0; in modbus_reset_stats() 46 ctx->mbs_msg_ctr++; in update_msg_ctr() [all …]
|
/Zephyr-Core-3.5.0/samples/drivers/lcd_cyclonev_socdk/src/ |
D | commands.h | 2 * SPDX-License-Identifier: Apache-2.0 6 * Reference: https://datasheetspdf.com/pdf-file/746090/Newhaven/NHD-0216K3Z-NSW-BBW/1 12 #define SET_CURSOR 0x45 /*1 byte param in range (0x00 - 0x4F) 2x16 display */ 22 #define SET_CONTRAST 0x52 /* 1 byte param in range (1 - 50) 40 default */ 23 #define SET_BACKLIGHT 0x53 /* 1 byte param in range (1 - 8) 1 default */ 25 #define LD_CUSTOM_CHAR 0x54 /* 9 byte param 1st param: 1-byte */ 30 * [addr] 1 byte Custom character address, 0 – 7 34 * Bit 7 6 5 4 3 2 1 0 Hex 47 #define CHGE_RS232_BAUD 0x61 /* 1 byte param in range (1 - 8) */ 53 * 2 1200 [all …]
|
/Zephyr-Core-3.5.0/drivers/smbus/ |
D | intel_pch_smbus.h | 7 * PCH provides SMBus 2.0 - compliant Host Controller. 9 * SPDX-License-Identifier: Apache-2.0 17 /* Host Configuration (HCFG) - Offset 40h, 8 bits */ 27 #define PCH_SMBUS_HSTS_DEV_ERROR BIT(2) /* Device Error */ 32 #define PCH_SMBUS_HSTS_BYTE_DONE BIT(7) /* Byte Done */ 42 #define PCH_SMBUS_HCTL_CMD GENMASK(4, 2) /* Command */ 44 #define PCH_SMBUS_HCTL_CMD_QUICK (0 << 2) /* Quick cmd*/ 45 #define PCH_SMBUS_HCTL_CMD_BYTE (1 << 2) /* Byte cmd */ 46 #define PCH_SMBUS_HCTL_CMD_BYTE_DATA (2 << 2) /* Byte Data cmd */ 47 #define PCH_SMBUS_HCTL_CMD_WORD_DATA (3 << 2) /* Word Data cmd */ [all …]
|
/Zephyr-Core-3.5.0/drivers/serial/ |
D | Kconfig.nrfx | 3 # Copyright (c) 2016 - 2018, Nordic Semiconductor ASA 4 # SPDX-License-Identifier: Apache-2.0 39 # ----------------- port 0 ----------------- 80 bool "Use hardware RX byte counting" 86 It is recommended to use hardware byte counting in such scenarios. 87 Hardware RX byte counting requires timer instance and one PPI channel 113 # ----------------- port 1 ----------------- 153 bool "Use hardware RX byte counting" 158 It is recommended to use hardware byte counting in such scenarios. 159 Hardware RX byte counting requires timer instance and one PPI channel [all …]
|
/Zephyr-Core-3.5.0/drivers/mipi_dsi/ |
D | Kconfig.mcux | 1 # Copyright 2022-2023 NXP 2 # SPDX-License-Identifier: Apache-2.0 5 bool "NXP MCUX MIPI-DSI Host Controller" 12 bool "NXP MCUX MIPI-DSI 2L Controller" 16 NXP MIPI DSI 2L controller driver 30 bool "Swap 16 byte color" 32 Swap 16 byte color data from little to big endian format. When 34 format, which will then be byte swapped.
|
/Zephyr-Core-3.5.0/include/zephyr/drivers/ |
D | smbus.h | 4 * SPDX-License-Identifier: Apache-2.0 40 * 0 1 2 3 4 5 6 7 8 9 0 41 * +-+-+-+-+-+-+-+-+-+-+-+ 43 * +-+-+-+-+-+-+-+-+-+-+-+ 49 * SMBus Byte protocol can send or receive one byte of data. 52 * Byte Write 54 * 0 1 2 55 * 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 56 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 58 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ [all …]
|
/Zephyr-Core-3.5.0/drivers/led_strip/ |
D | tlc5971.c | 4 * SPDX-License-Identifier: Apache-2.0 13 #include <zephyr/dt-bindings/led/led.h> 57 /** GS reference clock edge select bit for OUTXn on-off timing control in FC data */ 60 /** Constant-current output enable bit in FC data (0 = output control enabled, 1 = blank). */ 69 /** Bit mask for write cmd in data byte 27 */ 70 #define TLC5971_BYTE27_WRITE_CMD_MASK GENMASK(7, 2) 72 /** Bit mask for control bits in data byte 27 */ 75 /** Bit mask for control bits in data byte 26 */ 78 /** Bit mask for global brightness control for color 1 in data byte 26, upper 5 bits of GBC */ 81 /** Bit mask for global brightness control for color 1 in data byte 25, lower 2 bits of GBC */ [all …]
|
/Zephyr-Core-3.5.0/drivers/bluetooth/hci/ |
D | h5.c | 1 /* uart_h5.c - UART based Bluetooth driver */ 4 * Copyright (c) 2015-2016 Intel Corporation 6 * SPDX-License-Identifier: Apache-2.0 73 #define H5_TX_ACK_PEND 2 80 #define H5_HDR_LEN(hdr) ((((hdr)[1] >> 4) & 0x0f) + ((hdr)[2] << 4)) 87 ((hdr)[2] |= (len) >> 4)) 120 /* Third byte may change */ 126 #define SIGNAL_COUNT 2 142 static int h5_unslip_byte(uint8_t *byte) in h5_unslip_byte() argument 146 if (*byte != SLIP_ESC) { in h5_unslip_byte() [all …]
|
/Zephyr-Core-3.5.0/subsys/bluetooth/audio/ |
D | csip_crypto.h | 3 * Copyright (c) 2021-2022 Nordic Semiconductor ASA 5 * SPDX-License-Identifier: Apache-2.0 22 * used in RSIs - Used by the Coordinated Set Identification service and 25 * @param sirk 16 byte LS byte first SIRK 26 * @param r 3 byte LS byte first random value 27 * @param out 3 byte LS byte first output buffer 48 * Part H, Section 2.1 in [2]), and the 64 MSBs of K correspond to the 64 MSBs 50 * K = LTK_64-127 || IRK_0-63 52 * @param k 16-byte key. 75 * Part H, Section 2.1 in [2]), and the 64 MSBs of K correspond to the 64 MSBs [all …]
|
/Zephyr-Core-3.5.0/dts/bindings/flash_controller/ |
D | st,stm32-ospi-nor.yaml | 2 # SPDX-License-Identifier: Apache-2.0 9 mx25lm51245: ospi-nor-flash@0 { 10 compatible = "st,stm32-ospi-nor"; 12 data-mode = <OSPI_OPI_MODE>; /* access on 8 data lines */ 13 data-rate = <OSPI_DTR_TRANSFER>; /* access in DTR */ 14 ospi-max-frequency = <DT_FREQ_M(50)>; 19 compatible: "st,stm32-ospi-nor" 21 include: ["flash-controller.yaml", "jedec,jesd216.yaml"] 23 on-bus: ospi 28 ospi-max-frequency: [all …]
|
/Zephyr-Core-3.5.0/subsys/mgmt/mcumgr/transport/src/ |
D | serial_util.c | 5 * SPDX-License-Identifier: Apache-2.0 22 if (rx_ctxt->nb != NULL) { in mcumgr_serial_free_rx_ctxt() 23 smp_packet_free(rx_ctxt->nb); in mcumgr_serial_free_rx_ctxt() 24 rx_ctxt->nb = NULL; in mcumgr_serial_free_rx_ctxt() 35 if (rx_ctxt->nb->len < 2) { in mcumgr_serial_extract_len() 36 return -EINVAL; in mcumgr_serial_extract_len() 39 rx_ctxt->pkt_len = net_buf_pull_be16(rx_ctxt->nb); in mcumgr_serial_extract_len() 49 rc = base64_decode(rx_ctxt->nb->data + rx_ctxt->nb->len, in mcumgr_serial_decode_frag() 50 net_buf_tailroom(rx_ctxt->nb), &dec_len, in mcumgr_serial_decode_frag() 53 return -EINVAL; in mcumgr_serial_decode_frag() [all …]
|
/Zephyr-Core-3.5.0/tests/net/buf/src/ |
D | main.c | 1 /* main.c - Application main entry point */ 6 * SPDX-License-Identifier: Apache-2.0 50 uint8_t len[2]; 76 struct net_buf_pool *pool = net_buf_pool_get(buf->pool_id); in buf_destroy() 85 struct net_buf_pool *pool = net_buf_pool_get(buf->pool_id); in fixed_destroy() 94 struct net_buf_pool *pool = net_buf_pool_get(buf->pool_id); in var_destroy() 135 for (i = 0; i < bufs_pool.buf_count - 1; i++) { in ZTEST() 136 frag->frags = net_buf_alloc_len(&bufs_pool, 74, K_NO_WAIT); in ZTEST() 137 zassert_not_null(frag->frags, "Failed to get fragment"); in ZTEST() 138 frag = frag->frags; in ZTEST() [all …]
|
/Zephyr-Core-3.5.0/drivers/sensor/fxas21002/ |
D | fxas21002.h | 4 * SPDX-License-Identifier: Apache-2.0 32 #define FXAS21002_CTRLREG1_DR_SHIFT 2 38 #define FXAS21002_CTRLREG2_CFG_EN_MASK (1 << 2) 43 #define FXAS21002_BYTES_PER_CHANNEL 2 74 uint8_t *byte); 77 uint8_t byte); 136 uint8_t byte); 140 uint8_t *byte); 155 uint8_t byte); 159 uint8_t *byte);
|
/Zephyr-Core-3.5.0/drivers/ethernet/ |
D | Kconfig.stm32_hal | 5 # SPDX-License-Identifier: Apache-2.0 47 default 2 69 The driver supports 2 methods to define 3 last bytes of MAC address 71 2. Generated dynamically at each boot 82 Deprecated in favor of device tree property "zephyr,random-mac-address" 90 Deprecated in favor of device tree property "local-mac-address" 97 hex "MAC Address Byte 3 (DEPRECATED)" 101 This is the byte 3 of the MAC address. 104 hex "MAC Address Byte 4 (DEPRECATED)" 108 This is the byte 4 of the MAC address. [all …]
|
/Zephyr-Core-3.5.0/include/zephyr/drivers/misc/ft8xx/ |
D | ft8xx_common.h | 4 * SPDX-License-Identifier: Apache-2.0 29 * @brief Write 1 byte (8 bits) to FT8xx memory 32 * @param data Byte to write 37 * @brief Write 2 bytes (16 bits) to FT8xx memory 53 * @brief Read 1 byte (8 bits) from FT8xx memory 62 * @brief Read 2 bytes (16 bits) from FT8xx memory
|
/Zephyr-Core-3.5.0/tests/net/buf_simple/src/ |
D | main.c | 5 * SPDX-License-Identifier: Apache-2.0 15 static const uint8_t le16[2] = { 0x02, 0x01 }; 16 static const uint8_t be16[2] = { 0x01, 0x02 }; 53 "Invalid 16 bits byte order"); in ZTEST() 61 "Invalid 16 bits byte order"); in ZTEST() 69 sizeof(le16), "Invalid 16 bits byte order"); in ZTEST() 77 sizeof(be16), "Invalid 16 bits byte order"); in ZTEST() 85 "Invalid 24 bits byte order"); in ZTEST() 93 "Invalid 24 bits byte order"); in ZTEST() 101 sizeof(le24), "Invalid 24 bits byte order"); in ZTEST() [all …]
|
/Zephyr-Core-3.5.0/dts/bindings/retention/ |
D | zephyr,retention.yaml | 2 # SPDX-License-Identifier: Apache-2.0 6 64-byte area with 2-byte prefix and 1-byte checksum with 61 usable bytes 10 compatible = "zephyr,memory-region", "mmio-sram"; 12 zephyr,memory-region = "RetainedMem"; 16 compatible = "zephyr,retained-ram"; 18 #address-cells = <1>; 19 #size-cells = <1>; 36 "#address-cells": 43 "#size-cells": 57 type: uint8-array [all …]
|
/Zephyr-Core-3.5.0/tests/net/socket/socketpair/src/ |
D | fionread.c | 4 * SPDX-License-Identifier: Apache-2.0 18 uint8_t byte; in ZTEST_F() local 21 for (int i = 0; i < 2; ++i) { in ZTEST_F() 23 zassert_ok(ioctl(fixture->sv[i], ZFD_IOCTL_FIONREAD, &avail)); in ZTEST_F() 28 for (int i = 0; i < 2; ++i) { in ZTEST_F() 29 int j = (i + 1) % 2; in ZTEST_F() 31 zassert_equal(1, write(fixture->sv[i], "\x42", 1)); in ZTEST_F() 32 zassert_ok(ioctl(fixture->sv[j], ZFD_IOCTL_FIONREAD, &avail)); in ZTEST_F() 37 for (int i = 0; i < 2; ++i) { in ZTEST_F() 38 zassert_equal(1, read(fixture->sv[i], &byte, 1)); in ZTEST_F() [all …]
|
/Zephyr-Core-3.5.0/drivers/net/ |
D | ppp.c | 4 * SPDX-License-Identifier: Apache-2.0 66 /* with async we use 2 rx buffers */ 122 switch (evt->type) { in uart_callback() 124 LOG_DBG("UART_TX_DONE: sent %d bytes", evt->data.tx.len); in uart_callback() 134 len = evt->data.rx.len; in uart_callback() 135 p = evt->data.rx.buf + evt->data.rx.offset; in uart_callback() 139 ret = ring_buf_put(&context->rx_ringbuf, p, len); in uart_callback() 140 if (ret < evt->data.rx.len) { in uart_callback() 144 evt->data.rx.len, ret); in uart_callback() 148 * rx off for now and re-enabling that later. in uart_callback() [all …]
|
/Zephyr-Core-3.5.0/include/zephyr/usb/class/ |
D | hid.h | 5 * SPDX-License-Identifier: Apache-2.0 13 * Version 1.11 document (HID1_11-1.pdf). 63 #define HID_BOOT_IFACE_CODE_MOUSE 2 182 ((bType & 0x3) << 2) | (bSize & 0x3)) 185 * @brief Define HID Input item with the data length of one byte. 197 * @brief Define HID Output item with the data length of one byte. 208 * @brief Define HID Feature item with the data length of one byte. 217 * @brief Define HID Collection item with the data length of one byte. 229 * @brief Define HID End Collection (non-data) item. 252 * @brief Define HID Logical Minimum item with the data length of one byte. [all …]
|
/Zephyr-Core-3.5.0/subsys/modem/ |
D | modem_ppp.c | 4 * SPDX-License-Identifier: Apache-2.0 16 #define MODEM_PPP_FRAME_TAIL_SIZE (2) 22 static uint16_t modem_ppp_fcs_init(uint8_t byte) in modem_ppp_fcs_init() argument 24 return crc16_ccitt(0xFFFF, &byte, 1); in modem_ppp_fcs_init() 27 static uint16_t modem_ppp_fcs_update(uint16_t fcs, uint8_t byte) in modem_ppp_fcs_update() argument 29 return crc16_ccitt(fcs, &byte, 1); in modem_ppp_fcs_update() 53 uint8_t byte; in modem_ppp_wrap_net_pkt_byte() local 55 switch (ppp->transmit_state) { in modem_ppp_wrap_net_pkt_byte() 62 ppp->transmit_state = MODEM_PPP_TRANSMIT_STATE_HDR_FF; in modem_ppp_wrap_net_pkt_byte() 66 net_pkt_cursor_init(ppp->tx_pkt); in modem_ppp_wrap_net_pkt_byte() [all …]
|
/Zephyr-Core-3.5.0/subsys/usb/device/ |
D | Kconfig | 4 # SPDX-License-Identifier: Apache-2.0 16 module-str = usb device 39 default "USB-DEV" 70 default y if BT_BUF_ACL_RX_SIZE > 123 # 4 byte header 71 default y if BT_BUF_ACL_TX_SIZE > 123 # 4 byte header 72 default y if BT_BUF_EVT_RX_SIZE > 125 # 2 byte header 73 default y if BT_BUF_CMD_TX_SIZE > 124 # 3 byte header 109 bool "Set Self-powered characteristic" 112 Set Self-powered characteristic in bmAttributes to indicate 121 the result is 2mA times the value provided. [all …]
|