> For the complete documentation index, see [llms.txt](https://sdk.twelite.info/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sdk.twelite.info/en/utils-ref/u8ccitt8.md).

# u8CCITT8()

## Explanation

Calculate the CRC8.

## Argument

| Type     | Name      | Remark                                   |
| -------- | --------- | ---------------------------------------- |
| `uint8*` | `pu8Data` | A string of bytes to calculate the CRC8. |
| `unit8`  | `size`    | Number of bytes to calculate.            |

## Returns

| Type    | Remark                        |
| ------- | ----------------------------- |
| `uint8` | The calculated value of CRC8. |

## Sample code

```c
#include "ccitt8.h"

...
char str[] = "abcABCDE";
uint8 u8crc = u8CCITT8(str, strlen(str));
```
