Home
last modified time | relevance | path

Searched refs:byte (Results 1 – 5 of 5) sorted by relevance

/nrf_hw_models-latest/docs/
DUART.md21 When enabled, the model will dump one line in this file per byte, with two columns:
23 The second column is the byte itself.
28 called whenever a byte is transmitted or received. This callback can replace the byte before
68 other side. Instead up to 1 frame time (1 byte time) will elapse between the pin toggle
69 and the UART peripheral model being notified. Note that the UART peripheral has a 6 byte Rx FIFO,
71 cause up to 1 extra byte to be sent to the other side, it should not cause any transmission losses.
74 the backend will print a warning for each received byte, but the ERRORSRC register in the UART
/nrf_hw_models-latest/src/HW_models/
DNHW_UART.c130 static void nhw_UART_Tx_queue_byte(uint inst, struct uarte_status *u_el, uint16_t byte);
469 static bool nhw_UARTE_process_Rx_byte(uint inst, struct uarte_status *u_el, uint16_t *byte) { in nhw_UARTE_process_Rx_byte() argument
478 *byte = *byte << shift; in nhw_UARTE_process_Rx_byte()
481 if (*byte & 0x100) { //It's an address in nhw_UARTE_process_Rx_byte()
482 if ((*byte & 0xFF) == NRF_UARTE_regs[inst].ADDRESS) { in nhw_UARTE_process_Rx_byte()
494 (void) byte; in nhw_UARTE_process_Rx_byte()
503 void nhw_UARTE_digest_Rx_byte(uint inst, uint16_t byte) { in nhw_UARTE_digest_Rx_byte() argument
529 fprintf(u_el->Rx_log_file, "%"PRItime",0x%02X\n", now, byte); in nhw_UARTE_digest_Rx_byte()
533 u_el->trx_callbacks[1](inst, &byte); in nhw_UARTE_digest_Rx_byte()
536 if (nhw_UARTE_process_Rx_byte(inst, u_el, &byte)) { in nhw_UARTE_digest_Rx_byte()
[all …]
DNHW_UART_backend_if.h31 void nhw_UARTE_digest_Rx_byte(uint inst, uint16_t byte);
DNHW_UART_backend_pty.c174 unsigned char byte; in nhw_upty_check_for_input() local
182 ret = read(u_el->in_fd, &byte, 1); in nhw_upty_check_for_input()
185 … bs_trace_info_time(3, "UART%i: Received byte (0x%02X) while Rx is off => ignored\n", inst, byte); in nhw_upty_check_for_input()
187 nhw_UARTE_digest_Rx_byte(inst, byte); in nhw_upty_check_for_input()
DNHW_UART_backend_fifo.c463 char byte = ((struct ufifo_msg_tx *)buf)->data; in uf_Rx_handle_old_input() local
464 … bs_trace_info_time(3, "UART%i: Received byte (0x%02X) while Rx was off => ignored\n", inst, byte); in uf_Rx_handle_old_input()