X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=test_src%2Fcli.h;h=70c421072ab1018c8e52fc225adf12f59c218747;hb=7edc452f9303d020656a094a465a3f45cacf8587;hp=422d97acb2f8fae2bc5e643196131d57d3ad3824;hpb=55961d766375e8415baf7bc1e74fe9ba087e18ad;p=avr-crypto-lib.git diff --git a/test_src/cli.h b/test_src/cli.h index 422d97a..70c4210 100644 --- a/test_src/cli.h +++ b/test_src/cli.h @@ -16,6 +16,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ + #ifndef CLI_H_ #define CLI_H_ @@ -56,13 +57,15 @@ extern uint8_t cli_echo; void cli_putc(char c); uint16_t cli_getc(void); uint16_t cli_getc_cecho(void); -uint8_t cli_getsn(char* s, uint16_t n); +uint8_t cli_getsn(char* s, size_t n); +uint8_t cli_getsn_cecho(char* s, uint16_t n); void cli_putstr(const char* s); void cli_putstr_P(PGM_P s); -void cli_hexdump(const void* data, uint16_t length); -void cli_hexdump_rev(const void* data, uint16_t length); -void cli_hexdump2(const void* data, uint16_t length); -void cli_hexdump_block(const void* data, uint16_t length, uint8_t indent, uint8_t width); +void cli_hexdump_byte(uint8_t byte); +void cli_hexdump(const void* data, size_t length); +void cli_hexdump_rev(const void* data, size_t length); +void cli_hexdump2(const void* data, size_t length); +void cli_hexdump_block(const void* data, size_t length, uint8_t indent, uint8_t width); void echo_ctrl(char* s); int8_t cmd_interface(PGM_VOID_P cmd_desc);