Source: hsio/ula_struct.pro
ULA_STRUCT
Will take a byte array of data (read by READ_LANFILE or other suitable
means) and load it into a pair of structures, firstly a header and then
the appropriate type for the body of the data.
Call:
val = ula_struct(data, hds, dds)
Return Value:
val int The return value (-1 = error, 0 = type not matched,
1 = rate block returned, 2 = MFSA block, 3 = PHA block,
4 = PTRK block, 5 = PSUM block, 6 = MFSS block)
Arguments:
data byte Input The data from which the structures are to be
extracted.
hds struct Output The structure containing the header. Will
always be of type "ula_rh".
dds struct Output The structure containing the data. Will be one
of "ula_rb", "ula_mfsa", "ula_phar",
"trk_ptrk", "pha_psum" or "mfs_mfss".
Keyword:
only string input Only bother to return structures if of
specified type, one or more types may
be given.
History:
Prototype: 22/1/91; SJT
Always convert header properly: 30/7/91; SJT
Add PTRK track record: 22/11/91; SJT
Add PSUM and MFSS records: 23/6/92; SJT