mbgtools-lx
4.2.8
|
Go to the source code of this file.
Macros | |
#define | _ext extern |
Functions | |
static __mbg_inline int | mbg_icode_rx_to_group_idx (int icode_rx) |
Get the IRIG calibration group index for a given IRIG RX code. More... | |
static __mbg_inline int | mbg_get_gen_io_info (MBG_DEV_HANDLE dh, GEN_IO_INFO_TYPE type, GEN_IO_INFO *p) |
Get generic I/O support info for a certain data type. More... | |
static __mbg_inline int | mbg_get_cal_rec_irig_rx_num_rec (MBG_DEV_HANDLE dh, int *p_num_rec) |
Get supported number of IRIG RX calibration records. More... | |
static __mbg_inline int | mbg_get_cal_rec_irig_rx_comp (MBG_DEV_HANDLE dh, uint16_t idx, CAL_REC_IRIG_RX_COMP *p) |
Retrieve IRIG RX calibration record with specific index. More... | |
static __mbg_inline int | mbg_set_cal_rec_irig_rx_comp (MBG_DEV_HANDLE dh, const CAL_REC_IRIG_RX_COMP *p) |
Write an IRIG RX calibration record to a device. More... | |
#define _ext extern |
Definition at line 38 of file irig_cal.h.
|
static |
Retrieve IRIG RX calibration record with specific index.
dh | Valid handle to a Meinberg device |
idx | index of the calibration record to be retrieved |
*p | Pointer to a CAL_REC_IRIG_RX_COMP variable to be filled up |
Definition at line 175 of file irig_cal.h.
References _mbg_swab_cal_rec_hdr, _mbg_swab_cal_rec_irig_rx_comp, CAL_REC_TYPE_IRIG_RX_COMP, CAL_REC_HDR::idx, mbg_generic_io(), MBG_SUCCESS, PCPS_GEN_IO_CAL_REC_IRIG_RX_COMP, and CAL_REC_HDR::type.
Referenced by do_mbgtcrcal().
|
static |
Get supported number of IRIG RX calibration records.
dh | Valid handle to a Meinberg device |
p_num_rec | Pointer to an int to be filled up |
Definition at line 144 of file irig_cal.h.
References _mbg_swab_gen_io_info, mbg_get_gen_io_info(), MBG_SUCCESS, GEN_IO_INFO::num, PCPS_GEN_IO_CAL_REC_IRIG_RX_COMP, and GEN_IO_INFO::type.
Referenced by do_mbgtcrcal().
|
static |
Get generic I/O support info for a certain data type.
dh | Valid handle to a Meinberg device |
type | One of the enumerated generic I/O data types |
*p | Pointer to a GEN_IO_INFO variable to be filled up |
Definition at line 114 of file irig_cal.h.
References _mbg_swab_gen_io_info, _mbg_swab_gen_io_info_type, mbg_generic_io(), MBG_SUCCESS, and PCPS_GEN_IO_GET_INFO.
Referenced by mbg_get_cal_rec_irig_rx_num_rec().
|
static |
Get the IRIG calibration group index for a given IRIG RX code.
There are calibration data records available for different groups of IRIG RX codes with similar characteristics, e.g. DCLS or modulated, etc. This function tries to determine the group index for a given IRIG RX code.
icode_rx | A given IRIG RX code index |
Definition at line 62 of file irig_cal.h.
References IRIG_RX_COMP_A0, IRIG_RX_COMP_A1, IRIG_RX_COMP_B0, IRIG_RX_COMP_B1, IRIG_RX_COMP_G0, IRIG_RX_COMP_G1, MSK_ICODE_RX_10000BPS, MSK_ICODE_RX_1000BPS, MSK_ICODE_RX_100BPS, MSK_ICODE_RX_100KHZ, MSK_ICODE_RX_10KHZ, MSK_ICODE_RX_1KHZ, and MSK_ICODE_RX_DC.
Referenced by do_mbgtcrcal().
|
static |
Write an IRIG RX calibration record to a device.
dh | Valid handle to a Meinberg device |
*p | Pointer to a CAL_REC_IRIG_RX_COMP variable to be written |
Definition at line 210 of file irig_cal.h.
References _mbg_swab_cal_rec_irig_rx_comp, mbg_generic_io(), and PCPS_GEN_IO_CAL_REC_IRIG_RX_COMP.
Referenced by do_mbgtcrcal().