![]() |
flexPTP 1.0
An IEEE 1588 PTP implementation designed for microcontrollers
|
This file is a header for the employed Network Stack Driver (NSD). A NSD must define ALL four functions listed below. More...
Go to the source code of this file.
Functions | |
void | ptp_nsd_init (PtpTransportType tp, PtpDelayMechanism dm) |
void | ptp_nsd_get_interface_address (uint8_t *hwa) |
void | ptp_nsd_transmit_msg (RawPtpMessage *pMsg, uint32_t uid) |
void | ptp_nsd_igmp_join_leave (bool join) |
This file is a header for the employed Network Stack Driver (NSD). A NSD must define ALL four functions listed below.
Definition in file network_stack_driver.h.
void ptp_nsd_get_interface_address | ( | uint8_t * | hwa | ) |
Fetch the Ethernet network interface hardware address.
hwa | pointer to a 6-byte array where the hardware address is going to be stored to |
Definition at line 138 of file nsd_etherlib.c.
void ptp_nsd_igmp_join_leave | ( | bool | join | ) |
Join or leave IGMP groups associated with the current PTP profile.
Definition at line 32 of file nsd_etherlib.c.
void ptp_nsd_init | ( | PtpTransportType | tp, |
PtpDelayMechanism | dm | ||
) |
Initialize or reinitialize the Network Stack Driver.
tp | PTP transport type |
dm | PTP delay mechanism |
Definition at line 50 of file nsd_etherlib.c.
void ptp_nsd_transmit_msg | ( | RawPtpMessage * | pMsg, |
uint32_t | uid | ||
) |
Transmit a PTP message.
pMsg | pointer to a RawPtpMessage |
uid | UID of the message |
Definition at line 123 of file nsd_etherlib.c.