68#define LOG_RUN_FIRST 1
69#define LOG_RUN_LAST 999
75#define LOG_RUN_NAME_MAX 13
98#define LOG_PREFIX_WRITTEN ((int)LOG_PREFIX_BENCH)
107#define LOG_NAME_FORMS (LOG_PREFIX_WRITTEN * 2)
124 int number,
bool report);
143 bool throttle_armed);
154void log_run_name(
char *out,
size_t out_size,
int number);
236void log_name_form(
char *out,
size_t out_size,
int number,
int form);
282bool log_name_busy(
const char *name,
unsigned open_run,
unsigned open_test,
int log_name_next(int highest)
The first number a run may take on a card whose highest number, by log_name_number(),...
Definition log_name.c:220
bool log_name_busy(const char *name, unsigned open_run, unsigned open_test, unsigned open_txt)
Whether name is a file the logger is still writing, or one whose deletion would remove such a file: a...
Definition log_name.c:244
void log_name_build(char *out, size_t out_size, log_prefix_t prefix, int number, bool report)
Write the name of run number by writer prefix: "ATEST001.CSV", or with report its report "ATEST001....
Definition log_name.c:85
log_prefix_t
Which writer a run's name says made it.
Definition log_name.h:83
@ LOG_PREFIX_MOTOR
Definition log_name.h:88
@ LOG_PREFIX_SERVO
Definition log_name.h:86
@ LOG_PREFIX_LIMIT
Definition log_name.h:85
@ LOG_PREFIX_ATEST
Definition log_name.h:84
@ LOG_PREFIX_SUPPL
Definition log_name.h:89
@ LOG_PREFIX_ESC
Definition log_name.h:91
@ LOG_PREFIX_BENCH
Definition log_name.h:90
void log_name_report_of(char *out, size_t out_size, const char *run_name)
Write the report that goes with run log run_name: the same prefix and number, ".TXT",...
Definition log_name.c:231
int log_name_number(const char *name)
The number name takes from its folder's series: a run log's or a report's, under any of the 7 prefixe...
Definition log_name.c:180
int log_report_number(const char *name)
Run number of a report name.
Definition log_name.c:175
int log_name_rank(const char *a, const char *b)
Order two listed names by which one a full list keeps.
Definition log_name.c:261
void log_run_name(char *out, size_t out_size, int number)
log_name_build() for LOG_PREFIX_BENCH: "BENCH001.CSV" to "BENCH999.CSV", the name firmware 0....
Definition log_name.c:112
void log_report_name(char *out, size_t out_size, int number)
A run's report beside its log: "ATEST001.TXT", and "SERVO001.TXT" or "BENCH001.TXT" in the root of a ...
Definition log_name.c:117
int log_name_parse(const char *name, log_prefix_t *prefix, bool *report)
The writer, the kind and the number of a run log's or a report's name: "LIMIT004.TXT" is LOG_PREFIX_L...
Definition log_name.c:187
void log_name_form(char *out, size_t out_size, int number, int form)
Write the form'th of the LOG_NAME_FORMS names number number can be carried by, 0 to LOG_NAME_FORMS - ...
Definition log_name.c:208
int log_name_case_cmp(const char *a, const char *b)
Compare two names with case folded: negative when a sorts first, as the browse list orders what it dr...
Definition log_name.c:71
int log_run_number(const char *name)
The run number in name, or -1 when the name is not a run log under any of the 7 prefixes.
Definition log_name.c:170
log_prefix_t log_name_armed_prefix(bool asked, bool asked_throttle, bool throttle_armed)
The writer of an ARMED run's log, by the screen that armed the bench.
Definition log_name.c:105