78 #define MBGUTIL_VERSION 0x0308 80 #define MBGUTIL_COMPAT_VERSION 0x0110 83 #if defined( MBG_TGT_WIN32 ) 86 #elif defined( MBG_TGT_LINUX ) 89 #elif defined( MBG_TGT_OS2 ) 92 #elif defined( MBG_TGT_DOS ) 94 #if !defined( MBG_USE_DOS_TSR ) 111 #if defined( _USE_PACK ) 112 #pragma pack( 1 ) // set byte alignment 113 #define _USING_BYTE_ALIGNMENT 124 #define _mbg_strncpy( _s, _src ) \ 125 mbg_strncpy( _s, sizeof( _s ), _src ) 603 #if defined( _USING_BYTE_ALIGNMENT ) 604 #pragma pack() // set default alignment 605 #undef _USING_BYTE_ALIGNMENT int mbg_str_tm_gps_date_time(char *s, int max_len, const TM_GPS *pt)
Write a full date and time string to a string buffer.
int mbg_str_pcps_date_short(char *s, int max_len, const PCPS_TIME *pt)
Write the short date given as PCPS_TIME structure to a string buffer.
int mbg_str_ucap(char *s, int max_len, const PCPS_HR_TIME *pt)
Write time capture / user capture time stamp to a string buffer.
Local date and time computed from GPS time.
int mbg_str_pcps_time_short(char *s, int max_len, const PCPS_TIME *pt)
Write the short time given as PCPS_TIME structure to a string buffer.
int mbg_str_date(char *s, int max_len, int mday, int month, int year)
Write a date string "dd.mm.yyyy" to a string buffer.
int mbg_str_pcps_hr_time(char *s, int max_len, uint32_t sec)
Write time derived from seconds-since-epoch to a string buffer.
int mbg_str_pcps_hr_date(char *s, int max_len, uint32_t sec)
Write date derived from seconds-since-epoch to a string buffer.
int mbg_strchar(char *s, size_t max_len, char c, size_t n)
Write a character multiple times to a string buffer.
int mbgutil_check_version(int header_version)
Check if the DLL/shared library is compatible with a given version.
int mbg_str_date_short(char *s, int max_len, int mday, int month)
Write a short date string "dd.mm." to a string buffer.
int mbg_str_pcps_hr_date_time_utc(char *s, int max_len, const PCPS_HR_TIME *pt)
Write UTC date and time given as PCPS_HR_TIME structure to a string buffer.
Geographic longitude or latitude in [degrees, minutes, seconds].
int mbg_snprintf(char *s, size_t max_len, const char *fmt,...)
A portable, safe implementation of snprintf()
int mbg_str_pcps_hr_time_frac(char *s, int max_len, uint32_t frac)
Print binary PCPS_FRAC_32 fractions in decimal to a string buffer.
int mbgutil_get_version(void)
Get the version number of the precompiled DLL/shared object library.
int mbg_str_pos(char *s, int max_len, const POS *ppos, int prec)
Write geographic coordinates to a string buffer.
int mbg_str_pos_alt(char *s, int max_len, double alt)
Write a position's altitude parameter to a string buffer.
int mbg_str_pcps_hr_date_time_loc(char *s, int max_len, const PCPS_HR_TIME *pt)
Write local date and time given as PCPS_HR_TIME structure to a string buffer.
int mbg_str_pcps_date(char *s, int max_len, const PCPS_TIME *pt)
Write the date given as PCPS_TIME structure to a string buffer.
int mbg_str_time_long(char *s, int max_len, int hour, int min, int sec, int sec100)
Write a long time string "hh:mm:ss.cc" to a string buffer.
A geographic position represented in different formats.
int mbg_str_pcps_hr_tstamp_loc(char *s, int max_len, const PCPS_HR_TIME *pt)
Write a high resolution local time stamp including fractions to a string buffer.
int mbg_str_pcps_hr_time_offs(char *s, int max_len, const PCPS_HR_TIME *pt, const char *info)
Print the UTC offset from a PCPS_HR_TIME structure to a string buffer.
int mbg_str_pcps_hr_time_raw(char *s, int max_len, const PCPS_HR_TIME *pt)
Write a raw high resolution time stamp plus converted local time to a string buffer.
High resolution time including status and local time offset.
int mbg_str_time_short(char *s, int max_len, int hour, int min)
Write a short time string "hh:mm" to a string buffer.
int mbg_str_pcps_time(char *s, int max_len, const PCPS_TIME *pt)
Write the time given as PCPS_TIME structure to a string buffer.
int mbg_str_pos_dms(char *s, int max_len, const DMS *pdms, int prec)
Write a geographic coordinate in degrees - minutes - seconds to a string buffer.
uint32_t PCI_ASIC_VERSION
A data type to hold the PCI ASIC version code.
Local calendar date and time, plus sync status.
A high resolution time stamp.
int mbg_str_dev_name(char *s, int max_len, const char *short_name, uint16_t fw_rev_num, PCI_ASIC_VERSION asic_ver_num)
Write device info to a string buffer.
int mbg_str_pcps_hr_tstamp_utc(char *s, int max_len, const PCPS_HR_TIME *pt)
Write a high resolution UTC time stamp including fractions to a string buffer.
int mbg_strncpy(char *s, size_t max_len, const char *src)
A portable, safe implementation of strncpy()
int mbg_str_pcps_tstamp_raw(char *s, int max_len, const PCPS_TIME_STAMP *pt)
Write a raw high resolution time stamp to a string buffer.
int mbg_str_pcps_time_long(char *s, int max_len, const PCPS_TIME *pt)
Write the time including sec100ths given as PCPS_TIME structure to a string buffer.
int mbg_str_time(char *s, int max_len, int hour, int min, int sec)
Write a time string "hh:mm:ss" to a string buffer.
int mbg_str_pcps_date_time(char *s, int max_len, const PCPS_TIME *pt, const char *tz_str)
Write date and time given as PCPS_TIME structure to a string buffer.