flexPTP 1.0
An IEEE 1588 PTP implementation designed for microcontrollers
Loading...
Searching...
No Matches
network_stack_driver.h
Go to the documentation of this file.
1
10#ifndef FLEXPTP_NETWORK_STACK_DRIVER
11#define FLEXPTP_NETWORK_STACK_DRIVER
12
13#include <stdbool.h>
14
15#include "ptp_types.h"
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
24typedef struct {
27 uint8_t primary_p2p_8023_dest[6];
28 uint8_t pdelay_p2p_8023_dest[6];
30
36void ptp_nsd_init(const NsdInitSettings * init);
37
43void ptp_nsd_get_interface_address(uint8_t * hwa);
44
51void ptp_nsd_transmit_msg(RawPtpMessage *pMsg, uint32_t uid);
52
56void ptp_nsd_igmp_join_leave(bool join);
57
58#ifdef __cplusplus
59}
60#endif
61
62#endif /* FLEXPTP_NETWORK_STACK_DRIVER */
void ptp_nsd_transmit_msg(RawPtpMessage *pMsg, uint32_t uid)
Definition: nsd_etherlib.c:159
void ptp_nsd_init(const NsdInitSettings *init)
Definition: nsd_etherlib.c:63
void ptp_nsd_igmp_join_leave(bool join)
Definition: nsd_etherlib.c:40
void ptp_nsd_get_interface_address(uint8_t *hwa)
Definition: nsd_etherlib.c:178
This module defines the fundamental PTP message and state machine type, flags, bitfields and the PTP ...
PtpTransportType
PTP transport type enumeration.
Definition: ptp_types.h:136
PtpDelayMechanism
PTP Delay mechanism enumeration.
Definition: ptp_types.h:144
Network Stack Driver initialization object.
PtpDelayMechanism dm
Delay Mechanism.
PtpTransportType tp
Transport Type.