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
23void reg_task_ptp();
24
28void unreg_task_ptp();
29
34
44void ptp_receive_enqueue(const void *pPayload, uint32_t len, uint32_t ts_sec, uint32_t ts_ns, int tp);
45
52bool ptp_transmit_enqueue(const RawPtpMessage * pMsg);
53
60bool ptp_event_enqueue(const PtpCoreEvent * event);
61
62#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 ...
Raw PTP message structure.
Definition: ptp_types.h:162
void ptp_receive_enqueue(const void *pPayload, uint32_t len, uint32_t ts_sec, uint32_t ts_ns, int tp)
Definition: task_ptp.c:141
bool ptp_transmit_enqueue(const RawPtpMessage *pMsg)
Definition: task_ptp.c:171
void reg_task_ptp()
Definition: task_ptp.c:90
void unreg_task_ptp()
Definition: task_ptp.c:128
bool ptp_event_enqueue(const PtpCoreEvent *event)
Definition: task_ptp.c:136
bool task_ptp_is_operating()
Definition: task_ptp.c:237