I was really hoping I could use enum's as follows
typedef enum {
GPS_FULL_COLD = "$PMTK104*37",
GPS_COLD = "$PMTK103*30",
GPS_WARM = "$PMTK102*31",
GPS_HOT = "$PMTK101*32"
} gps_start_mode;
so that I can have a function that type checks for a gps_start_mode and also has the value it needs. It seems however that c requires integral constants for enum values.
void configureStartMode(gps_start_mode mode) {
gpsWrite(mode);
}
I was wondering if their is some other enum-like type I can use in place of enum here.
Otherwise, it seems I'll need to have a separate array to hold the string values, which isn't a huge hassle but not ideal.