libdata-gcf  1.1.2
Data Fields
gcf_data_hdr Struct Reference

Header details for a data block. More...

Data Fields

char sysid [7]
 System ID.
 
char strid [7]
 Stream ID.
 
struct iso8601_date date
 Timestamp of packet (start time).
 
enum gcf_block_type_t type
 Type of packet.
 
enum gcf_digitiser_t digitiser
 Type of digitiser.
 
int ttl
 Tap table lookup index.
 
enum gcf_variable_gain_t variable_gain
 Variable gain value.
 
enum gcf_sample_format_t samp_fmt
 Sample format.
 
int32_t samp_rat
 Sample rate. More...
 
int samp_num
 Number of samples in the block.
 

Detailed Description

Header details for a data block.

This structure contains the generic header details from struct gcf_generic_hdr as well as the details used only for header blocks (sample rate, sample format and number of samples, as well as the tap table lookup field if present).

Field Documentation

◆ samp_rat

int32_t gcf_data_hdr::samp_rat

Sample rate.

The sample rate is 0 for status blocks (so you will not see that in a data header), positive for samples per second (e.g. a value of 100 would give a sample rate of 100Hz), and negative for seconds per sample (e.g. a value of -4 would give 0.25Hz).