MIP_SDK  latest-2-g34f3e39
MicroStrain Communications Library for embedded systems
Classes | Typedefs | Enumerations | Functions
(0x01,0x72) Gps Time Update

Set device internal GPS time 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. More...

Classes

struct  mip::C::mip_base_gps_time_update_command
 

Typedefs

typedef enum mip_base_gps_time_update_command_field_id mip::C::mip_base_gps_time_update_command_field_id
 
typedef struct mip_base_gps_time_update_command mip::C::mip_base_gps_time_update_command
 

Enumerations

enum  mip::C::mip_base_gps_time_update_command_field_id { mip::C::MIP_BASE_GPS_TIME_UPDATE_COMMAND_FIELD_ID_WEEK_NUMBER = 1, mip::C::MIP_BASE_GPS_TIME_UPDATE_COMMAND_FIELD_ID_TIME_OF_WEEK = 2 }
 

Functions

void mip::C::insert_mip_base_gps_time_update_command (microstrain_serializer *serializer, const mip_base_gps_time_update_command *self)
 
void mip::C::extract_mip_base_gps_time_update_command (microstrain_serializer *serializer, mip_base_gps_time_update_command *self)
 
mip_cmd_result mip::C::mip_base_write_gps_time_update (mip_interface *device, mip_base_gps_time_update_command_field_id field_id, uint32_t value)
 

Detailed Description

Set device internal GPS time 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.

Typedef Documentation

◆ mip_base_gps_time_update_command

◆ mip_base_gps_time_update_command_field_id

Enumeration Type Documentation

◆ mip_base_gps_time_update_command_field_id

Enumerator
MIP_BASE_GPS_TIME_UPDATE_COMMAND_FIELD_ID_WEEK_NUMBER 

Week number.

MIP_BASE_GPS_TIME_UPDATE_COMMAND_FIELD_ID_TIME_OF_WEEK 

Time of week in seconds.

Function Documentation

◆ extract_mip_base_gps_time_update_command()

void mip::C::extract_mip_base_gps_time_update_command ( microstrain_serializer serializer,
mip_base_gps_time_update_command self 
)

◆ insert_mip_base_gps_time_update_command()

void mip::C::insert_mip_base_gps_time_update_command ( microstrain_serializer serializer,
const mip_base_gps_time_update_command self 
)

◆ mip_base_write_gps_time_update()

mip_cmd_result mip::C::mip_base_write_gps_time_update ( mip_interface device,
mip_base_gps_time_update_command_field_id  field_id,
uint32_t  value 
)