eRPC API Reference  Rev. 1.7.2
NXP Semiconductors
erpc_crc16.h
Go to the documentation of this file.
1 /*
2  * Copyright 2017 NXP
3  * All rights reserved.
4  *
5  *
6  * SPDX-License-Identifier: BSD-3-Clause
7  */
8 
9 #ifndef _EMBEDDED_RPC__CRC16_H_
10 #define _EMBEDDED_RPC__CRC16_H_
11 
12 #include <stdint.h>
13 
20 // Classes
23 
24 namespace erpc {
25 
29 class Crc16
30 {
31 public:
37  Crc16(uint32_t crcStart);
38 
39  Crc16(void);
40 
44  ~Crc16(void);
45 
54  uint16_t computeCRC16(const uint8_t *data, uint32_t lengthInBytes);
55 
61  void setCrcStart(uint32_t crcStart);
62 
63 protected:
64  uint32_t m_crcStart;
65 };
66 
67 } // namespace erpc
68 
71 #endif // _EMBEDDED_RPC__CRC16_H_
~Crc16(void)
Codec destructor.
Definition: erpc_crc16.cpp:27
void setCrcStart(uint32_t crcStart)
Set crc start number.
Definition: erpc_crc16.cpp:52
uint32_t m_crcStart
Definition: erpc_crc16.h:64
Definition: erpc_arbitrated_client_manager.h:25
uint16_t computeCRC16(const uint8_t *data, uint32_t lengthInBytes)
Compute a ITU-CCITT CRC-16 over the provided data.
Definition: erpc_crc16.cpp:29
Class for compute crc16.
Definition: erpc_crc16.h:29