flexPTP 1.0
An IEEE 1588 PTP implementation designed for microcontrollers
Loading...
Searching...
No Matches
network_stack_driver.h File Reference

This file is a header for the employed Network Stack Driver (NSD). A NSD must define ALL four functions listed below. More...

#include <stdbool.h>
#include "ptp_types.h"

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)
 

Detailed Description

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.

Function Documentation

◆ ptp_nsd_get_interface_address()

void ptp_nsd_get_interface_address ( uint8_t *  hwa)

Fetch the Ethernet network interface hardware address.

Parameters
hwapointer to a 6-byte array where the hardware address is going to be stored to

Definition at line 178 of file nsd_etherlib.c.

◆ ptp_nsd_igmp_join_leave()

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.

◆ ptp_nsd_init()

void ptp_nsd_init ( const NsdInitSettings *  init)

Initialize or reinitialize the Network Stack Driver.

Parameters
initNSD initialization settings

Definition at line 63 of file nsd_etherlib.c.

◆ ptp_nsd_transmit_msg()

void ptp_nsd_transmit_msg ( RawPtpMessage *  pMsg,
uint32_t  uid 
)

Transmit a PTP message.

Parameters
pMsgpointer to a RawPtpMessage
uidUID of the message

Definition at line 159 of file nsd_etherlib.c.