flexPTP 1.0
An IEEE 1588 PTP implementation designed for microcontrollers
Loading...
Searching...
No Matches
config.h
Go to the documentation of this file.
1
10#ifndef FLEXPTP_CONFIG
11#define FLEXPTP_CONFIG
12
13#include "ptp_types.h"
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
22typedef struct {
25 uint32_t logging;
26 uint8_t priority1, priority2;
27} PtpConfig;
28
33void ptp_store_config(PtpConfig *pConfig); // store PTP-engine configuration (param: output)
34
39void ptp_load_config(const PtpConfig *pConfig); // load PTP-engine configuration
40
45void ptp_load_config_from_dump(const void *pDump);
46
47#ifdef __cplusplus
48}
49#endif
50
51#endif /* FLEXPTP_CONFIG */
void ptp_store_config(PtpConfig *pConfig)
Definition: config.c:30
void ptp_load_config_from_dump(const void *pDump)
Definition: config.c:82
void ptp_load_config(const PtpConfig *pConfig)
Definition: config.c:44
This module defines the fundamental PTP message and state machine type, flags, bitfields and the PTP ...
Global storable-loadable configuration.
Definition: config.h:22
TimestampI offset
PPS signal offset.
Definition: config.h:24
PtpProfile profile
PTP-profile.
Definition: config.h:23
uint32_t logging
logging compressed into a single bitfield
Definition: config.h:25
uint8_t priority1
Definition: config.h:26
PTP profile structure.
Definition: ptp_types.h:356
Timestamp (signed)
Definition: timeutils.h:33