flexPTP-basic/ptp_msg_tx.h
2023-04-27 08:23:40 +00:00

20 lines
567 B
C

#ifndef FLEXPTP_SIM_PTP_MSG_TX_H
#define FLEXPTP_SIM_PTP_MSG_TX_H
#include <flexptp/ptp_types.h>
#ifdef ETHLIB
#include <etherlib/etherlib.h>
#endif
#ifdef LWIP
void ptp_transmit_init(struct udp_pcb *pPriE, struct udp_pcb *pPriG); // initialize PTP transmitter
#elif defined(ETHLIB)
void ptp_transmit_init(cbd pPriE, cbd pPriG);
#endif
void ptp_transmit_msg(RawPtpMessage * pMsg); // transmit PTP message
bool ptp_transmit_enqueue(const RawPtpMessage * pMsg); // enqueue message TODO: refactor...
#endif //FLEXPTP_SIM_PTP_MSG_TX_H