Just set up an array containing the enum values, like this: static const eSerialBauds bauds_by_index [] = { eBaud110, eBaud300, eBaud600, ...
確定! 回上一頁