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

This module defines functions for storing and loading flexPTP configurations. More...

#include "ptp_types.h"

Go to the source code of this file.

Data Structures

struct  PtpConfig
 Global storable-loadable configuration. More...
 

Functions

void ptp_store_config (PtpConfig *pConfig)
 
void ptp_load_config (const PtpConfig *pConfig)
 
void ptp_load_config_from_dump (const void *pDump)
 

Detailed Description

This module defines functions for storing and loading flexPTP configurations.

Definition in file config.h.

Function Documentation

◆ ptp_load_config()

void ptp_load_config ( const PtpConfig pConfig)

Load flexPTP configuration from a PTP config object.

Parameters
pConfigpointer to an existing PtpConfig object, providing the retained configuration

Definition at line 41 of file config.c.

◆ ptp_load_config_from_dump()

void ptp_load_config_from_dump ( const void *  pDump)

Load PTP-engine configuration from binary dump (i.e. from unaligned address)

Parameters
pDumppointer to config dump

Definition at line 78 of file config.c.

◆ ptp_store_config()

void ptp_store_config ( PtpConfig pConfig)

Store flexPTP configuration to an existing location.

Parameters
pConfigpointer to an existing PtpConfig object to where the configuration will be saved

Definition at line 28 of file config.c.