/* * @file tooth_logger.h * * @date Jul 7, 2019 * @author Matthew Kennedy */ #pragma once #include #include #include "rusefi_enums.h" // Enable the tooth logger - this clears the buffer starts logging void EnableToothLogger(); // Stop logging - leave buffer intact void DisableToothLogger(); // A new tooth has arrived! Log to the buffer if enabled. void LogTriggerTooth(trigger_event_e tooth); struct ToothLoggerBuffer { const uint8_t* const Buffer; const size_t Length; }; // Get a reference to the buffer ToothLoggerBuffer GetToothLoggerBuffer();