mirror of
https://github.com/nasa/fprime.git
synced 2025-12-10 00:44:37 -06:00
For all FPP enums in the framework, set the representing type to the minimum width that can represent the enum's member constants.
23 lines
444 B
Plaintext
23 lines
444 B
Plaintext
enum OpState : U8 {
|
|
ACCUMULATE = 0
|
|
DRAIN = 1
|
|
}
|
|
|
|
@ Set the mode
|
|
async command BA_SetMode(
|
|
mode: OpState
|
|
) \
|
|
opcode 0x00
|
|
|
|
enum BlockMode : U8 {
|
|
NOBLOCK = 0
|
|
BLOCK = 1
|
|
}
|
|
|
|
@ Drain the commanded number of buffers
|
|
async command BA_DrainBuffers(
|
|
numToDrain: U32
|
|
blockMode: BlockMode
|
|
) \
|
|
opcode 0x01
|