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

This module implements the master clock functionality. More...

#include "ptp_types.h"

Go to the source code of this file.

Functions

void ptp_master_init ()
 
void ptp_master_destroy ()
 
void ptp_master_reset ()
 
void ptp_master_tick ()
 
void ptp_master_enable ()
 
void ptp_master_disable ()
 
void ptp_master_process_message (RawPtpMessage *pRawMsg, PtpHeader *pHeader)
 
void ptp_construct_binary_sync (void *pData, const PtpHeader *pHeader)
 

Detailed Description

This module implements the master clock functionality.

Definition in file master.h.

Function Documentation

◆ ptp_construct_binary_sync()

void ptp_construct_binary_sync ( void *  pData,
const PtpHeader pHeader 
)

Render a PTP Sync message based on header data.

Parameters
pDatapointer to target the PTP message
pHeaderpointer to a filled-out PtpHeader object

◆ ptp_master_destroy()

void ptp_master_destroy ( )

Destroy th eMaster module.

Definition at line 369 of file master.c.

◆ ptp_master_disable()

void ptp_master_disable ( )

Disable the master module.

Definition at line 417 of file master.c.

◆ ptp_master_enable()

void ptp_master_enable ( )

Enable the master module.

Definition at line 393 of file master.c.

◆ ptp_master_init()

void ptp_master_init ( )

Initialize the Master module.

Definition at line 364 of file master.c.

◆ ptp_master_process_message()

void ptp_master_process_message ( RawPtpMessage pRawMsg,
PtpHeader pHeader 
)

Process a message by the master module.

Parameters
pRawMsgPointer to the raw PTP message.
pHeaderPointer to the extracted PTP message header.

Definition at line 304 of file master.c.

◆ ptp_master_reset()

void ptp_master_reset ( )

Reset the Master module.

Definition at line 373 of file master.c.

◆ ptp_master_tick()

void ptp_master_tick ( )

Pass ticks to the Master module.

Definition at line 421 of file master.c.