mbgtools-lx
4.2.8
|
#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 |
#define MBG_FIRST_COPYRIGHT_YEAR 2012 |
Definition at line 54 of file mbgtcrcal.c.
Referenced by main().
#define MBG_LAST_COPYRIGHT_YEAR 0 |
Definition at line 55 of file mbgtcrcal.c.
Referenced by main().
|
static |
Definition at line 114 of file mbgtcrcal.c.
References _pcps_has_generic_io, _pcps_is_irig_rx, IRIG_RX_COMP::c, CAL_REC_TYPE_IRIG_RX_COMP, cal_val, CAL_REC_IRIG_RX_COMP::comp_data, CAL_REC_IRIG_RX_COMP::hdr, IRIG_SETTINGS::icode, icode_rx_names, irig_comp_names, irig_rx_info, max_label_len, mbg_close_device(), mbg_get_cal_rec_irig_rx_comp(), mbg_get_cal_rec_irig_rx_num_rec(), mbg_get_irig_rx_info(), mbg_icode_rx_to_group_idx(), mbg_rc_is_error, mbg_rc_is_success, mbg_set_cal_rec_irig_rx_comp(), MBG_SUCCESS, must_set_cal_val, N_ICODE_RX, N_IRIG_RX_COMP, print_cal_recs(), IRIG_INFO::settings, str_comp_data(), and CAL_REC_HDR::type.
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 327 of file mbgtcrcal.c.
References cal_val, do_mbgtcrcal(), MBG_EXIT_CODE_FAIL, MBG_EXIT_CODE_SUCCESS, MBG_EXIT_CODE_USAGE, MBG_FIRST_COPYRIGHT_YEAR, mbg_handle_devices(), MBG_LAST_COPYRIGHT_YEAR, mbg_print_program_info(), mbg_rc_is_success, must_print_usage, must_set_cal_val, pname, ROOT_PRIVILEGES_STR, usage(), and verbose.
|
static |
Definition at line 85 of file mbgtcrcal.c.
References IRIG_RX_COMP::c, CAL_REC_IRIG_RX_COMP::comp_data, irig_comp_names, max_label_len, N_IRIG_RX_COMP_VAL, str_comp_data(), and verbose.
Referenced by do_mbgtcrcal().
|
static |
Definition at line 72 of file mbgtcrcal.c.
References snprintf_safe().
Referenced by do_mbgtcrcal(), print_cal_recs(), and usage().
|
static |
Definition at line 296 of file mbgtcrcal.c.
References IRIG_RX_COMP_MAX, mbg_print_device_options(), mbg_print_help_options(), mbg_print_opt_info(), mbg_print_usage_intro(), pname, and str_comp_data().
Referenced by main().
|
static |
Definition at line 65 of file mbgtcrcal.c.
Referenced by do_mbgtcrcal(), and main().
|
static |
Definition at line 62 of file mbgtcrcal.c.
Referenced by do_mbgtcrcal().
|
static |
Definition at line 63 of file mbgtcrcal.c.
Referenced by do_mbgtcrcal(), and print_cal_recs().
|
static |
Definition at line 67 of file mbgtcrcal.c.
Referenced by do_mbgtcrcal(), and print_cal_recs().
|
static |
Definition at line 66 of file mbgtcrcal.c.
Referenced by do_mbgtcrcal(), and main().
|
static |
Definition at line 58 of file mbgtcrcal.c.
|
static |
Definition at line 60 of file mbgtcrcal.c.
Referenced by main(), and print_cal_recs().