![]() |
flexPTP 1.0
An IEEE 1588 PTP implementation designed for microcontrollers
|
The entry point of the whole PTP-implementation. Calling reg_task_ptp() initializes the PTP-engine, invoking unreg_task_ptp() shuts it down. More...
Go to the source code of this file.
Functions | |
void | reg_task_ptp () |
void | unreg_task_ptp () |
bool | task_ptp_is_operating () |
void | ptp_receive_enqueue (const void *pPayload, uint32_t len, uint32_t ts_sec, uint32_t ts_ns, int tp) |
bool | ptp_transmit_enqueue (const RawPtpMessage *pMsg) |
bool | ptp_event_enqueue (const PtpCoreEvent *event) |
The entry point of the whole PTP-implementation. Calling reg_task_ptp() initializes the PTP-engine, invoking unreg_task_ptp() shuts it down.
Definition in file task_ptp.h.
bool ptp_event_enqueue | ( | const PtpCoreEvent * | event | ) |
Post an event.
event | pointer to a filled event object |
Definition at line 136 of file task_ptp.c.
void ptp_receive_enqueue | ( | const void * | pPayload, |
uint32_t | len, | ||
uint32_t | ts_sec, | ||
uint32_t | ts_ns, | ||
int | tp | ||
) |
Enqueue PTP message.
pPayload | message payload |
len | message length |
ts_sec | reception timestamp seconds part |
ts_ns | receptiopn timestamp nanoseconds part |
tp | transport portocol (L2/L4) |
Definition at line 141 of file task_ptp.c.
bool ptp_transmit_enqueue | ( | const RawPtpMessage * | pMsg | ) |
Put a PTP message into the transmit queue.
pMsg | pointer to raw PTP message. Can be discarded after the function has returned. |
Definition at line 171 of file task_ptp.c.
void reg_task_ptp | ( | ) |
Register PTP task.
Definition at line 90 of file task_ptp.c.
bool task_ptp_is_operating | ( | ) |
Is the PTP task operating?
Definition at line 237 of file task_ptp.c.
void unreg_task_ptp | ( | ) |
Unreg PTP task.
Definition at line 128 of file task_ptp.c.