KM3NeT CLB  2.0
KM3NeT CLB v2 Embedded Software
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
show.c
1 /*
2  * KM3NeT CLB v2 Firmware
3  * ----------------------
4  *
5  * Copyright 2013 National Institute for Subatomic Physics Nikhef
6  *
7  * All Rights Reserved.
8  *
9  *
10  * File : show.c
11  * Created : 17 jul. 2013
12  * Author : Vincent van Beveren
13  */
14 
15 #include <stdio.h>
16 
17 #include "dbg/show.h"
18 
19 void showHex8(const char * const title, uint8_t * data, int len)
20 {
21  int i;
22  printf("Hex dump: %s", title);
23  for (i = 0; i < len; ++i, ++data) {
24  if ((i % 16) == 0) printf("\n %04x", i);
25  printf(" %02x", *data);
26  }
27  puts("\n");
28 }