/* list of xbee at commands */
struct xbee_atcmd {
- prog_char *name;
- prog_char *desc;
+ PGM_P name;
+ PGM_P desc;
unsigned int flags;
- prog_char *help;
+ PGM_P help;
};
-struct xbee_atcmd_pgm {
- prog_char *name;
- prog_char *desc;
- unsigned int flags;
- prog_char *help;
-} PROGMEM;
-
-extern struct xbee_atcmd_pgm xbee_atcmd_list[];
+extern const struct xbee_atcmd PROGMEM xbee_atcmd_list[];
-struct xbee_atcmd_pgm *xbee_atcmd_lookup_name(const char *atcmd_str);
-struct xbee_atcmd_pgm *xbee_atcmd_lookup_desc(const char *desc);
+const struct xbee_atcmd *xbee_atcmd_lookup_name(const char *atcmd_str);
+const struct xbee_atcmd *xbee_atcmd_lookup_desc(const char *desc);
#endif /* _xBEE_ATCMD_H_ */