Hi,
I am unable to use Timestamping feature for Tx event packet. I have enabled Timestamping for
1PPS event on GPIO and PTP event message.
I am able to get 1PPS event timestamp but not the latter. I have taken this part of the code from
EPL C code reference library. Please take a look at this code.
// Enable Transmit Timestamp operation
flags = TXOPT_IP1588_EN | TXOPT_IPV4_EN | TXOPT_TS_EN;
PTPSetTransmitConfig( portHandle, flags, 1, 0xFF, 0x00);
//Every 50ms polling PHY_PG4_PTP_STS to check if there are any events:
if(i_timer_msec%50 == 0)
{
events = PTPCheckForEvents( portHandle);
if ( events & PTPEVT_EVENT_TIMESTAMP_BIT)
{
PTPGetEvent( portHandle, &eventNum, &riseFlag, &seconds_ts, &nanoseconds_ts, &eventsMissed);
}
if ( events & PTPEVT_TRANSMIT_TIMESTAMP_BIT)
{
PTPGetTransmitTimestamp( portHandle, &seconds_ts_sync, &nanoseconds_ts_sync, &overflowCount);
}
}
 
				 
		 
					 
                           
				 
				