24 lines
385 B
C
24 lines
385 B
C
|
|
/*
|
|||
|
|
* eth_checksum.h
|
|||
|
|
*
|
|||
|
|
* Created on: 13 <EFBFBD><EFBFBD><EFBFBD>. 2023 <EFBFBD>.
|
|||
|
|
* Author: sychev
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#ifndef FREE_RTOS_ETHERNET_ETH_CHECKSUM_H_
|
|||
|
|
#define FREE_RTOS_ETHERNET_ETH_CHECKSUM_H_
|
|||
|
|
|
|||
|
|
#include <stdint.h>
|
|||
|
|
|
|||
|
|
#ifdef __cplusplus
|
|||
|
|
extern "C" {
|
|||
|
|
#endif
|
|||
|
|
|
|||
|
|
uint16_t eth_calcChksum(uint32_t sum, uint8_t * const data, uint16_t len);
|
|||
|
|
|
|||
|
|
#ifdef __cplusplus
|
|||
|
|
}
|
|||
|
|
#endif
|
|||
|
|
|
|||
|
|
#endif /* FREE_RTOS_ETHERNET_ETH_CHECKSUM_H_ */
|