I237 Riistvaralähedane programmerimine 2016
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.5KB

  1. /* Copyright (C) 2016 Arti Zirk <arti.zirk@gmail.com>
  2. *
  3. * This file is part of I237 Door Access program.
  4. *
  5. * I237 Door Access is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation, either version 3 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * I237 Door Access is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with I237 Door Access. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. #ifndef _CLI_MICRORL_H_
  19. #define _CLI_MICRORL_H_
  20. #define NUM_ELEMS(x) (sizeof(x) / sizeof((x)[0]))
  21. #define UART_STATUS_MASK 0x00FF
  22. void cli_print(const char * str);
  23. char cli_get_char(void);
  24. void cli_print_help(const char *const *argv);
  25. void print_version(FILE *stream);
  26. void cli_print_ver(const char *const *argv);
  27. void cli_print_ascii_tbls(const char *const *argv);
  28. void cli_handle_month(const char *const *argv);
  29. void cli_rfid_read(const char *const *argv);
  30. void cli_rfid_add(const char *const *argv);
  31. void cli_rfid_remove(const char *const *argv);
  32. void cli_rfid_list(const char *const *argv);
  33. void cli_print_cmd_error(void);
  34. void cli_print_cmd_arg_error(void);
  35. int cli_execute(int argc, const char *const *argv);
  36. #endif /* _CLI_MICRORL_H_ */