SatDump 2.0.0-alpha-520736c72
Loading...
Searching...
No Matches
ccsds_time.h File Reference

Time header parsing. More...

#include "ccsds.h"
#include <ctime>

Go to the source code of this file.

Functions

time_t ccsds::parseCCSDSTime (CCSDSPacket &pkt, int offset=0, int ms_scale=1000)
 Parse timestamp with 1 second accuracy TODOREWORK maybe phase this out?
double ccsds::parseCCSDSTimeFull (CCSDSPacket &pkt, int offset, int ms_scale=1000, int ns_of_ms_scale=1000000)
 Parse timestamp with full accuracy.
double ccsds::parseCCSDSTimeFullRaw (uint8_t *data, int offset, int ms_scale=1000, int ns_of_ms_scale=1000000)
 Parse timestamp with full accuracy, from a raw buffer.
double ccsds::parseCCSDSTimeFullRawUnsegmented (uint8_t *data, int offset, double ms_scale)
 Parse Coarse timestamp. Used by some EOS instruments on Aqua, from a raw buffer.

Detailed Description

Time header parsing.

Function Documentation

◆ parseCCSDSTime()

time_t ccsds::parseCCSDSTime ( CCSDSPacket & pkt,
int offset = 0,
int ms_scale = 1000 )

Parse timestamp with 1 second accuracy TODOREWORK maybe phase this out?

Parameters
pktthe packet
offsettime offset in seconds
ms_scalemillisecond scale
Returns
time in seconds

◆ parseCCSDSTimeFull()

double ccsds::parseCCSDSTimeFull ( CCSDSPacket & pkt,
int offset,
int ms_scale = 1000,
int ns_of_ms_scale = 1000000 )

Parse timestamp with full accuracy.

Parameters
pktthe packet
offsettime offset in seconds
ms_scalemillisecond scale
ns_of_ms_scalems of ms scale
Returns
time in seconds

◆ parseCCSDSTimeFullRaw()

double ccsds::parseCCSDSTimeFullRaw ( uint8_t * data,
int offset,
int ms_scale = 1000,
int ns_of_ms_scale = 1000000 )

Parse timestamp with full accuracy, from a raw buffer.

Parameters
datapointer to parse from
offsettime offset in seconds
ms_scalemillisecond scale
ns_of_ms_scalems of ms scale
Returns
time in seconds

◆ parseCCSDSTimeFullRawUnsegmented()

double ccsds::parseCCSDSTimeFullRawUnsegmented ( uint8_t * data,
int offset,
double ms_scale )

Parse Coarse timestamp. Used by some EOS instruments on Aqua, from a raw buffer.

Parameters
datapointer to parse from
offsettime offset in seconds
ms_scalemillisecond scale
Returns
time in seconds