flexPTP 1.0
An IEEE 1588 PTP implementation designed for microcontrollers
Loading...
Searching...
No Matches
ptp_port_stm32f407_lwip.h File Reference
#include "../../timeutils.h"

Go to the source code of this file.

Functions

void ptphw_init (uint32_t increment, uint32_t addend)
 
void ptphw_gettime (TimestampU *pTime)
 

Function Documentation

◆ ptphw_gettime()

void ptphw_gettime ( TimestampU pTime)

Get time right from the hardware clock.

Parameters
pTimepointer to a TimestampU object.

Definition at line 45 of file ptp_port_ch32f207_etherlib.c.

◆ ptphw_init()

void ptphw_init ( uint32_t  increment,
uint32_t  addend 
)

Initialize PTP hardware.

Parameters
incrementPTP hardware clock tick increment in nanoseconds
addendinitialize frequency tuning code word

Definition at line 14 of file ptp_port_ch32f207_etherlib.c.