]> git.cryptolib.org Git - arm-crypto-lib.git/blobdiff - test_src/cli.h
switching to dedicated endian switching function
[arm-crypto-lib.git] / test_src / cli.h
index 5ab9799b7854b22430f22df60f5529f04c326bb7..26c725b76ebe50a80239f72010be91fb6a8106e7 100644 (file)
@@ -1,6 +1,6 @@
 /* cli.h */
 /*
-    This file is part of the AVR-Crypto-Lib.
+    This file is part of the ARM-Crypto-Lib.
     Copyright (C) 2008  Daniel Otte (daniel.otte@rub.de)
 
     This program is free software: you can redistribute it and/or modify
@@ -42,10 +42,10 @@ typedef struct {
 #define CLI_OPTION_MANP 0x02
 
 typedef struct {
-       const char*  cmd_name;      /* string containing the function name */
-       const char*  cmd_param_str; /* param descriptor string */
+       const char*        cmd_name;      /* string containing the function name */
+       const char*        cmd_param_str; /* param descriptor string */
        void_fpt     cmd_function;  /* function pointer */
-       cmdoption_t* options;
+       const cmdoption_t* options;
 } cmdlist_entry_t;
 
 extern cli_rx_fpt cli_rx;
@@ -62,6 +62,7 @@ void cli_hexdump(const void* data, uint32_t length);
 void cli_hexdump_rev(const void* data, uint32_t length);
 void cli_hexdump2(const void* data, uint32_t length);
 void cli_hexdump_block(const void* data, uint32_t length, uint8_t indent, uint8_t width);
+void cli_hexdump_byte(uint8_t byte);
 
 void echo_ctrl(char* s);
 int8_t cmd_interface(const cmdlist_entry_t* cmd_desc);