| eRPC API Reference Rev. 1.8.1 NXP Semiconductors

- Main Page
- API Reference
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Protected Attributes | List of all members
erpc::Crc16 Class Reference

Class for compute crc16. More...

`#include <erpc_crc16.h>`

## Public Member Functions
| Crc16 (uint32_t crcStart)
| Constructor. More...
| Crc16 (void)
| Constructor.
| ~Crc16 (void)
| Crc16 destructor.
uint16_t | computeCRC16 (const uint8_t *data, uint32_t lengthInBytes)
| Compute a ITU-CCITT CRC-16 over the provided data. More...
void | setCrcStart (uint32_t crcStart)
| Set crc start number. More...

## Protected Attributes
uint32_t | m_crcStart

## Detailed Description

Class for compute crc16.

## Constructor & Destructor Documentation

Crc16::Crc16 | ( | uint32_t | crcStart | ) |

Constructor.

Parameters

  [in] | crcStart | Start value for crc function.

## Member Function Documentation

uint16_t Crc16::computeCRC16 | ( | const uint8_t * | data,
|  | uint32_t | lengthInBytes
| ) |  |

Compute a ITU-CCITT CRC-16 over the provided data.

This implementation is slow but small in size.

Parameters

  [in] | data | Pointer to data used for crc16.
  [in] | lengthInBytes | Data length.

void Crc16::setCrcStart | ( | uint32_t | crcStart | ) |

Set crc start number.

Parameters

  [in] | crcStart | Crc start number.

## Member Data Documentation

uint32_t erpc::Crc16::m_crcStart
| protected

CRC start number.

The documentation for this class was generated from the following files:

- erpc_crc16.h
- erpc_crc16.cpp