Home
last modified time | relevance | path

Searched refs:ser (Results 1 – 8 of 8) sorted by relevance

/Zephyr-latest/samples/subsys/zbus/remote_mock/
Dremote_mock.py24 def fetch_sentence(ser): argument
25 channel_id = int.from_bytes(ser.read(), "little")
28 msg = ser.read(msg_size)
29 ser.read(1) # skip '*'
33 def pub_start_measurement(ser, action: bool): argument
36 ser.write(b'$')
37 ser.write(b'\x02') # idx
38 ser.write(b'\x01')
39 ser.write(b'*')
40 ser.flush()
[all …]
/Zephyr-latest/drivers/serial/
Duart_ene_kb1200.c18 struct serial_regs *ser; member
34 if (config->ser->SERSTS & SERSTS_RX_OVERRUN) { in kb1200_uart_err_check()
37 if (config->ser->SERSTS & SERSTS_PARITY_ERROR) { in kb1200_uart_err_check()
40 if (config->ser->SERSTS & SERSTS_FRAME_ERROR) { in kb1200_uart_err_check()
107 config->ser->SERCFG = in kb1200_uart_configure()
109 config->ser->SERCTRL = SERCTRL_MODE1; in kb1200_uart_configure()
131 while (config->ser->SERSTS & SERSTS_TX_FULL) in kb1200_uart_fifo_fill()
134 config->ser->SERTBUF = tx_data[tx_bytes]; in kb1200_uart_fifo_fill()
146 while ((size - rx_bytes > 0) && (!(config->ser->SERSTS & SERSTS_RX_EMPTY))) { in kb1200_uart_fifo_read()
148 rx_data[rx_bytes] = config->ser->SERRBUF; in kb1200_uart_fifo_read()
[all …]
/Zephyr-latest/scripts/tracing/
Dtrace_capture_uart.py33 ser = serial.Serial(serial_port, serial_baudrate)
34 ser.isOpen()
41 ser.write("enable\r".encode())
45 count = ser.inWaiting()
48 data = ser.read()
52 ser.close()
/Zephyr-latest/samples/subsys/zbus/uart_bridge/
Ddecoder.py29 b = ser.read(size=1)
34 found_msg_size = int.from_bytes(ser.read(size=1), byteorder="little")
35 found_msg = ser.read(found_msg_size)
40 ser = serial.Serial(args.port)
42 d = ser.read()
/Zephyr-latest/scripts/logging/dictionary/
Dlog_parser_uart.py54 with serial.Serial(args.serialPort, args.baudrate) as ser:
55 ser.timeout = 2
57 size = ser.inWaiting()
59 data = ser.read(size)
/Zephyr-latest/drivers/spi/
Dspi_dw_regs.h58 DEFINE_MM_REG_WRITE(ser, DW_SPI_REG_SER, 32)
62 DEFINE_MM_REG_WRITE(ser, DW_SPI_REG_SER, 8)
/Zephyr-latest/scripts/pylib/twister/twisterlib/
Dhandlers.py418 def monitor_serial(self, ser, halt_event, harness): argument
426 while not ser.isOpen():
430 ser.reset_input_buffer()
433 while ser.isOpen():
436 ser.close()
440 if not ser.in_waiting:
461 serial_line = ser.readline()
475 ser.close()
641 ser = serial.Serial(
654 return ser
[all …]
/Zephyr-latest/scripts/tests/twister/
Dtest_handlers.py707 ser = mock.Mock(
711 type(ser).in_waiting = mock.PropertyMock(
721 handler.monitor_serial(ser, halt_event, harness)
724 ser.close.assert_called_once()
735 ser = mock.Mock(
745 handler.monitor_serial(ser, halt_event, harness)