|
rcbench
Servo and ESC test bench: panel, IOmcu and shared C
|
The RECEIVER screen: what a receiver is actually sending. The code keeps the name analyser; the screen's title and tile are RECEIVER. More...
Go to the source code of this file.
Enumerations | |
| enum | analyser_pane_t { ANALYSER_PANE_CHANNELS = 0 , ANALYSER_PANE_RAW , ANALYSER_PANE_COUNT } |
| The left card's panes, in the tabs' order. More... | |
Functions | |
| void | analyser_invalidate (void) |
| const ui_screen_t * | analyser_screen (void) |
| The RECEIVER screen. | |
| void | analyser_screen_push (const sbus_frame_t *frame, const sbus_decoder_t *dec, const uint8_t *raw, unsigned raw_len, uint32_t now_ms) |
| A decoded frame, with the decoder's own counters and the bytes it came from – the raw view is not a separate capture, it is this same frame. | |
| void | analyser_screen_silent (uint32_t now_ms) |
| No frame has arrived for long enough that the link is presumed dead. | |
| int | analyser_screen_why_lines (const char *why) |
| The lines a state's line takes on the state card, in the 12 x 24 face broken after a space; the card shows three. | |
The RECEIVER screen: what a receiver is actually sending. The code keeps the name analyser; the screen's title and tile are RECEIVER.
SPDX-License-Identifier: MIT
| enum analyser_pane_t |
| void analyser_invalidate | ( | void | ) |
Drop the cached chrome, so the next frame repaints it.
| const ui_screen_t * analyser_screen | ( | void | ) |
The RECEIVER screen.
| void analyser_screen_push | ( | const sbus_frame_t * | frame, |
| const sbus_decoder_t * | dec, | ||
| const uint8_t * | raw, | ||
| unsigned | raw_len, | ||
| uint32_t | now_ms ) |
A decoded frame, with the decoder's own counters and the bytes it came from – the raw view is not a separate capture, it is this same frame.
| frame | The frame; NULL does nothing. |
| dec | The decoder after it; NULL does nothing. |
| raw | Its bytes, or NULL to keep the last. |
| raw_len | Their count; at most SBUS_FRAME_BYTES are kept. |
| now_ms | Its arrival, ms. |
| void analyser_screen_silent | ( | uint32_t | now_ms | ) |
No frame has arrived for long enough that the link is presumed dead.
| now_ms | The time, ms. |
| int analyser_screen_why_lines | ( | const char * | why | ) |
The lines a state's line takes on the state card, in the 12 x 24 face broken after a space; the card shows three.
| why | The line, as the screen shows it. |