convert lists of constants in channel.h to enums instead of #defines