flexPTP 1.0
An IEEE 1588 PTP implementation designed for microcontrollers
Loading...
Searching...
No Matches
ptp_defs.c
Go to the documentation of this file.
1#include "ptp_defs.h"
2
3const uint8_t PTP_ETHERNET_PRIMARY[6] = { 0x01, 0x1B, 0x19, 0x00, 0x00, 0x00 };
4const uint8_t PTP_ETHERNET_PEER_DELAY[6] = { 0x01, 0x80, 0xC2, 0x00, 0x00, 0x0E };
5
6#ifdef LWIP
7const ip_addr_t PTP_IGMP_PRIMARY = { 0x810100E0 }; // 224.0.1.129
8const ip_addr_t PTP_IGMP_PEER_DELAY = { 0x6B0000E0 }; // 224.0.0.107
9#elif defined(ETHLIB)
10const ip_addr_t PTP_IGMP_PRIMARY = IPv4(224, 0, 1, 129); // 224.0.1.129
11const ip_addr_t PTP_IGMP_PEER_DELAY = IPv4(224, 0, 0, 107); // 224.0.0.107
12#else // unkown network stack
13#error "Hence the network stack is unknown, please define PTP_IGMP_PRIMARY and PTP_IGMP_PEER_DELAY IPv4 addresses!"
14#endif
const uint8_t PTP_ETHERNET_PEER_DELAY[6]
PTP's L2 Peer_Delay Ethernet address.
Definition: ptp_defs.c:4
const uint8_t PTP_ETHERNET_PRIMARY[6]
PTP's L2 Primary Ethernet address.
Definition: ptp_defs.c:3
In here reside a multitude of fundamental PTP-related constants and definitions.
const ip_addr_t PTP_IGMP_PRIMARY
Primary IGMP address.
ip4_addr ip_addr_t
Definition: ptp_defs.h:22
const ip_addr_t PTP_IGMP_PEER_DELAY
Peer_Delay IGMP address.