kopia lustrzana https://github.com/Hamlib/Hamlib
void dump_hex(unsigned char *ptr, int size, int width);
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@65 7ae35d74-ebe9-4afe-98af-79ac388436b8Hamlib-1.0.1
rodzic
d63d4ec9df
commit
4e70b6f663
|
@ -5,7 +5,7 @@
|
|||
* Provides useful routines for read/write serial data for communicating
|
||||
* via serial interface .
|
||||
*
|
||||
* $Id: serial.c,v 1.6 2000-07-30 05:08:24 javabear Exp $
|
||||
* $Id: serial.c,v 1.7 2000-08-04 02:49:39 javabear Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -19,7 +19,6 @@
|
|||
#include <sys/ioctl.h>
|
||||
#include "serial.h"
|
||||
|
||||
static void dump_hex(unsigned char *ptr, int size, int width);
|
||||
|
||||
/*
|
||||
* Open serial port
|
||||
|
@ -210,7 +209,7 @@ int read_sleep(int fd, unsigned char *rxbuffer, int num ) {
|
|||
* Do a hex dump of the unsigned char array.
|
||||
*/
|
||||
|
||||
static void dump_hex(unsigned char *ptr, int size, int width) {
|
||||
void dump_hex(unsigned char *ptr, int size, int width) {
|
||||
int i =0;
|
||||
|
||||
printf("\n");
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* Provides useful routines for read/write serial data for communicating
|
||||
* via serial interface .
|
||||
*
|
||||
* $Id: serial.h,v 1.3 2000-07-30 04:35:56 javabear Exp $
|
||||
* $Id: serial.h,v 1.4 2000-08-04 02:48:44 javabear Exp $
|
||||
*/
|
||||
|
||||
|
||||
|
@ -43,3 +43,9 @@ char calc_packed_from_char(unsigned char dec );
|
|||
*/
|
||||
|
||||
char calc_char_from_packed(unsigned char pkd );
|
||||
|
||||
/*
|
||||
* Do a hex dump of the unsigned char array.
|
||||
*/
|
||||
|
||||
void dump_hex(unsigned char *ptr, int size, int width);
|
||||
|
|
Ładowanie…
Reference in New Issue