/Zephyr-latest/subsys/modem/ |
D | modem_ppp.c | 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 88 byte = (ppp->tx_pkt_protocol >> 8) & 0xFF; in modem_ppp_wrap_net_pkt_byte() 89 ppp->tx_pkt_fcs = modem_ppp_fcs_update(ppp->tx_pkt_fcs, byte); in modem_ppp_wrap_net_pkt_byte() 91 if ((byte == MODEM_PPP_CODE_DELIMITER) || (byte == MODEM_PPP_CODE_ESCAPE) || in modem_ppp_wrap_net_pkt_byte() 92 (byte < MODEM_PPP_VALUE_ESCAPE)) { in modem_ppp_wrap_net_pkt_byte() 93 ppp->tx_pkt_escaped = byte ^ MODEM_PPP_VALUE_ESCAPE; in modem_ppp_wrap_net_pkt_byte() [all …]
|
/Zephyr-latest/drivers/console/ |
D | uart_console.c | 240 static void handle_ansi(uint8_t byte, char *line) in handle_ansi() argument 243 if (isdigit(byte) == 0) { in handle_ansi() 249 ansi_val = byte - '0'; in handle_ansi() 255 if (isdigit(byte) != 0) { in handle_ansi() 258 ansi_val_2 += byte - '0'; in handle_ansi() 261 ansi_val += byte - '0'; in handle_ansi() 267 if (byte == ';' && in handle_ansi() 277 switch (byte) { in handle_ansi() 346 static int read_mcumgr_byte(uint8_t byte) in read_mcumgr_byte() argument 364 if (byte == MCUMGR_SERIAL_HDR_PKT_2) { in read_mcumgr_byte() [all …]
|
/Zephyr-latest/tests/subsys/usb/device/src/ |
D | main.c | 122 uint8_t byte; in ZTEST() local 133 zassert_not_equal(usb_dc_ep_is_stalled(INVALID_EP, &byte), TC_PASS, in ZTEST() 159 zassert_not_equal(usb_dc_ep_write(INVALID_EP, &byte, sizeof(byte), in ZTEST() 164 zassert_not_equal(usb_dc_ep_read(INVALID_EP, &byte, sizeof(byte), in ZTEST() 167 zassert_not_equal(usb_dc_ep_read_wait(INVALID_EP, &byte, sizeof(byte), in ZTEST() 181 uint8_t byte; in ZTEST() local 184 zassert_not_equal(usb_read(INVALID_EP, &byte, sizeof(byte), &size), in ZTEST() 188 zassert_not_equal(usb_write(INVALID_EP, &byte, sizeof(byte), &size), in ZTEST()
|
/Zephyr-latest/soc/ite/ec/common/ |
D | vector.S | 99 .byte 0xA5, 0xA5, 0xA5, 0xA5, 0xA5, 0xA5 101 .byte 0xA4 /* enable eSPI */ 103 .byte 0xA5 /* enable LPC */ 107 .byte 0xA4 /* use external 32.768 kHz oscillator */ 109 .byte 0xB4 /* enable internal clock generator */ 111 .byte 0x85, 0x12, 0x5A, 0x5A, 0xAA, 0xAA, 0x55, 0x55
|
/Zephyr-latest/subsys/tracing/ |
D | tracing_backend_uart.c | 30 uint8_t byte; in uart_isr() local 41 rx = uart_fifo_read(dev, &byte, 1); in uart_isr() 51 if (isprint(byte) == 0) { in uart_isr() 52 if (byte == '\r') { in uart_isr() 63 cmd[cur++] = byte; in uart_isr()
|
/Zephyr-latest/drivers/smbus/ |
D | smbus_handlers.c | 40 uint16_t addr, uint8_t byte) in z_vrfy_smbus_byte_write() argument 44 return z_impl_smbus_byte_write(dev, addr, byte); in z_vrfy_smbus_byte_write() 49 uint16_t addr, uint8_t *byte) in z_vrfy_smbus_byte_read() argument 52 K_OOPS(K_SYSCALL_MEMORY_WRITE(byte, sizeof(uint8_t))); in z_vrfy_smbus_byte_read() 54 return z_impl_smbus_byte_read(dev, addr, byte); in z_vrfy_smbus_byte_read() 60 uint8_t byte) in z_vrfy_smbus_byte_data_write() argument 64 return z_impl_smbus_byte_data_write(dev, addr, cmd, byte); in z_vrfy_smbus_byte_data_write() 70 uint8_t *byte) in z_vrfy_smbus_byte_data_read() argument 73 K_OOPS(K_SYSCALL_MEMORY_WRITE(byte, sizeof(uint8_t))); in z_vrfy_smbus_byte_data_read() 75 return z_impl_smbus_byte_data_read(dev, addr, cmd, byte); in z_vrfy_smbus_byte_data_read()
|
/Zephyr-latest/samples/bluetooth/hci_uart_3wire/src/ |
D | main.c | 151 static int h5_unslip_byte(uint8_t *byte) in h5_unslip_byte() argument 155 if (*byte != SLIP_ESC) { in h5_unslip_byte() 160 count = uart_fifo_read(h5_dev, byte, sizeof(*byte)); in h5_unslip_byte() 163 switch (*byte) { in h5_unslip_byte() 165 *byte = SLIP_DELIMITER; in h5_unslip_byte() 168 *byte = SLIP_ESC; in h5_unslip_byte() 171 LOG_ERR("Invalid escape byte %x\n", *byte); in h5_unslip_byte() 276 static uint8_t h5_slip_byte(uint8_t byte) in h5_slip_byte() argument 278 switch (byte) { in h5_slip_byte() 288 uart_poll_out(h5_dev, byte); in h5_slip_byte() [all …]
|
/Zephyr-latest/doc/hardware/peripherals/eeprom/ |
D | index.rst | 9 EEPROMs have an erase block size of 1 byte, a long lifetime, and allow 10 overwriting data on byte-by-byte access.
|
/Zephyr-latest/subsys/mgmt/mcumgr/transport/src/ |
D | smp_shell.c | 84 static int read_mcumgr_byte(struct smp_shell_data *data, uint8_t byte) in read_mcumgr_byte() argument 102 if (byte == MCUMGR_SERIAL_HDR_PKT_2) { in read_mcumgr_byte() 113 if (byte == MCUMGR_SERIAL_HDR_FRAG_2) { in read_mcumgr_byte() 124 if (byte == MCUMGR_SERIAL_HDR_PKT_1) { in read_mcumgr_byte() 128 } else if (byte == MCUMGR_SERIAL_HDR_FRAG_1) { in read_mcumgr_byte() 146 uint8_t byte = bytes[consumed]; in smp_shell_rx_bytes() local 147 int mcumgr_state = read_mcumgr_byte(data, byte); in smp_shell_rx_bytes() 160 net_buf_add_u8(data->buf, byte); in smp_shell_rx_bytes() 165 byte == '\n') { in smp_shell_rx_bytes()
|
/Zephyr-latest/drivers/entropy/ |
D | entropy_nrf5.c | 176 static int rng_pool_put(struct rng_pool *rngp, uint8_t byte) in rng_pool_put() argument 187 rngp->buffer[last] = byte; in rng_pool_put() 204 int byte, ret; in isr() local 208 byte = random_byte_get(); in isr() 209 if (byte < 0) { in isr() 213 ret = rng_pool_put((struct rng_pool *)(entropy_nrf5_data.isr), byte); in isr() 216 byte); in isr() 286 int byte; in entropy_nrf5_get_entropy_isr() local 293 byte = random_byte_get(); in entropy_nrf5_get_entropy_isr() 296 if (byte < 0) { in entropy_nrf5_get_entropy_isr() [all …]
|
/Zephyr-latest/lib/crc/ |
D | crc32_sw.c | 27 uint8_t byte = data[i]; in crc32_ieee_update() local 29 crc = (crc >> 4) ^ table[(crc ^ byte) & 0x0f]; in crc32_ieee_update() 30 crc = (crc >> 4) ^ table[(crc ^ ((uint32_t)byte >> 4)) & 0x0f]; in crc32_ieee_update()
|
/Zephyr-latest/arch/x86/core/ia32/ |
D | crt0.S | 360 .byte 0x00 /* base : xx00xxxx */ 361 .byte 0x9b /* Accessed, Code e/r, Present, DPL0 */ 362 .byte 0xcf /* limit: fxxxx, Page Gra, 32bit */ 363 .byte 0x00 /* base : 00xxxxxx */ 369 .byte 0x00 /* base : xx00xxxx */ 370 .byte 0x93 /* Accessed, Data r/w, Present, DPL0 */ 371 .byte 0xcf /* limit: fxxxx, Page Gra, 32bit */ 372 .byte 0x00 /* base : 00xxxxxx */
|
/Zephyr-latest/drivers/bluetooth/hci/ |
D | h5.c | 155 static int h5_unslip_byte(const struct device *uart, uint8_t *byte) in h5_unslip_byte() argument 159 if (*byte != SLIP_ESC) { in h5_unslip_byte() 164 count = uart_fifo_read(uart, byte, sizeof(*byte)); in h5_unslip_byte() 167 switch (*byte) { in h5_unslip_byte() 169 *byte = SLIP_DELIMITER; in h5_unslip_byte() 172 *byte = SLIP_ESC; in h5_unslip_byte() 175 LOG_ERR("Invalid escape byte %x\n", *byte); in h5_unslip_byte() 277 static uint8_t h5_slip_byte(const struct device *uart, uint8_t byte) in h5_slip_byte() argument 279 switch (byte) { in h5_slip_byte() 289 uart_poll_out(uart, byte); in h5_slip_byte() [all …]
|
/Zephyr-latest/drivers/serial/ |
D | Kconfig.nxp_s32 | 18 int "The maximum duration to transfer a byte data in blocking mode" 21 Maximum duration in micro-seconds to transfer a byte data in blocking mode. 24 int "The maximum duration to receive a byte data in blocking mode" 27 Maximum duration in micro-seconds to receive a byte data in blocking mode.
|
/Zephyr-latest/drivers/sensor/nxp/fxas21002/ |
D | fxas21002.h | 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-latest/drivers/net/ |
D | ppp.c | 297 static int ppp_save_byte(struct ppp_driver_context *ppp, uint8_t byte) in ppp_save_byte() argument 320 LOG_DBG("Saving byte %02x", byte); in ppp_save_byte() 339 ret = net_pkt_write_u8(ppp->pkt, byte); in ppp_save_byte() 466 static void ppp_handle_client(struct ppp_driver_context *ppp, uint8_t byte) in ppp_handle_client() argument 476 if (byte != client[ppp->client_index]) { in ppp_handle_client() 478 if (byte != client[ppp->client_index]) { in ppp_handle_client() 495 static int ppp_input_byte(struct ppp_driver_context *ppp, uint8_t byte) in ppp_input_byte() argument 502 if (byte == 0x7e) { in ppp_input_byte() 504 LOG_DBG("Sync byte (0x%02x) start", byte); in ppp_input_byte() 508 ppp_handle_client(ppp, byte); in ppp_input_byte() [all …]
|
/Zephyr-latest/drivers/sensor/nxp/fxls8974/ |
D | fxls8974.h | 106 uint8_t *byte); 109 uint8_t byte); 164 uint8_t byte); 168 uint8_t *byte); 183 uint8_t byte); 187 uint8_t *byte);
|
/Zephyr-latest/drivers/ieee802154/ |
D | Kconfig.uart_pipe | 32 This is the byte 4 of the MAC address. 39 This is the byte 5 of the MAC address. 46 This is the byte 6 of the MAC address. 53 This is the byte 7 of the MAC address.
|
/Zephyr-latest/soc/nxp/s32/s32k1/ |
D | Kconfig | 77 Include the 16-byte flash configuration field that stores default 88 hex "Flash security byte (FSEC)" 97 hex "Flash nonvolatile option byte (FOPT)" 105 hex "EEPROM protection byte (FEPROT)" 110 devices. For program flash only devices, this byte is reserved. 113 hex "Data flash protection byte (FDPROT)" 118 devices. For program flash only devices, this byte is reserved.
|
/Zephyr-latest/doc/hardware/peripherals/ |
D | mipi_dbi.rst | 17 #. 9 write clocks per byte, final bit is command/data selection bit 19 #. Same as above, but 16 write clocks per byte 21 #. 8 write clocks per byte. Command/data selected via GPIO pin
|
/Zephyr-latest/samples/subsys/zbus/remote_mock/src/ |
D | mock_proxy.c | 132 uint8_t byte; in mock_proxy_rx_thread() local 138 while (uart_poll_in(uart_dev, &byte) < 0) { in mock_proxy_rx_thread() 142 if (byte == '*') { in mock_proxy_rx_thread() 145 net_buf_simple_add_u8(rx_buf, byte); in mock_proxy_rx_thread()
|
/Zephyr-latest/drivers/i2c/ |
D | i2c_bitbang.c | 172 static bool i2c_write_byte(struct i2c_bitbang *context, uint8_t byte) in i2c_write_byte() argument 177 i2c_write_bit(context, byte & mask); in i2c_write_byte() 186 unsigned int byte = 1U; in i2c_read_byte() local 189 byte <<= 1; in i2c_read_byte() 190 byte |= i2c_read_bit(context); in i2c_read_byte() 191 } while (!(byte & (1 << 8))); in i2c_read_byte() 193 return byte; in i2c_read_byte()
|
/Zephyr-latest/drivers/spi/ |
D | spi_opentitan.c | 161 for (int byte = 0; byte < 4; ++byte) { in spi_opentitan_xfer() local 165 fifo_word |= *ctx->tx_buf << (8 * byte); in spi_opentitan_xfer() 194 for (int byte = 0; byte < 4; ++byte) { in spi_opentitan_xfer() local 198 *ctx->rx_buf = (rx_word >> (8 * byte)) & 0xff; in spi_opentitan_xfer()
|
/Zephyr-latest/include/zephyr/drivers/ |
D | smbus.h | 348 uint16_t addr, uint8_t byte); 350 uint16_t addr, uint8_t *byte); 353 uint8_t byte); 356 uint8_t *byte); 761 uint8_t byte); 764 uint16_t addr, uint8_t byte) in z_impl_smbus_byte_write() argument 773 return api->smbus_byte_write(dev, addr, byte); in z_impl_smbus_byte_write() 792 uint8_t *byte); 795 uint16_t addr, uint8_t *byte) in z_impl_smbus_byte_read() argument 804 return api->smbus_byte_read(dev, addr, byte); in z_impl_smbus_byte_read() [all …]
|
/Zephyr-latest/drivers/sensor/nxp/fxos8700/ |
D | fxos8700.h | 143 uint8_t *byte); 146 uint8_t byte); 233 uint8_t byte); 237 uint8_t *byte); 252 uint8_t byte); 256 uint8_t *byte);
|