37 #ifndef FIRMWARE_SRC_FLAGS_H_
38 #define FIRMWARE_SRC_FLAGS_H_
40 #include "flags_private.h"
67 return g_flags.has_changed;
76 g_flags.flags.log_overflow =
true;
77 g_flags.has_changed =
true;
87 g_flags.flags.tx_drop =
true;
88 g_flags.has_changed =
true;
97 g_flags.flags.tx_error =
true;
98 g_flags.has_changed =
true;
118 #endif // FIRMWARE_SRC_FLAGS_H_
Definition: flags_private.h:37
The Host <-> Device communication transport.
static void Flags_SetTXDrop()
Set the TX Drop flag.
Definition: flags.h:86
static void Flags_SetLogOverflow()
Set the log overflow flag.
Definition: flags.h:75
bool(* TransportTXFunction)(uint8_t, Command, uint8_t, const IOVec *, unsigned int)
A function pointer to send a message to the host.
Definition: transport.h:57
void Flags_SendResponse(uint8_t token)
Send a flags message.
static bool Flags_HasChanged()
Check if the flags have changed since the last GET_FLAGS message.
Definition: flags.h:66
static void Flags_SetTXError()
Set the TX Error flag.
Definition: flags.h:96
void Flags_Initialize(TransportTXFunction tx_cb)
Initialize the Flags sub-system.