PER Firmware
Loading...
Searching...
No Matches
crc_priv.c File Reference

STM32G4 CRC register-level implementation. More...

Include dependency graph for crc_priv.c:

Functions

void CRC_PRIV_enableClock (void)
 Enable the CRC peripheral clock on AHB1.
 
void CRC_PRIV_setConfig (void)
 Configure the polynomial, size, and initial value for CRC-32/MPEG-2.
 
void CRC_PRIV_reset (void)
 Reset the CRC unit, reloading the initial value into the data register.
 
void CRC_PRIV_feedWord (uint32_t word)
 Feed one 32-bit word into the CRC data register.
 
uint32_t CRC_PRIV_readResult (void)
 Read the accumulated CRC result from the data register.
 

Detailed Description

STM32G4 CRC register-level implementation.

Author
Hannah Song (song8.nosp@m.92@p.nosp@m.urdue.nosp@m..edu)

Function Documentation

◆ CRC_PRIV_enableClock()

void CRC_PRIV_enableClock ( void )

Enable the CRC peripheral clock on AHB1.

Here is the caller graph for this function:

◆ CRC_PRIV_feedWord()

void CRC_PRIV_feedWord ( uint32_t word)

Feed one 32-bit word into the CRC data register.

Here is the caller graph for this function:

◆ CRC_PRIV_readResult()

uint32_t CRC_PRIV_readResult ( void )

Read the accumulated CRC result from the data register.

Here is the caller graph for this function:

◆ CRC_PRIV_reset()

void CRC_PRIV_reset ( void )

Reset the CRC unit, reloading the initial value into the data register.

Here is the caller graph for this function:

◆ CRC_PRIV_setConfig()

void CRC_PRIV_setConfig ( void )

Configure the polynomial, size, and initial value for CRC-32/MPEG-2.

Here is the caller graph for this function: