![]() |
Hamlib
4.3
|
Control Hamlib debugging functions. More...
#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/types.h>
#include <time.h>
#include <hamlib/rig.h>
#include <hamlib/rig_dll.h>
#include "misc.h"
Macros | |
#define | DUMP_HEX_WIDTH 16 |
Sets the number of hexadecimal pairs to print per line. | |
Functions | |
void | dump_hex (const unsigned char ptr[], size_t size) |
Do a hex dump of the unsigned char array. More... | |
void | rig_set_debug (enum rig_debug_level_e debug_level) |
Change the current debug level. More... | |
int | rig_need_debug (enum rig_debug_level_e debug_level) |
Test if a given debug level is active. More... | |
void | rig_set_debug_time_stamp (int flag) |
Enable or disable the time stamp on debugging output. More... | |
void | rig_debug (enum rig_debug_level_e debug_level, const char *fmt,...) |
Print debugging messages through stderr by default. More... | |
vprintf_cb_t | rig_set_debug_callback (vprintf_cb_t cb, rig_ptr_t arg) |
Set callback to handle debugging messages. More... | |
FILE * | rig_set_debug_file (FILE *stream) |
Change the output stream from stderr a different stream. More... | |
Control Hamlib debugging functions.