MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / toString

Function toString

Tactility/Source/hal/gps/GpsConfiguration.cpp:9–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7namespace tt::hal::gps {
8
9const char* toString(GpsModel model) {
10 using enum GpsModel;
11 switch (model) {
12 case AG3335:
13 return TT_STRINGIFY(AG3335);
14 case AG3352:
15 return TT_STRINGIFY(AG3352);
16 case ATGM336H:
17 return TT_STRINGIFY(ATGM336H);
18 case LS20031:
19 return TT_STRINGIFY(LS20031);
20 case MTK:
21 return TT_STRINGIFY(MTK);
22 case MTK_L76B:
23 return TT_STRINGIFY(MTK_L76B);
24 case MTK_PA1616S:
25 return TT_STRINGIFY(MTK_PA1616S);
26 case UBLOX6:
27 return TT_STRINGIFY(UBLOX6);
28 case UBLOX7:
29 return TT_STRINGIFY(UBLOX7);
30 case UBLOX8:
31 return TT_STRINGIFY(UBLOX8);
32 case UBLOX9:
33 return TT_STRINGIFY(UBLOX9);
34 case UBLOX10:
35 return TT_STRINGIFY(UBLOX10);
36 case UC6580:
37 return TT_STRINGIFY(UC6580);
38 default:
39 return TT_STRINGIFY(Unknown);
40 }
41}
42
43std::vector<std::string> getModels() {
44 std::vector<std::string> result;

Callers 1

getModelsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected