24 lines
401 B
C
24 lines
401 B
C
|
|
/*
|
|||
|
|
* eth_ip_checksum.h
|
|||
|
|
*
|
|||
|
|
* Created on: 14 <EFBFBD><EFBFBD><EFBFBD>. 2023 <EFBFBD>.
|
|||
|
|
* Author: sychev
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#ifndef FREE_RTOS_ETHERNET_IP_ETH_IP_CHECKSUM_H_
|
|||
|
|
#define FREE_RTOS_ETHERNET_IP_ETH_IP_CHECKSUM_H_
|
|||
|
|
|
|||
|
|
#include <stdint.h>
|
|||
|
|
|
|||
|
|
#ifdef __cplusplus
|
|||
|
|
extern "C" {
|
|||
|
|
#endif
|
|||
|
|
|
|||
|
|
uint16_t eth_ip_calcChecksum(uint16_t * const data, uint32_t length);
|
|||
|
|
|
|||
|
|
#ifdef __cplusplus
|
|||
|
|
}
|
|||
|
|
#endif
|
|||
|
|
|
|||
|
|
#endif /* FREE_RTOS_ETHERNET_IP_ETH_IP_CHECKSUM_H_ */
|