flexPTP 1.0
An IEEE 1588 PTP implementation designed for microcontrollers
Loading...
Searching...
No Matches
master.h
Go to the documentation of this file.
1
9#ifndef FLEXPTP_MASTER
10#define FLEXPTP_MASTER
11
12#include "ptp_types.h"
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
21void ptp_master_init();
22
27
31void ptp_master_reset();
32
36void ptp_master_tick();
37
42
47
48
49// -------------
50
58
64void ptp_construct_binary_sync(void * pData, const PtpHeader * pHeader); // create Sync message
65
66#ifdef __cplusplus
67}
68#endif
69
70#endif /* FLEXPTP_MASTER */
void ptp_master_disable()
Definition: master.c:428
void ptp_master_enable()
Definition: master.c:404
void ptp_master_tick()
Definition: master.c:432
void ptp_construct_binary_sync(void *pData, const PtpHeader *pHeader)
void ptp_master_reset()
Definition: master.c:381
void ptp_master_init()
Definition: master.c:372
void ptp_master_destroy()
Definition: master.c:377
void ptp_master_process_message(RawPtpMessage *pRawMsg, PtpHeader *pHeader)
Definition: master.c:299
This module defines the fundamental PTP message and state machine type, flags, bitfields and the PTP ...
PTP message header structure.
Definition: ptp_types.h:81