![]() |
flexPTP 1.0
An IEEE 1588 PTP implementation designed for microcontrollers
|
Giant PTP core state object. More...
#include <ptp_types.h>

Data Fields | |
| PtpProfile | profile |
| PTP profile. | |
| PtpMasterProperties | capabilities |
| The capabilities of this device. | |
| PtpHWClockState | hwclock |
| Hardware clock state. | |
| struct { | |
| TimestampI offset | |
| PPS signal offset. More... | |
| uint64_t clockIdentity | |
| clockIdentity calculated from MAC address More... | |
| } | hwoptions |
| Hardware options. | |
| PtpBmcaState | bmca |
| BMCA state. | |
| PtpNetworkState | network |
| Network state. | |
| uint32_t | ticks |
| ticks counting form the initialization | |
| struct { | |
| bool def | |
| default More... | |
| bool corr | |
| correction fields More... | |
| bool timestamps | |
| timestamps More... | |
| bool info | |
| informative messages More... | |
| bool locked | |
| clock lock state change More... | |
| bool bmca | |
| BMCA state change. More... | |
| bool transmission | |
| Transmission logging. More... | |
| } | logging |
| Logging. | |
| PtpStats | stats |
| Statistics. | |
| PtpUserEventCallback | userEventCb |
| User event callback pointer. | |
| struct { | |
| bool enabled | |
| Slave module is enabled. More... | |
| PtpSlaveMessagingState messaging | |
| Messaging state. More... | |
| PtpSyncCycleData scd | |
| Sync cycle data. More... | |
| bool expectPDelRespFollowUp | |
| Expect a PDelay_Resp_Follow_Up message. More... | |
| PtpFastCompState fastCompState | |
| State of fast compensation. More... | |
| uint8_t fastCompCntr | |
| Cycle counter for fast compensation. More... | |
| TimestampI prevSyncMa | |
| T1 from the previous cycle. More... | |
| TimestampI prevSyncSl | |
| T2 from the previous cycle. More... | |
| TimestampI prevTimeError | |
| Time error in the previous cycle. More... | |
| uint64_t coarseLimit | |
| time error limit above coarse correction is engaged More... | |
| uint32_t delReqTickPeriod | |
| ticks between Delay_Req transmissions More... | |
| uint32_t delReqTmr | |
| Timer counting ticks for Delay_Req transmissions. More... | |
| PtpSyncCallback syncCb | |
| Sync callback invoked in every synchronization cycle. More... | |
| } | slave |
| struct { | |
| bool enabled | |
| Master module is enabled. More... | |
| PtpP2PSlaveInfo p2pSlave | |
| Information on the connected P2P slave (only used in P2P modes) More... | |
| uint32_t pdelay_reqSequenceID | |
| Sequence number of the last PDelay_Request sent. More... | |
| PtpSyncCycleData scd | |
| Sync cycle data. More... | |
| bool expectPDelRespFollowUp | |
| Expect a PDelay_Resp_Follow_Up message. More... | |
| PtpMasterMessagingState messaging | |
| Messaging state. More... | |
| uint32_t syncTickPeriod | |
| Sync transmission period in ticks. More... | |
| uint32_t syncTmr | |
| Counter for scheduling Sync transmission. More... | |
| uint32_t announceTickPeriod | |
| Announce transmission in ticks. More... | |
| uint32_t announceTmr | |
| Counter to schedule Announce transmission. More... | |
| uint32_t pdelayReqTickPeriod | |
| PDelayReq transmission period in ticks. More... | |
| uint32_t pdelayReqTmr | |
| Counter for PDelayReq transmission scheduling. More... | |
| } | master |
Giant PTP core state object.
Definition at line 501 of file ptp_types.h.
| uint32_t announceTickPeriod |
Announce transmission in ticks.
Definition at line 566 of file ptp_types.h.
| uint32_t announceTmr |
Counter to schedule Announce transmission.
Definition at line 567 of file ptp_types.h.
| PtpBmcaState bmca |
BMCA state.
Definition at line 512 of file ptp_types.h.
| bool bmca |
BMCA state change.
Definition at line 524 of file ptp_types.h.
| PtpMasterProperties capabilities |
The capabilities of this device.
Definition at line 503 of file ptp_types.h.
| uint64_t clockIdentity |
clockIdentity calculated from MAC address
Definition at line 509 of file ptp_types.h.
| uint64_t coarseLimit |
time error limit above coarse correction is engaged
Definition at line 544 of file ptp_types.h.
| bool corr |
correction fields
Definition at line 520 of file ptp_types.h.
| bool def |
default
Definition at line 519 of file ptp_types.h.
| uint32_t delReqTickPeriod |
ticks between Delay_Req transmissions
Definition at line 546 of file ptp_types.h.
| uint32_t delReqTmr |
Timer counting ticks for Delay_Req transmissions.
Definition at line 547 of file ptp_types.h.
| bool enabled |
| bool expectPDelRespFollowUp |
Expect a PDelay_Resp_Follow_Up message.
Definition at line 538 of file ptp_types.h.
| uint8_t fastCompCntr |
Cycle counter for fast compensation.
Definition at line 540 of file ptp_types.h.
| PtpFastCompState fastCompState |
State of fast compensation.
Definition at line 539 of file ptp_types.h.
| PtpHWClockState hwclock |
Hardware clock state.
Definition at line 505 of file ptp_types.h.
| struct { ... } hwoptions |
Hardware options.
| bool info |
informative messages
Definition at line 522 of file ptp_types.h.
| bool locked |
clock lock state change
Definition at line 523 of file ptp_types.h.
| struct { ... } logging |
Logging.
| struct { ... } master |
| PtpSlaveMessagingState messaging |
Messaging state.
Definition at line 536 of file ptp_types.h.
| PtpMasterMessagingState messaging |
Messaging state.
Definition at line 562 of file ptp_types.h.
| PtpNetworkState network |
Network state.
Definition at line 513 of file ptp_types.h.
| TimestampI offset |
PPS signal offset.
Definition at line 508 of file ptp_types.h.
| PtpP2PSlaveInfo p2pSlave |
Information on the connected P2P slave (only used in P2P modes)
Definition at line 557 of file ptp_types.h.
| uint32_t pdelay_reqSequenceID |
Sequence number of the last PDelay_Request sent.
Definition at line 558 of file ptp_types.h.
| uint32_t pdelayReqTickPeriod |
PDelayReq transmission period in ticks.
Definition at line 568 of file ptp_types.h.
| uint32_t pdelayReqTmr |
Counter for PDelayReq transmission scheduling.
Definition at line 569 of file ptp_types.h.
| TimestampI prevSyncMa |
T1 from the previous cycle.
Definition at line 541 of file ptp_types.h.
| TimestampI prevSyncSl |
T2 from the previous cycle.
Definition at line 542 of file ptp_types.h.
| TimestampI prevTimeError |
Time error in the previous cycle.
Definition at line 543 of file ptp_types.h.
| PtpProfile profile |
PTP profile.
Definition at line 502 of file ptp_types.h.
| PtpSyncCycleData scd |
Sync cycle data.
Definition at line 537 of file ptp_types.h.
| struct { ... } slave |
| PtpStats stats |
Statistics.
Definition at line 528 of file ptp_types.h.
| PtpSyncCallback syncCb |
Sync callback invoked in every synchronization cycle.
Definition at line 549 of file ptp_types.h.
| uint32_t syncTickPeriod |
Sync transmission period in ticks.
Definition at line 564 of file ptp_types.h.
| uint32_t syncTmr |
Counter for scheduling Sync transmission.
Definition at line 565 of file ptp_types.h.
| uint32_t ticks |
ticks counting form the initialization
Definition at line 515 of file ptp_types.h.
| bool timestamps |
timestamps
Definition at line 521 of file ptp_types.h.
| bool transmission |
Transmission logging.
Definition at line 525 of file ptp_types.h.
| PtpUserEventCallback userEventCb |
User event callback pointer.
Definition at line 529 of file ptp_types.h.