STM32L486xx HAL User Manual
Functions
Data_Management
CRC Exported Functions

Functions

__STATIC_INLINE void LL_CRC_FeedData32 (CRC_TypeDef *CRCx, uint32_t InData)
 Write given 32-bit data to the CRC calculator.
__STATIC_INLINE void LL_CRC_FeedData16 (CRC_TypeDef *CRCx, uint16_t InData)
 Write given 16-bit data to the CRC calculator.
__STATIC_INLINE void LL_CRC_FeedData8 (CRC_TypeDef *CRCx, uint8_t InData)
 Write given 8-bit data to the CRC calculator.
__STATIC_INLINE uint32_t LL_CRC_ReadData32 (CRC_TypeDef *CRCx)
 Return current CRC calculation result.
__STATIC_INLINE uint16_t LL_CRC_ReadData16 (CRC_TypeDef *CRCx)
 Return current CRC calculation result.
__STATIC_INLINE uint8_t LL_CRC_ReadData8 (CRC_TypeDef *CRCx)
 Return current CRC calculation result.
__STATIC_INLINE uint8_t LL_CRC_ReadData7 (CRC_TypeDef *CRCx)
 Return current CRC calculation result.
__STATIC_INLINE uint32_t LL_CRC_Read_IDR (CRC_TypeDef *CRCx)
 Return data stored in the Independent Data(IDR) register.
__STATIC_INLINE void LL_CRC_Write_IDR (CRC_TypeDef *CRCx, uint32_t InData)
 Store data in the Independent Data(IDR) register.

Function Documentation

__STATIC_INLINE void LL_CRC_FeedData16 ( CRC_TypeDef *  CRCx,
uint16_t  InData 
)

Write given 16-bit data to the CRC calculator.

Reference Manual to LL API cross reference:
DR DR LL_CRC_FeedData16
Parameters:
CRCxCRC Instance
InData16 bit value to be provided to CRC calculator between between Min_Data=0 and Max_Data=0xFFFF
Return values:
None

Definition at line 353 of file stm32l4xx_ll_crc.h.

__STATIC_INLINE void LL_CRC_FeedData32 ( CRC_TypeDef *  CRCx,
uint32_t  InData 
)

Write given 32-bit data to the CRC calculator.

Reference Manual to LL API cross reference:
DR DR LL_CRC_FeedData32
Parameters:
CRCxCRC Instance
InDatavalue to be provided to CRC calculator between between Min_Data=0 and Max_Data=0xFFFFFFFF
Return values:
None

Definition at line 341 of file stm32l4xx_ll_crc.h.

__STATIC_INLINE void LL_CRC_FeedData8 ( CRC_TypeDef *  CRCx,
uint8_t  InData 
)

Write given 8-bit data to the CRC calculator.

Reference Manual to LL API cross reference:
DR DR LL_CRC_FeedData8
Parameters:
CRCxCRC Instance
InData8 bit value to be provided to CRC calculator between between Min_Data=0 and Max_Data=0xFF
Return values:
None

Definition at line 368 of file stm32l4xx_ll_crc.h.

__STATIC_INLINE uint32_t LL_CRC_Read_IDR ( CRC_TypeDef *  CRCx)

Return data stored in the Independent Data(IDR) register.

Note:
This register can be used as a temporary storage location.
Refer to the Reference Manual to get the authorized data length in bits.
Reference Manual to LL API cross reference:
IDR IDR LL_CRC_Read_IDR
Parameters:
CRCxCRC Instance
Return values:
Valuestored in CRC_IDR register

Definition at line 428 of file stm32l4xx_ll_crc.h.

__STATIC_INLINE uint16_t LL_CRC_ReadData16 ( CRC_TypeDef *  CRCx)

Return current CRC calculation result.

16 bits value is returned.

Note:
This function is expected to be used in a 16 bits CRC polynomial size context.
Reference Manual to LL API cross reference:
DR DR LL_CRC_ReadData16
Parameters:
CRCxCRC Instance
Return values:
CurrentCRC calculation result as stored in CRC_DR register (16 bits).

Definition at line 391 of file stm32l4xx_ll_crc.h.

__STATIC_INLINE uint32_t LL_CRC_ReadData32 ( CRC_TypeDef *  CRCx)

Return current CRC calculation result.

32 bits value is returned.

Reference Manual to LL API cross reference:
DR DR LL_CRC_ReadData32
Parameters:
CRCxCRC Instance
Return values:
CurrentCRC calculation result as stored in CRC_DR register (32 bits).

Definition at line 379 of file stm32l4xx_ll_crc.h.

__STATIC_INLINE uint8_t LL_CRC_ReadData7 ( CRC_TypeDef *  CRCx)

Return current CRC calculation result.

7 bits value is returned.

Note:
This function is expected to be used in a 7 bits CRC polynomial size context.
Reference Manual to LL API cross reference:
DR DR LL_CRC_ReadData7
Parameters:
CRCxCRC Instance
Return values:
CurrentCRC calculation result as stored in CRC_DR register (7 bits).

Definition at line 415 of file stm32l4xx_ll_crc.h.

__STATIC_INLINE uint8_t LL_CRC_ReadData8 ( CRC_TypeDef *  CRCx)

Return current CRC calculation result.

8 bits value is returned.

Note:
This function is expected to be used in a 8 bits CRC polynomial size context.
Reference Manual to LL API cross reference:
DR DR LL_CRC_ReadData8
Parameters:
CRCxCRC Instance
Return values:
CurrentCRC calculation result as stored in CRC_DR register (8 bits).

Definition at line 403 of file stm32l4xx_ll_crc.h.

__STATIC_INLINE void LL_CRC_Write_IDR ( CRC_TypeDef *  CRCx,
uint32_t  InData 
)

Store data in the Independent Data(IDR) register.

Note:
This register can be used as a temporary storage location.
Refer to the Reference Manual to get the authorized data length in bits.
Reference Manual to LL API cross reference:
IDR IDR LL_CRC_Write_IDR
Parameters:
CRCxCRC Instance
InDatavalue to be stored in CRC_IDR register
Return values:
None

Definition at line 442 of file stm32l4xx_ll_crc.h.