EtherLib/timestamping.h
Wiesner András ab8d45932f Timestamping and bunch of bugfix and optimization
- Timestamping management added
- Errors due to reading uninitialized data in ARP fixed
- EthInterface reworked, incoming packet notification and payload readout separated (through which fixing concurrent access problems)
- RX and TX offloads added
- Capability to add a packet sieve layer without prior registration of specific packet class added (this makes it possible to register arbitrary EtherType connection blocks, for example)
2023-04-27 09:38:26 +02:00

14 lines
357 B
C

#ifndef ETHERLIB_TIMESTAMPING_H
#define ETHERLIB_TIMESTAMPING_H
#include "cbd_table.h"
/**
* Assign callback funtion to specific connection block.
* @param d CBD to existing connection
* @param cb pointer to callback function
*/
void ts_set_tx_callback(cbd d, void(*cb)(uint32_t ts_s, uint32_t ts_ns, uint32_t tag));
#endif //ETHERLIB_TIMESTAMPING_H