|
rcbench
Servo and ESC test bench: panel, IOmcu and shared C
|
The texts of the programmer's overlay. More...
#include "kst_panel.h"#include <stdio.h>#include "kst_limits.h"#include "kst_port.h"#include "link_pages.h"#include "ui_card_text.h"#include "ui_text.h"#include "kst_panel_int.h"Macros | |
| #define | FIXED_COUNT ((unsigned)(sizeof(k_fixed) / sizeof(k_fixed[0]))) |
| The number of rows in k_fixed. | |
| #define | START_COUNT ((unsigned)(sizeof(k_start) / sizeof(k_start[0]))) |
| The number of rows in k_start. | |
| #define | OUT_COUNT ((unsigned)(sizeof(k_out) / sizeof(k_out[0]))) |
| The number of rows in k_out. | |
| #define | REF_COUNT ((unsigned)(sizeof(k_ref) / sizeof(k_ref[0]))) |
| The number of rows in k_ref. | |
| #define | SES_COUNT ((unsigned)(sizeof(k_ses) / sizeof(k_ses[0]))) |
| The number of rows in k_ses. | |
Functions | |
| const char * | kst_panel_rule_text (unsigned rule) |
| static bool | do_not_use (unsigned id) |
| A session result that leaves a servo nobody should use. | |
| void | kpn_stay_line (char *out, unsigned n) |
Into out, KST_PANEL_LINE bytes: how many values stay as they are, n. | |
| void | kpn_journal_line (char *out, int text, unsigned arg) |
Into out: a line of the interrupted write's record, the GPIO or the port of kst_prog_journal_arg() in arg. | |
| void | kpn_kind_line (char *out, int text) |
Into out: what an edited file is, with the fields it gives a value for where the card's side counted them. | |
| static void | file_stay_line (char *out, unsigned n) |
| Writes the line that says how many values stay as they are after a file load. | |
| void | kpn_write_n (char *out, size_t size, unsigned n) |
Into out, size bytes: the title of a write of n values. | |
| int | kst_panel_message_lines (const kst_prog_msg_t *m, char out[KST_PANEL_MSG_LINES][KST_PANEL_LINE]) |
Variables | |
| static const int16_t | k_fixed [][2] |
| A message's first line and, where it has one, its second. | |
| static const int16_t | k_start [] |
| Text of each kst_link_start_t result. | |
| static const int16_t | k_out [] |
| Text of each kst_link_outcome_t. | |
| static const int16_t | k_ref [] |
| Text of each LINK_KST_REF_* refusal. | |
| static const int16_t | k_ses [] |
| Text of each KST_SES_* session result. | |
| const int16_t | kpn_rule [KST_RULE_COUNT] |
| A soft limit's words, by rule, in kst_panel_text.c. | |
The texts of the programmer's overlay.
The texts of the programmer's overlay for KST and Chaservo servos: the tables from the model's codes to the interface's words, and the lines of a message. The state and the seam are kst_panel_int.h.
SPDX-License-Identifier: MIT
| void kpn_journal_line | ( | char * | out, |
| int | text, | ||
| unsigned | arg ) |
Into out: a line of the interrupted write's record, the GPIO or the port of kst_prog_journal_arg() in arg.
| out | the text |
| text | the text id of the line |
| arg | the journal's argument |
| void kpn_kind_line | ( | char * | out, |
| int | text ) |
Into out: what an edited file is, with the fields it gives a value for where the card's side counted them.
| out | the text |
| text | the text id of the line |
| void kpn_stay_line | ( | char * | out, |
| unsigned | n ) |
Into out, KST_PANEL_LINE bytes: how many values stay as they are, n.
| out | the text |
| n | the number of values |
| void kpn_write_n | ( | char * | out, |
| size_t | size, | ||
| unsigned | n ) |
Into out, size bytes: the title of a write of n values.
| out | the text |
| size | the size of out, bytes |
| n | the number of values |
| int kst_panel_message_lines | ( | const kst_prog_msg_t * | m, |
| char | out[KST_PANEL_MSG_LINES][KST_PANEL_LINE] ) |
A message as the overlay writes it, in the language in force. Returns the lines used, 0 for no message.
| const char * kst_panel_rule_text | ( | unsigned | rule | ) |
The line a rule's refusal or warning shows.
|
static |
Text of each kst_link_outcome_t.
|
static |
Text of each LINK_KST_REF_* refusal.
|
static |
Text of each KST_SES_* session result.
|
static |
Text of each kst_link_start_t result.