2021-06-26 04:30:01 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
2022-06-04 15:20:37 +01:00
|
|
|
#include <cstdint>
|
2022-08-04 21:07:16 +01:00
|
|
|
#include <map>
|
|
|
|
|
#include <string>
|
2022-06-04 15:20:37 +01:00
|
|
|
|
2024-02-15 21:24:41 +00:00
|
|
|
namespace Targets
|
2021-06-26 04:30:01 +01:00
|
|
|
{
|
2024-02-15 21:24:41 +00:00
|
|
|
enum class TargetPhysicalInterface: std::uint8_t
|
2021-06-26 04:30:01 +01:00
|
|
|
{
|
2022-08-04 21:06:13 +01:00
|
|
|
ISP,
|
2021-06-26 04:30:01 +01:00
|
|
|
JTAG,
|
|
|
|
|
DEBUG_WIRE,
|
|
|
|
|
PDI,
|
|
|
|
|
UPDI,
|
2024-10-03 22:55:40 +01:00
|
|
|
SDI,
|
2021-06-26 04:30:01 +01:00
|
|
|
};
|
2022-08-04 21:07:16 +01:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Returns a mapping of physical interfaces to their marketing name.
|
|
|
|
|
*
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
2024-02-15 21:24:41 +00:00
|
|
|
std::map<TargetPhysicalInterface, std::string> getPhysicalInterfaceNames();
|
2021-06-26 04:30:01 +01:00
|
|
|
}
|