diff --git a/src/DebugToolDrivers/Protocols/CMSIS-DAP/VendorSpecific/EDBG/AVR/CommandFrames/HouseKeeping/Parameters.hpp b/src/DebugToolDrivers/Protocols/CMSIS-DAP/VendorSpecific/EDBG/AVR/CommandFrames/HouseKeeping/Parameters.hpp new file mode 100644 index 00000000..a9472917 --- /dev/null +++ b/src/DebugToolDrivers/Protocols/CMSIS-DAP/VendorSpecific/EDBG/AVR/CommandFrames/HouseKeeping/Parameters.hpp @@ -0,0 +1,31 @@ +#pragma once + +#include + +#include "HouseKeepingCommandFrame.hpp" + +namespace Bloom::DebugToolDrivers::Protocols::CmsisDap::Edbg::Avr::CommandFrames::HouseKeeping +{ + enum class ParameterContext : unsigned char + { + CONFIG = 0x00, + ANALOG = 0x01, + USB = 0x03, + }; + + struct Parameter + { + ParameterContext context; + unsigned char id = 0x00; + std::uint8_t size = 0x00; + + constexpr Parameter(ParameterContext context, unsigned char id, std::uint8_t size) + : context(context), id(id), size(size) {}; + }; + + struct Parameters + { + static constexpr Parameter USB_MAX_READ{ParameterContext::USB, 0x00, 2}; + static constexpr Parameter USB_MAX_WRITE{ParameterContext::USB, 0x01, 2}; + }; +}