|
AM243x MCU+ SDK
08.06.00
|
|
Go to the documentation of this file.
33 #ifndef ICSS_TIMESYNC_UTILS_H_
34 #define ICSS_TIMESYNC_UTILS_H_
void TimeSync_addHalfWord(volatile uint8_t *src, uint16_t halfWord)
Add a half word to the packet stream.
void TimeSync_convEndianess(volatile void *src, volatile void *dst, uint8_t numBytes)
Convert specified number of bytes in source from big endian bytes to little endian and vice versa....
void TimeSync_addWord(uint8_t *src, uint32_t word)
Add a word to the packet stream.
void TimeSync_convEnd6to8(volatile void *src, void *dst)
Takes in a 6 byte reverse byte endian source and puts it in an 64 bit double word with correct endian...
void TimeSync_calcIPChecksum(uint8_t *packet)
Compute checksum for IP Header and modify in place.
uint32_t TimeSync_calcChecksum(uint8_t *packet, uint16_t len)
Compute checksum used in IP/UDP packets for a given stream.