![]() |
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) |
void | ptp_nsd_igmp_join_leave (bool join) |
Variables | |
PtpCircBuf | gRawRxMsgBuf |
Input circular buffer. | |
PtpCircBuf | gRawTxMsgBuf |
Output circular buffers. | |
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 150 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 | ) |
Transmit a PTP message.
pMsg | pointer to a RawPtpMessage |
Definition at line 135 of file nsd_etherlib.c.
|
extern |
Input circular buffer.
|
extern |
Output circular buffers.