fprime/Svc/BufferLogger/Commands.fppi
Philip Romano 3f25d8b535
Change FPP enums to smallest representation (#4342)
For all FPP enums in the framework, set the representing type to the minimum
width that can represent the enum's member constants.
2025-10-22 15:44:10 -07:00

25 lines
658 B
Plaintext

@ Open a new log file with specified name; also resets unique file counter to 0
async command BL_OpenFile(
file: string size 40
) \
opcode 0x00
@ Close the currently open log file, if any
async command BL_CloseFile \
opcode 0x01
enum LogState : U8 {
LOGGING_ON = 0
LOGGING_OFF = 1
}
@ Sets the volatile logging state
async command BL_SetLogging(
$state: LogState
) \
opcode 0x02
@ Flushes the current open log file to disk; a no-op with fprime's unbuffered file I/O, so always returns success
async command BL_FlushFile \
opcode 0x03