CRC abstraction.
More...
#include <hash.hpp>
|
static bool | init () |
| Init function. More...
|
|
static bool | deinit () |
| Deinit function. More...
|
|
static u8 | getCRC8 (const auto &data, u8 initValue=0x00, u8 polynomial=0xD5) noexcept |
| Hardware accelerated CRC8 caluclation. More...
|
|
static u16 | getCRC16 (const auto &data, u16 initValue=0x00, u16 polynomial=0x8005) noexcept |
| Hardware accelerated CRC16 caluclation. More...
|
|
static u32 | getCRC32 (const auto &data, u32 initValue=0x00, u32 polynomial=0x04C11DB7) noexcept |
| Hardware accelerated CRC32 caluclation. More...
|
|
template<addr_t BaseAddress>
struct bsp::mid::drv::Hash< BaseAddress >
CRC abstraction.
- Template Parameters
-
BaseAddress | CRC Peripheral base address |
◆ Hash() [1/2]
template<addr_t BaseAddress>
◆ Hash() [2/2]
template<addr_t BaseAddress>
◆ deinit()
template<addr_t BaseAddress>
Deinit function.
- Returns
- Success
◆ getCRC16()
template<addr_t BaseAddress>
Hardware accelerated CRC16 caluclation.
- Parameters
-
data | Data to calculate CRC of |
initValue | Start value |
polynomial | Used polynomial |
◆ getCRC32()
template<addr_t BaseAddress>
Hardware accelerated CRC32 caluclation.
- Parameters
-
data | Data to calculate CRC of |
initValue | Start value |
polynomial | Used polynomial |
◆ getCRC8()
template<addr_t BaseAddress>
Hardware accelerated CRC8 caluclation.
- Parameters
-
data | Data to calculate CRC of |
initValue | Start value |
polynomial | Used polynomial |
◆ init()
template<addr_t BaseAddress>
Init function.
- Returns
- Success
◆ operator=()
template<addr_t BaseAddress>
The documentation for this struct was generated from the following file: