2021-04-04 21:04:12 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <cstdint>
|
2022-10-02 15:29:17 +01:00
|
|
|
#include <string>
|
2021-04-04 21:04:12 +01:00
|
|
|
|
2022-10-02 15:29:17 +01:00
|
|
|
#include "src/DebugToolDrivers/Microchip/EdbgDevice.hpp"
|
2021-04-04 21:04:12 +01:00
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
namespace DebugToolDrivers
|
2021-04-04 21:04:12 +01:00
|
|
|
{
|
|
|
|
|
/**
|
2022-10-02 15:29:17 +01:00
|
|
|
* The Power Debugger device is very similar to the Atmel-ICE. It is an EDBG device.
|
2021-04-04 21:04:12 +01:00
|
|
|
*
|
2022-10-02 15:29:17 +01:00
|
|
|
* USB:
|
2021-04-04 21:04:12 +01:00
|
|
|
* Vendor ID: 0x03eb (1003)
|
|
|
|
|
* Product ID: 0x2141 (8513)
|
|
|
|
|
*/
|
2022-10-02 15:29:17 +01:00
|
|
|
class PowerDebugger: public EdbgDevice
|
2021-04-04 21:04:12 +01:00
|
|
|
{
|
|
|
|
|
public:
|
2022-10-02 15:29:17 +01:00
|
|
|
static const inline std::uint16_t USB_VENDOR_ID = 0x03eb;
|
|
|
|
|
static const inline std::uint16_t USB_PRODUCT_ID = 0x2141;
|
|
|
|
|
static const inline std::uint8_t USB_CONFIGURATION_INDEX = 0;
|
|
|
|
|
static const inline std::uint8_t CMSIS_HID_INTERFACE_NUMBER = 0;
|
2021-04-04 21:04:12 +01:00
|
|
|
|
2022-10-01 16:50:57 +01:00
|
|
|
PowerDebugger();
|
2021-04-04 21:04:12 +01:00
|
|
|
|
|
|
|
|
std::string getName() override {
|
|
|
|
|
return "Power Debugger";
|
2022-10-01 16:50:57 +01:00
|
|
|
}
|
2021-04-04 21:04:12 +01:00
|
|
|
};
|
|
|
|
|
}
|