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
18
typedef
struct
{
19
PtpProfile
profile
;
20
TimestampI
offset
;
21
uint32_t
logging
;
22
uint8_t
priority1
, priority2;
23
}
PtpConfig
;
24
29
void
ptp_store_config
(
PtpConfig
*pConfig);
// store PTP-engine configuration (param: output)
30
35
void
ptp_load_config
(
const
PtpConfig
*pConfig);
// load PTP-engine configuration
36
41
void
ptp_load_config_from_dump
(
const
void
*pDump);
42
43
#endif
/* FLEXPTP_CONFIG */
ptp_store_config
void ptp_store_config(PtpConfig *pConfig)
Definition:
config.c:28
ptp_load_config_from_dump
void ptp_load_config_from_dump(const void *pDump)
Definition:
config.c:78
ptp_load_config
void ptp_load_config(const PtpConfig *pConfig)
Definition:
config.c:41
ptp_types.h
This module defines the fundamental PTP message and state machine type, flags, bitfields and the PTP ...
PtpConfig
Global storable-loadable configuration.
Definition:
config.h:18
PtpConfig::offset
TimestampI offset
PPS signal offset.
Definition:
config.h:20
PtpConfig::profile
PtpProfile profile
PTP-profile.
Definition:
config.h:19
PtpConfig::logging
uint32_t logging
logging compressed into a single bitfield
Definition:
config.h:21
PtpConfig::priority1
uint8_t priority1
Definition:
config.h:22
PtpProfile
PTP profile structure.
Definition:
ptp_types.h:331
TimestampI
Timestamp (signed)
Definition:
timeutils.h:29
src
flexptp
config.h
Generated by
1.9.6