flexPTP 1.0
An IEEE 1588 PTP implementation designed for microcontrollers
Loading...
Searching...
No Matches
task_ptp.h
Go to the documentation of this file.
1
11#ifndef TASK_PTP_H_
12#define TASK_PTP_H_
13
14#include <stdint.h>
15#include <stdbool.h>
16
17#include "event.h"
18#include "ptp_types.h"
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
28
33
39bool reg_task_ptp();
40
44void unreg_task_ptp();
45
50
60void ptp_receive_enqueue(const void *pPayload, uint32_t len, uint32_t ts_sec, uint32_t ts_ns, int tp);
61
68bool ptp_transmit_enqueue(const RawPtpMessage * pMsg);
69
77void ptp_transmit_timestamp_cb(uint32_t uid, uint32_t seconds, uint32_t nanoseconds);
78
88
95bool ptp_event_enqueue(const PtpCoreEvent * event);
96
97#ifdef FLEXPTP_OSLESS
106
114void task_ptp();
115#endif
116
117#ifdef __cplusplus
118}
119#endif
120
121#endif // TASK_PTP_H_
In this module are the core and user events defined.
This module defines the fundamental PTP message and state machine type, flags, bitfields and the PTP ...
Timestamp (signed)
Definition: timeutils.h:33
static void task_ptp(void *pParam)
Definition: task_ptp.c:588
static void ptp_heartbeat_tmr_cb(TimerHandle_t timer)
Definition: task_ptp.c:148
void ptp_receive_enqueue(const void *pPayload, uint32_t len, uint32_t ts_sec, uint32_t ts_ns, int tp)
Definition: task_ptp.c:457
bool ptp_transmit_enqueue(const RawPtpMessage *pMsg)
Definition: task_ptp.c:502
void ptp_start_heartbeat_tmr()
Definition: task_ptp.c:210
void unreg_task_ptp()
Definition: task_ptp.c:404
void ptp_transmit_timestamp_cb(uint32_t uid, uint32_t seconds, uint32_t nanoseconds)
Definition: task_ptp.c:537
bool ptp_event_enqueue(const PtpCoreEvent *event)
Definition: task_ptp.c:430
void ptp_stop_heartbeat_tmr()
Definition: task_ptp.c:225
bool is_flexPTP_operating()
Definition: task_ptp.c:786
bool ptp_read_and_clear_transmit_timestamp(uint32_t tag, TimestampI *pTs)
Definition: task_ptp.c:564
bool reg_task_ptp()
Definition: task_ptp.c:326