Changeset 878 in ntrip for trunk/BNS/RTCM/clock_orbit_rtcm.h


Ignore:
Timestamp:
May 6, 2008, 4:47:42 PM (16 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNS/RTCM/clock_orbit_rtcm.h

    r862 r878  
    102102       int moremessagesfollow, char *buffer, size_t size);
    103103
    104 /* returns 0 if all ok and < 0 in case of an error, a value of 1 means
    105    multiple data flags was found and there probably is at least one more block
    106    for same epoch */
    107 /* buffer should point to a RTCM3 block. The functions does not check if the
    108    block is valid, but assumes it has already been checked.
    109    As a result either co or b are filled with data.
    110    NOTE: data is not overwritten, but appended. You get an error if the dataset
    111    do not match (i.e. mismatch in time).
    112 */
    113 int GetClockOrbitBias(struct ClockOrbit *co, struct Bias *b,
    114        const char *buffer, size_t size);
     104enum GCOB_RETURN {
     105  /* all well */
     106  GCOBR_MESSAGEFOLLOWS = 1,
     107  GCOBR_OK = 0,
     108  /* unknown data, a warning */
     109  GCOBR_UNKNOWNTYPE = -1,
     110  GCOBR_UNKNOWNDATA = -2,
     111  GCOBR_CRCMISMATCH = -3,
     112  /* failed to do the work */
     113  GCOBR_NOCLOCKORBITPARAMETER = -10,
     114  GCOBR_NOBIASPARAMETER = -11,
     115  /* data mismatch - data in storage does not match new data */
     116  GCOBR_TIMEMISMATCH = -20,
     117  GCOBR_DATAMISMATCH = -21,
     118  /* not enough data - can decode the block completely */
     119  GCOBR_SHORTBUFFER = -30,
     120  GCOBR_MISSINGBITS = -31,
     121  GCOBR_MESSAGEEXCEEDSBUFFER = -32
     122};
     123
     124/* NOTE: When an error message has been emitted, the output structures may have been modified. Make a copy of the previous variant before calling the
     125function to have a clean state. */
     126
     127/* buffer should point to a RTCM3 block */
     128enum GCOB_RETURN GetClockOrbitBias(struct ClockOrbit *co, struct Bias *b,
     129       const char *buffer, size_t size, int *bytesused);
    115130
    116131#endif /* RTCM3_CLOCK_ORBIT_RTCM_H */
Note: See TracChangeset for help on using the changeset viewer.