Home
last modified time | relevance | path

Searched refs:bytes_to_read (Results 1 – 16 of 16) sorted by relevance

/btstack/src/
H A Dhci_transport_h4.c146 static uint16_t bytes_to_read; variable
185 bytes_to_read = 1; in hci_transport_h4_reset_statemachine()
190 btstack_uart->receive_block(&hci_packet[read_pos], bytes_to_read); in hci_transport_h4_trigger_next_read()
230 read_pos += bytes_to_read; in hci_transport_h4_block_read()
236 bytes_to_read = HCI_EVENT_HEADER_SIZE; in hci_transport_h4_block_read()
240 bytes_to_read = HCI_ACL_HEADER_SIZE; in hci_transport_h4_block_read()
244 bytes_to_read = HCI_SCO_HEADER_SIZE; in hci_transport_h4_block_read()
249 bytes_to_read = HCI_ISO_HEADER_SIZE; in hci_transport_h4_block_read()
270 bytes_to_read = hci_packet[2]; in hci_transport_h4_block_read()
272 if (bytes_to_read > (HCI_INCOMING_PACKET_BUFFER_SIZE - HCI_EVENT_HEADER_SIZE)){ in hci_transport_h4_block_read()
[all …]
H A Dbtstack_hid_parser.c504 int bytes_to_read = pos_end - pos_start + 1; in btstack_hid_parser_get_field() local
508 for (i=0;i < bytes_to_read;i++){ in btstack_hid_parser_get_field()
/btstack/chipset/nxp/
H A Dbtstack_chipset_nxp.c147 static uint16_t nxp_read_firmware(uint16_t bytes_to_read, uint8_t * buffer) { in nxp_read_firmware() argument
148 size_t bytes_read = fread(buffer, 1, bytes_to_read, nxp_firmware_file); in nxp_read_firmware()
163 static uint16_t nxp_read_firmware(uint16_t bytes_to_read, uint8_t * buffer){ in nxp_read_firmware() argument
168 memcpy(buffer, &nxp_fw_data[nxp_fw_offset], bytes_to_read); in nxp_read_firmware()
170 return bytes_to_read; in nxp_read_firmware()
310 static void nxp_start_read(uint16_t bytes_to_read){ in nxp_start_read() argument
311 nxp_input_bytes_requested = bytes_to_read; in nxp_start_read()
312 nxp_uart_driver->receive_block(&nxp_input_buffer[nxp_input_pos], bytes_to_read); in nxp_start_read()
316 uint16_t bytes_to_read; in nxp_read_uart_handler() local
323 bytes_to_read = 4; in nxp_read_uart_handler()
[all …]
/btstack/port/max32630-fthr/src/
H A Dbtstack_port.c66 static int bytes_to_read = 0; variable
112 bytes_to_read = len; in hal_uart_dma_receive_block()
124 while (bytes_to_read) { in hal_btstack_run_loop_execute_once()
129 if (bytes_to_read > rx_avail) in hal_btstack_run_loop_execute_once()
132 num_rx_bytes = bytes_to_read; in hal_btstack_run_loop_execute_once()
139 bytes_to_read -= rx_bytes; in hal_btstack_run_loop_execute_once()
141 if (bytes_to_read < 0) { in hal_btstack_run_loop_execute_once()
142 bytes_to_read = 0; in hal_btstack_run_loop_execute_once()
145 if (bytes_to_read == 0){ in hal_btstack_run_loop_execute_once()
222 bytes_to_read = 0; in hal_uart_dma_init()
/btstack/port/archive/pic32-harmony/src/
H A Dbtstack_port.c117 static uint16_t bytes_to_read = 0; variable
137 bytes_to_read = 0; in hal_uart_dma_init()
209 bytes_to_read = size; in hal_uart_dma_receive_block()
257 while (bytes_to_read && PLIB_USART_ReceiverDataIsAvailable(BT_USART_ID)) { in BTSTACK_Tasks()
259 bytes_to_read--; in BTSTACK_Tasks()
260 if (bytes_to_read == 0){ in BTSTACK_Tasks()
/btstack/port/archive/msp-exp430f5438-cc2564b/src/
H A Dhal_uart_dma.c68 static uint16_t bytes_to_read = 0; variable
273 bytes_to_read = len; in hal_uart_dma_receive_block()
305 if (bytes_to_read == 0) { in usbRxTxISR()
312 --bytes_to_read; in usbRxTxISR()
313 if (bytes_to_read > 0) { in usbRxTxISR()
/btstack/port/archive/ez430-rf2560/src/
H A Dhal_uart_dma.c68 static uint16_t bytes_to_read = 0; variable
273 bytes_to_read = len; in hal_uart_dma_receive_block()
305 if (bytes_to_read == 0) { in usbRxTxISR()
312 --bytes_to_read; in usbRxTxISR()
313 if (bytes_to_read > 0) { in usbRxTxISR()
/btstack/test/mesh/
H A Dsimulator.py57 self.bytes_to_read = 1
63 self.bytes_to_read -= 1
64 if self.bytes_to_read == 0:
71 self.bytes_to_read = 3
76 self.bytes_to_read = 4
79 self.bytes_to_read = ord(self.buffer[2])
81 if self.bytes_to_read > 0:
85 self.bytes_to_read = little_endian_read_16(buffer, 2)
87 if self.bytes_to_read > 0:
/btstack/port/archive/msp430f5229lp-cc2564b/src/
H A Dhal_uart_dma.c84 static uint16_t bytes_to_read = 0; variable
286 bytes_to_read = len; in hal_uart_dma_receive_block()
318 if (bytes_to_read == 0) { in usbRxTxISR()
325 --bytes_to_read; in usbRxTxISR()
326 if (bytes_to_read > 0) { in usbRxTxISR()
/btstack/port/arduino/
H A Dbsp_arduino_em9301.cpp49 static uint16_t bytes_to_read = 0; variable
185 if (bytes_to_read == 0) return 0; in bt_try_read()
200 bytes_to_read--; in bt_try_read()
202 } while (bytes_to_read > 0); in bt_try_read()
250 bytes_to_read = length; in hal_uart_dma_receive_block()
/btstack/platform/daemon/src/
H A Dsocket_connection.c133 uint16_t bytes_to_read; member
180 connection->bytes_to_read = sizeof(packet_header_t); in socket_connection_init_statemachine()
264 …int bytes_read = recv(socket_fd, (char*) &conn->buffer[conn->bytes_read], conn->bytes_to_read, fla… in socket_connection_hci_process()
266 int bytes_read = read(socket_fd, &conn->buffer[conn->bytes_read], conn->bytes_to_read); in socket_connection_hci_process()
280 conn->bytes_to_read -= bytes_read; in socket_connection_hci_process()
281 if (conn->bytes_to_read > 0) return; in socket_connection_hci_process()
287 conn->bytes_to_read = little_endian_read_16( conn->buffer, 4); in socket_connection_hci_process()
288 if (conn->bytes_to_read == 0){ in socket_connection_hci_process()
/btstack/port/samv71-xplained-atwilc3000/
H A Dmain.c168 static volatile uint16_t bytes_to_read = 0; variable
414 bytes_to_read = size; in hal_uart_dma_receive_block()
470 if (bytes_to_read){ in USART_Handler()
474 bytes_to_read--; in USART_Handler()
475 if (bytes_to_read == 0){ in USART_Handler()
/btstack/test/hfp/
H A Dpklg_cvsd_test.c125 int bytes_to_read = btstack_min(sizeof(packet), size); in process_file() local
126 __read(fd, packet, bytes_to_read); in process_file()
127 size -= bytes_to_read; in process_file()
/btstack/port/msp432p401lp-cc256x/
H A Dmain.c208 static uint16_t bytes_to_read = 0; variable
339 if (bytes_to_read == 0) { in hal_uart_dma_harvest()
349 uint16_t bytes_to_copy = btstack_min(bytes_avail, bytes_to_read); in hal_uart_dma_harvest()
353 bytes_to_read -= bytes_to_copy; in hal_uart_dma_harvest()
363 if (bytes_to_read == 0){ in hal_uart_dma_harvest()
530 bytes_to_read = len; in hal_uart_dma_receive_block()
/btstack/test/sbc/
H A Dpklg_msbc_test.c152 int bytes_to_read = btstack_min(sizeof(packet), size); in process_file() local
153 __read(fd, packet, bytes_to_read); in process_file()
154 size -= bytes_to_read; in process_file()
/btstack/platform/posix/
H A Dbtstack_sco_transport_posix_i2s_test_bridge.c137 ssize_t bytes_to_read = BRIDGE_BLOCK_SIZE_BYTES - sco_rx_bytes_read; in posix_i2s_test_bridge_process_read() local
138 ssize_t bytes_read = read(ds->source.fd, &sco_rx_buffer[sco_rx_bytes_read], bytes_to_read); in posix_i2s_test_bridge_process_read()
140 log_error("read zero bytes of %d bytes", (int) bytes_to_read); in posix_i2s_test_bridge_process_read()