![]() |
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.
Data Structures | |
| struct | NsdInitSettings |
| Network Stack Driver initialization object. More... | |
Functions | |
| void | ptp_nsd_init (const NsdInitSettings *init) |
| 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 178 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 40 of file nsd_etherlib.c.
| void ptp_nsd_init | ( | const NsdInitSettings * | init | ) |
Initialize or reinitialize the Network Stack Driver.
| init | NSD initialization settings |
Definition at line 63 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 159 of file nsd_etherlib.c.