Line data Source code
1 : /* Automatically generated nanopb constant definitions */ 2 : /* Generated by nanopb-0.4.8-dev */ 3 : 4 : #include "enum.pb.h" 5 : #if PB_PROTO_HEADER_VERSION != 40 6 : #error Regenerate this file with the current version of nanopb generator. 7 : #endif 8 : 9 3 : const char *MyEnum_name(MyEnum v) { 10 3 : switch (v) { 11 1 : case MyEnum_VALUE1: return "VALUE1"; 12 1 : case MyEnum_VALUE2: return "VALUE2"; 13 1 : case MyEnum_VALUE15: return "VALUE15"; 14 : } 15 0 : return "unknown"; 16 : } 17 : 18 2 : const char *MyShortNameEnum_name(MyShortNameEnum v) { 19 2 : switch (v) { 20 1 : case MSNE_VALUE256: return "MSNE_VALUE256"; 21 : } 22 1 : return "unknown"; 23 : } 24 : 25 :