mbgtools-lx  4.2.8
mbgtcrcal.c File Reference
#include <irig_cal.h>
#include <toolutil.h>
#include <str_util.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>

Go to the source code of this file.

Macros

#define MBG_FIRST_COPYRIGHT_YEAR   2012
 
#define MBG_LAST_COPYRIGHT_YEAR   0
 

Functions

static char * str_comp_data (char *s, int max_len, int comp_data)
 
static void print_cal_recs (int num_rec, int curr_group_idx, CAL_REC_IRIG_RX_COMP cal_rec_comp[])
 
static int do_mbgtcrcal (MBG_DEV_HANDLE dh, const PCPS_DEV *p_dev)
 
static void usage (void)
 
int main (int argc, char *argv[])
 

Variables

static const char * pname = "mbgtcrcal"
 
static int verbose
 
static const char * icode_rx_names [N_ICODE_RX] = DEFAULT_ICODE_RX_NAMES
 
static const char * irig_comp_names [N_IRIG_RX_COMP] = DEFAULT_IRIG_RX_COMP_NAMES
 
static double cal_val
 
static int must_set_cal_val
 
static size_t max_label_len
 

Macro Definition Documentation

◆ MBG_FIRST_COPYRIGHT_YEAR

#define MBG_FIRST_COPYRIGHT_YEAR   2012

Definition at line 54 of file mbgtcrcal.c.

Referenced by main().

◆ MBG_LAST_COPYRIGHT_YEAR

#define MBG_LAST_COPYRIGHT_YEAR   0

Definition at line 55 of file mbgtcrcal.c.

Referenced by main().

Function Documentation

◆ do_mbgtcrcal()

◆ main()

◆ print_cal_recs()

static void print_cal_recs ( int  num_rec,
int  curr_group_idx,
CAL_REC_IRIG_RX_COMP  cal_rec_comp[] 
)
static

◆ str_comp_data()

static char* str_comp_data ( char *  s,
int  max_len,
int  comp_data 
)
static

Definition at line 72 of file mbgtcrcal.c.

References snprintf_safe().

Referenced by do_mbgtcrcal(), print_cal_recs(), and usage().

◆ usage()

static void usage ( void  )
static

Variable Documentation

◆ cal_val

double cal_val
static

Definition at line 65 of file mbgtcrcal.c.

Referenced by do_mbgtcrcal(), and main().

◆ icode_rx_names

const char* icode_rx_names[N_ICODE_RX] = DEFAULT_ICODE_RX_NAMES
static

Definition at line 62 of file mbgtcrcal.c.

Referenced by do_mbgtcrcal().

◆ irig_comp_names

const char* irig_comp_names[N_IRIG_RX_COMP] = DEFAULT_IRIG_RX_COMP_NAMES
static

Definition at line 63 of file mbgtcrcal.c.

Referenced by do_mbgtcrcal(), and print_cal_recs().

◆ max_label_len

size_t max_label_len
static

Definition at line 67 of file mbgtcrcal.c.

Referenced by do_mbgtcrcal(), and print_cal_recs().

◆ must_set_cal_val

int must_set_cal_val
static

Definition at line 66 of file mbgtcrcal.c.

Referenced by do_mbgtcrcal(), and main().

◆ pname

const char* pname = "mbgtcrcal"
static

Definition at line 58 of file mbgtcrcal.c.

Referenced by main(), and usage().

◆ verbose

int verbose
static

Definition at line 60 of file mbgtcrcal.c.

Referenced by main(), and print_cal_recs().