| /NetX-Duo-v6.2.1/addons/ptp/ |
| D | nxd_ptp_client.h | 14 /** NetX PTP Client Component */ 16 /** Precision Time Protocol (PTP) */ 33 /* This file defines the NetX Precision Time Protocol (PTP) */ 68 /* Define the PTP Client ID */ 72 /* PTP Client configurable options. */ 73 /* Enable GPTP configuration as per IEEE 802.1AS. PTP messages are transmitted over Ethernet with p… 74 If not enabled by default, PTP messages are transmitted over UDP with delay request mechanism. */ 79 /* Enable PTP master feature. The role can be selected at runtime. Supported roles, 87 /* Disable PTP slave feature. Only master can be supported. */ 92 /* Enable sending reverse sync when the role of PTP clock becomes slave. This will allow master clo… [all …]
|
| D | nxd_ptp_client.c | 14 /** NetX PTP Client Component */ 16 /** Precision Time Protocol (PTP) */ 33 /* This file defines the NetX Precision Time Protocol (PTP) */ 89 /* Define the PTP version */ 96 /* Define the TTL of PTP packets */ 140 /* Length of PTP message header */ 143 /* Length of PTP messages (without header) */ 149 /* Length of PTP messages gPTP (without header) */ 155 /* Length of PTP timestamp */ 158 /* Length of PTP correctionField */ [all …]
|
| /NetX-Duo-v6.2.1/test/regression/ptp_test/ |
| D | netx_ptp_client_announce_timeout_test.c | 1 /* PTP Announce test. This test case validates on Announce timeout, PTP client will trigger an eve… 55 printf("NetX Test: PTP Announce Timeout Test ................................"); in test_application_define() 124 /* PTP handler. */ 146 /* read the PTP clock */ in ptp_event_callback() 149 /* convert PTP time to UTC date and time */ in ptp_event_callback() 199 /* Create the PTP client instance */ in ntest_0_entry() 205 /* start the PTP client */ in ntest_0_entry() 212 /* Validate PTP clock synced. */ in ntest_0_entry() 221 /* Validate PTP clock timeout. */ in ntest_0_entry() 232 /* This thread acts as PTP server, accepting the connection. */ [all …]
|
| D | netx_ptp_client_basic_test.c | 1 /* PTP basic test. This test case validates basic procedure of PTP client synchronize. */ 51 printf("NetX Test: PTP Basic Test ..........................................."); in test_application_define() 120 /* PTP handler. */ 140 /* read the PTP clock */ in ptp_event_callback() 143 /* convert PTP time to UTC date and time */ in ptp_event_callback() 187 /* Create the PTP client instance */ in ntest_0_entry() 193 /* start the PTP client */ in ntest_0_entry() 212 /* This thread acts as PTP server, accepting the connection. */ 221 /* Sleep 1 second to wait for PTP thread running. */ in ntest_1_entry()
|
| D | netx_ptp_client_two_steps_off_test.c | 1 /* PTP two steps off test. This test case validates two steps off procedure of PTP client synchron… 51 printf("NetX Test: PTP Two Steps Off Test ..................................."); in test_application_define() 120 /* PTP handler. */ 140 /* read the PTP clock */ in ptp_event_callback() 143 /* convert PTP time to UTC date and time */ in ptp_event_callback() 187 /* Create the PTP client instance */ in ntest_0_entry() 193 /* start the PTP client */ in ntest_0_entry() 212 /* This thread acts as PTP server, accepting the connection. */ 221 /* Sleep 1 second to wait for PTP thread running. */ in ntest_1_entry()
|
| D | netx_ptp_client_ipv6_test.c | 1 /* PTP IPv6 test. This test case validates PTP client synchronize over IPv6. 53 printf("NetX Test: PTP IPv6 Test ............................................"); in test_application_define() 124 /* PTP handler. */ 144 /* read the PTP clock */ in ptp_event_callback() 147 /* convert PTP time to UTC date and time */ in ptp_event_callback() 200 /* Create the PTP client instance */ in ntest_0_entry() 206 /* start the PTP client */ in ntest_0_entry() 226 /* This thread acts as PTP server, accepting the connection. */ 243 /* Sleep 1 second to wait for PTP thread running. */ in ntest_1_entry()
|
| D | netx_ptp_client_calibrate_test.c | 1 /* PTP calibrate test. This test case validates calibration of PTP client with different values. */ 128 printf("NetX Test: PTP Calibrate Test ......................................."); in test_application_define() 197 /* PTP handler. */ 217 /* read the PTP clock */ in ptp_event_callback() 220 /* convert PTP time to UTC date and time */ in ptp_event_callback() 273 /* Create the PTP client instance */ in ntest_0_entry() 282 /* Start the PTP client */ in ntest_0_entry() 304 /* Stop the PTP client */ in ntest_0_entry() 313 /* This thread acts as PTP server, accepting the connection. */ 330 /* Sleep 1 second to wait for PTP thread running. */ in ntest_1_entry()
|
| D | netx_ptp_client_api_test.c | 1 /* PTP API test. This test case extends the basic test case to cover API not tested by others. */ 51 printf("NetX Test: PTP API Test ............................................."); in test_application_define() 120 /* PTP handler. */ 167 /* read the PTP clock */ in ptp_event_callback() 170 /* convert PTP time to UTC date and time */ in ptp_event_callback() 215 /* Create the PTP client instance */ in ntest_0_entry() 225 /* start the PTP client */ in ntest_0_entry() 235 /* Set timestamp to all zero when PTP already started. */ in ntest_0_entry() 257 /* This thread acts as PTP server, accepting the connection. */ 266 /* Sleep 1 second to wait for PTP thread running. */ in ntest_1_entry()
|
| D | netx_ptp_client_master_selection_test.c | 1 /* PTP master selection test. This test case validates, 55 printf("NetX Test: PTP Master Selection Test ................................"); in test_application_define() 124 /* PTP handler. */ 144 /* read the PTP clock */ in ptp_event_callback() 147 /* convert PTP time to UTC date and time */ in ptp_event_callback() 189 /* Create the PTP client instance */ in ntest_0_entry() 205 /* start the PTP client */ in ntest_0_entry() 247 /* Stop the PTP client */ in ntest_0_entry() 266 /* This thread acts as PTP server, accepting the connection. */ 282 /* Sleep 1 second to wait for PTP thread running. */ in ntest_1_entry()
|
| D | netx_ptp_utility.c | 460 /* Save pointer to PTP client. */ in _netx_ptp_clock_callback()
|
| /NetX-Duo-v6.2.1/samples/ |
| D | demo_netx_duo_ptp_client.c | 2 This is a small demo of the NetX Duo PTP client on the high-performance NetX Duo TCP/IP stack. 3 This demo relies on ThreadX, NetX Duo and NetX Duo PTP client API to execute the Precision Time 47 /* Define ptp utc offset. */ 63 /* PTP handler. */ 185 /* Create the PTP client instance */ in thread_0_entry() 190 /* enable the PTP master */ in thread_0_entry() 199 /* start the PTP client */ in thread_0_entry() 205 /* read the PTP clock */ in thread_0_entry() 208 /* convert PTP time to UTC date and time */ in thread_0_entry()
|
| /NetX-Duo-v6.2.1/test/cmake/ptp/ |
| D | coverage.sh | 7 gcovr --object-directory=build/$1/netxduo/CMakeFiles/netxduo.dir/addons/ptp -r ../../../addons/ptp … 8 gcovr --object-directory=build/$1/netxduo/CMakeFiles/netxduo.dir/addons/ptp -r ../../../addons/ptp …
|
| /NetX-Duo-v6.2.1/.github/workflows/ |
| D | regression_test.yml | 46 PTP: 58 cmake_path: ./test/cmake/ptp 59 result_affix: PTP
|
| /NetX-Duo-v6.2.1/addons/ |
| D | CMakeLists.txt | 24 ${CMAKE_CURRENT_LIST_DIR}/ptp/nxd_ptp_client.c 94 ${CMAKE_CURRENT_LIST_DIR}/ptp
|
| /NetX-Duo-v6.2.1/scripts/ |
| D | build_ptp.sh | 3 $(dirname `realpath $0`)/../test/cmake/ptp/run.sh build all
|
| D | test_ptp.sh | 3 CTEST_PARALLEL_LEVEL=4 $(dirname `realpath $0`)/../test/cmake/ptp/run.sh test all
|
| /NetX-Duo-v6.2.1/common/src/ |
| D | nx_link.c | 1230 /* Store the PTP timestamp at the start of the packet (replacing Ethernet header) in nx_link_ethernet_packet_received() 1231 in case of PTP over UDP. */ in nx_link_ethernet_packet_received() 1282 /* Store the PTP timestamp at the start of the packet (replacing Ethernet header) in nx_link_ethernet_packet_received() 1283 in case of PTP over ETH. */ in nx_link_ethernet_packet_received()
|
| /NetX-Duo-v6.2.1/test/cmake/netxduo64/ |
| D | CMakeLists.txt | 31 addons/ptp
|
| /NetX-Duo-v6.2.1/test/cmake/netxduo/regression/ |
| D | CMakeLists.txt | 1280 # PTP utilities
|
| /NetX-Duo-v6.2.1/common/inc/ |
| D | nx_api.h | 55 /* PTP timestamp capability, */
|