embkernel
 All Classes Functions Variables Typedefs Groups Pages
NetChecksum.hpp
1 //------------------------------------------------------------------------------
2 //This file is part of embKernel.
3 //See license.txt for the full license governing this code.
4 //------------------------------------------------------------------------------
5 
6 #ifndef NET_CHECKSUM_HPP_
7 #define NET_CHECKSUM_HPP_
8 
9 #include <stdint.h>
10 
11 class NetChecksum {
12 public:
13  static uint32_t calcPartialChecksum(uint8_t* pBuffer, uint16_t len);
14  static uint16_t finalizeCheckSum(uint32_t tempCheckSum);
15 };
16 
17 #endif /* NET_CHECKSUM_HPP_ */