2016-12-18 22:43:53 +02:00
|
|
|
/* Copyright (C) 2016 Arti Zirk <arti.zirk@gmail.com>
|
|
|
|
*
|
|
|
|
* This file is part of I237 Door Access program.
|
|
|
|
*
|
|
|
|
* I237 Door Access is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* I237 Door Access is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with I237 Door Access. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
2016-09-26 17:33:21 +03:00
|
|
|
#ifndef _HMI_MSG_H_
|
|
|
|
#define _HMI_MSG_H_
|
|
|
|
|
2016-12-18 23:05:43 +02:00
|
|
|
|
2016-11-20 00:51:04 +02:00
|
|
|
#define PROG_VERSION "Version: %S built on: %S %S"
|
2016-12-01 16:19:28 +02:00
|
|
|
#define LIBC_VERSION "avr-libc version: %S avr-gcc version: %S"
|
2016-10-23 22:11:20 +03:00
|
|
|
#define STUD_NAME "Arti Zirk"
|
|
|
|
#define GET_MONTH_MSG "Enter Month name first letter >"
|
2016-11-07 02:30:33 +02:00
|
|
|
#define UPTIME_MSG "Uptime: %lu s"
|
2016-09-26 17:33:21 +03:00
|
|
|
|
2016-12-18 23:05:43 +02:00
|
|
|
#define CLI_HELP_MSG "Implemented commands:"
|
|
|
|
#define CLI_NO_CMD "Command not implemented.\n Use <help> to get help."
|
|
|
|
#define CLI_ARGS_MSG "To few or to many arguments for this command\nUse <help>"
|
|
|
|
|
2016-12-01 16:19:28 +02:00
|
|
|
#define HELP_CMD "help"
|
|
|
|
#define HELP_HELP "Get help"
|
2016-12-18 23:05:43 +02:00
|
|
|
|
2016-12-01 16:19:28 +02:00
|
|
|
#define VER_CMD "version"
|
|
|
|
#define VER_HELP "Print FW version"
|
2016-12-18 22:19:53 +02:00
|
|
|
|
2016-12-01 16:19:28 +02:00
|
|
|
#define ASCII_CMD "ascii"
|
|
|
|
#define ASCII_HELP "print ASCII tables"
|
2016-12-18 22:19:53 +02:00
|
|
|
|
2016-12-01 16:19:28 +02:00
|
|
|
#define MONTH_CMD "month"
|
|
|
|
#define MONTH_HELP "Find matching month from lookup list. Usage: month <string>"
|
2016-12-18 22:19:53 +02:00
|
|
|
|
2016-12-18 15:31:17 +02:00
|
|
|
#define READ_CMD "read"
|
2016-12-18 18:27:20 +02:00
|
|
|
#define READ_HELP "Read and print out card info that is currently in proximity of the reader"
|
2016-12-18 22:19:53 +02:00
|
|
|
|
2016-12-18 18:27:20 +02:00
|
|
|
#define ADD_CMD "add"
|
2016-12-18 21:34:59 +02:00
|
|
|
#define ADD_HELP "Add a new card to the system. Usage: add <username>"
|
2016-12-18 22:19:53 +02:00
|
|
|
|
2016-12-18 18:27:20 +02:00
|
|
|
#define REMOVE_CMD "remove"
|
2016-12-18 21:34:59 +02:00
|
|
|
#define REMOVE_HELP "Remove a card from the system. Usage: remove <username>"
|
2016-12-18 22:19:53 +02:00
|
|
|
|
2016-12-18 18:27:20 +02:00
|
|
|
#define LIST_CMD "list"
|
|
|
|
#define LIST_HELP "List all added cards"
|
2016-12-18 15:31:17 +02:00
|
|
|
|
2016-12-18 22:19:53 +02:00
|
|
|
#define ACCESS_DENIED_MSG "Access denied!"
|
|
|
|
#define NOT_ADDING_CARD_MSG1 "Found card \""
|
|
|
|
#define NOT_ADDING_CARD_MSG2 "\", not adding it again."
|
|
|
|
#define OUT_OF_MEMORY_MSG "Out of memory. Please remove cards."
|
|
|
|
#define NO_CARDS_ADDED_MSG "No cards added"
|
|
|
|
#define CARD_NOT_FOUND_MSG "Card not found"
|
|
|
|
#define LINKED_LIST_ERROR_MSG "Invalid situation when removing card"
|
|
|
|
#define UNABLE_TO_DETECT_CARD_MSG "Unable to detect card."
|
|
|
|
#define CARD_SELECTED_MSG "Card selected!"
|
|
|
|
#define UID_SIZE_MSG "UID size: 0x%02X"
|
|
|
|
#define UID_SAK_MSG "UID sak: 0x%02X"
|
2016-12-18 22:21:34 +02:00
|
|
|
#define CARD_UID_MSG "Card UID: "
|
|
|
|
#define CARD_NOT_SELECTED "Unable to select card.\n"
|
2016-12-01 16:19:28 +02:00
|
|
|
|
2016-12-18 23:05:43 +02:00
|
|
|
|
2016-12-01 14:40:57 +02:00
|
|
|
extern PGM_P const months[];
|
|
|
|
|
2016-12-01 16:19:28 +02:00
|
|
|
extern const char help_cmd[];
|
|
|
|
extern const char help_help[];
|
|
|
|
extern const char ver_cmd[];
|
|
|
|
extern const char ver_help[];
|
|
|
|
extern const char ascii_cmd[];
|
|
|
|
extern const char ascii_help[];
|
|
|
|
extern const char month_cmd[];
|
|
|
|
extern const char month_help[];
|
2016-12-18 15:31:17 +02:00
|
|
|
extern const char read_cmd[];
|
|
|
|
extern const char read_help[];
|
2016-12-18 18:27:20 +02:00
|
|
|
extern const char add_cmd[];
|
|
|
|
extern const char add_help[];
|
|
|
|
extern const char remove_cmd[];
|
|
|
|
extern const char remove_help[];
|
|
|
|
extern const char list_cmd[];
|
|
|
|
extern const char list_help[];
|
2016-12-18 22:21:34 +02:00
|
|
|
extern const char access_denied_msg[];
|
2016-12-01 16:19:28 +02:00
|
|
|
|
2016-12-18 23:05:43 +02:00
|
|
|
|
2016-09-26 17:33:21 +03:00
|
|
|
#endif /* _HMI_MSG_H_ */
|