MIP SDK  0.0.1
MicroStrain Communications Library for embedded systems
Classes | Functions
(0x01,0x72) Gps Time Update [CPP]
Collaboration diagram for (0x01,0x72) Gps Time Update [CPP]:

Classes

struct  mip::commands_base::GpsTimeUpdate
 

Functions

void mip::commands_base::insert (Serializer &serializer, const GpsTimeUpdate &self)
 
void mip::commands_base::extract (Serializer &serializer, GpsTimeUpdate &self)
 
CmdResult mip::commands_base::writeGpsTimeUpdate (C::mip_interface &device, GpsTimeUpdate::FieldId fieldId, uint32_t value)
 

Detailed Description

When combined with a PPS input signal applied to the I/O connector, this command enables complete synchronization of data outputs with an external time base, such as GPS system time. Since the hardware PPS synchronization can only detect the fractional number of seconds when pulses arrive, complete synchronization requires that the user provide the whole number of seconds via this command. After achieving PPS synchronization, this command should be sent twice: once to set the time-of-week and once to set the week number. PPS synchronization can be verified by monitoring the time sync status message (0xA0, 0x02) or the valid flags of any shared external timestamp (0x–, D7) data field.

Function Documentation

◆ extract()

void mip::commands_base::extract ( Serializer serializer,
GpsTimeUpdate self 
)

◆ insert()

void mip::commands_base::insert ( Serializer serializer,
const GpsTimeUpdate self 
)

◆ writeGpsTimeUpdate()

CmdResult mip::commands_base::writeGpsTimeUpdate ( C::mip_interface device,
GpsTimeUpdate::FieldId  fieldId,
uint32_t  value 
)