diff options
Diffstat (limited to 'H64E-2')
-rw-r--r-- | H64E-2/h64e-model.c | 9 | ||||
-rw-r--r-- | H64E-2/h64e.c | 9 | ||||
-rw-r--r-- | H64E-2/h64e.h | 43 |
3 files changed, 61 insertions, 0 deletions
diff --git a/H64E-2/h64e-model.c b/H64E-2/h64e-model.c new file mode 100644 index 0000000..bfdfca2 --- /dev/null +++ b/H64E-2/h64e-model.c @@ -0,0 +1,9 @@ +// +// h64e-model.c +// H64E-2 +// +// Created by dianshi on 3/13/20. +// Copyright © 2020 dianshi. All rights reserved. +// + +#include "h64e-model.h" diff --git a/H64E-2/h64e.c b/H64E-2/h64e.c new file mode 100644 index 0000000..a6ec1ef --- /dev/null +++ b/H64E-2/h64e.c @@ -0,0 +1,9 @@ +// +// h64e.c +// H64E-2 +// +// Created by dianshi on 3/13/20. +// Copyright © 2020 dianshi. All rights reserved. +// + +#include "h64e.h" diff --git a/H64E-2/h64e.h b/H64E-2/h64e.h new file mode 100644 index 0000000..bd5f13f --- /dev/null +++ b/H64E-2/h64e.h @@ -0,0 +1,43 @@ +// +// h64e.h +// H64E-2 +// +// Created by dianshi on 3/13/20. +// Copyright © 2020 dianshi. All rights reserved. +// + +#ifndef h64e_h +#define h64e_h + +#include <stdio.h> +#include "h64e-model.h" +/* + Set data structure from arguments and use to handle data + + */ +typedef struct H64E_format +{ + + int flag_offset; /* output offset */ + uint64_t offset_addr; /* offset postion */ + uint8_t column_size; /* size of column to operate with */ + int flag_no_group; /* dont output hex values */ + uint8_t group; /* if there is need transdorm to specific type */ + int flag_output; /* output convereted types */ + uint8_t output_type; /* output in many different ways */ +} H64E_format; + +typedef struct H64E_t +{ + H64E_format format; + H64E_stream_in sin; + H64E_stream_out sout; +} H64E_t; + +int h64e_init(H64E_t *s); +int h64e_set_input(H64E_t *s); +int h64e_set_output(H64E_t *s); +int h64e_destroy(H64E_t *s); + + +#endif /* h64e_h */ |