Contains all functions support for crc firmware library on A31L12x. More...
Go to the source code of this file.
Functions | |
HAL_Status_Type | HAL_CRC_Init (void) |
Initialize CRC/Checksum peripheral. More... | |
HAL_Status_Type | HAL_CRC_DeInit (void) |
DeInitialize CRC peripheral. More... | |
HAL_Status_Type | HAL_CRC_SetAddress (uint32_t u32SAdr, uint32_t u32EAdr, uint32_t u32IniD) |
Set CRC/Checksum Address. More... | |
uint32_t | HAL_CRC_ConfigAutoMode (uint32_t MDSEL, uint32_t u32POLY, uint32_t u32FirstBit, uint32_t InputDataSize, uint32_t InputDataComplement) |
CRC/Checksum Auto Mode Start and Result. More... | |
HAL_Status_Type | HAL_CRC_ConfigUserMode (uint32_t MDSEL, uint32_t u32POLY, uint32_t u32AdrInc, uint32_t u32FirstBit, uint32_t InputDataSize, uint32_t InputDataComplement) |
CRC/Checksum User Mode Start. More... | |
uint32_t | HAL_CRC_UserInput (uint32_t u32Input) |
CRC/Checksum Input on User Mode. More... | |
Contains all functions support for crc firmware library on A31L12x.
Copyright(C) 2019, ABOV Semiconductor All rights reserved.
ABOV Disclaimer
IMPORTANT NOTICE ? PLEASE READ CAREFULLY ABOV Semiconductor ("ABOV") reserves the right to make changes, corrections, enhancements, modifications, and improvements to ABOV products and/or to this document at any time without notice. ABOV does not give warranties as to the accuracy or completeness of the information included herein. Purchasers should obtain the latest relevant information of ABOV products before placing orders. Purchasers are entirely responsible for the choice, selection, and use of ABOV products and ABOV assumes no liability for application assistance or the design of purchasers' products. No license, express or implied, to any intellectual property rights is granted by ABOV herein. ABOV disclaims all express and implied warranties and shall not be responsible or liable for any injuries or damages related to use of ABOV products in such unauthorized applications. ABOV and the ABOV logo are trademarks of ABOV. All other product or service names are the property of their respective owners. Information in this document supersedes and replaces the information previously supplied in any former versions of this document. 2020 ABOV Semiconductor All rights reserved
Definition in file A31L12x_hal_crc.c.
uint32_t HAL_CRC_ConfigAutoMode | ( | uint32_t | MDSEL, |
uint32_t | u32POLY, | ||
uint32_t | u32FirstBit, | ||
uint32_t | InputDataSize, | ||
uint32_t | InputDataComplement | ||
) |
CRC/Checksum Auto Mode Start and Result.
[in] | MDSEL | CRC/Checksum Selection
|
[in] | u32POLY | CRC Polynomial Selection (CRC only)
|
[in] | u32FirstBit | CRC 1st Shifted-in bit
|
[in] | InputDataSize | Input Data Size
|
[in] | InputDataComplement | Input Data Complement
|
This function starts CRC/Checksum calculation and gets result
Definition at line 129 of file A31L12x_hal_crc.c.
HAL_Status_Type HAL_CRC_ConfigUserMode | ( | uint32_t | MDSEL, |
uint32_t | u32POLY, | ||
uint32_t | u32AdrInc, | ||
uint32_t | u32FirstBit, | ||
uint32_t | InputDataSize, | ||
uint32_t | InputDataComplement | ||
) |
CRC/Checksum User Mode Start.
[in] | MDSEL | CRC/Checksum Selection
|
[in] | u32POLY | CRC Polynomial Selection (CRC only)
|
[in] | u32AdrInc | Auto Increment of Start Address
|
[in] | u32FirstBit | CRC 1st Shifted-in bit
|
[in] | InputDataSize | Input Data Size
|
[in] | InputDataComplement | Input Data Complement
|
This function sets the control register for CRC/Checksum User mode
Definition at line 217 of file A31L12x_hal_crc.c.
References HAL_OK.
HAL_Status_Type HAL_CRC_DeInit | ( | void | ) |
DeInitialize CRC peripheral.
None |
Definition at line 67 of file A31L12x_hal_crc.c.
References HAL_OK, HAL_SCU_Peripheral_EnableClock2(), and HAL_SCU_Peripheral_SetReset2().
HAL_Status_Type HAL_CRC_Init | ( | void | ) |
Initialize CRC/Checksum peripheral.
None |
Definition at line 53 of file A31L12x_hal_crc.c.
References HAL_OK, and HAL_SCU_Peripheral_EnableClock2().
HAL_Status_Type HAL_CRC_SetAddress | ( | uint32_t | u32SAdr, |
uint32_t | u32EAdr, | ||
uint32_t | u32IniD | ||
) |
Set CRC/Checksum Address.
[in] | u32SAdr | CRC/Checksum Start Address
|
[in] | u32EAdr | CRC/Checksum End Address
|
[in] | u32IniD | CRC/Checksum Initial Data |
This function sets the start/end address for range and initial data for calculation
Definition at line 90 of file A31L12x_hal_crc.c.
References HAL_OK.
uint32_t HAL_CRC_UserInput | ( | uint32_t | u32Input | ) |
CRC/Checksum Input on User Mode.
[in] | u32Input | CRC/Checksum Input |
This function calculates up to finish. The CRC_SADR register should be incremented by 4 every input on SARINC_Disable
Definition at line 244 of file A31L12x_hal_crc.c.