L4 HAL Drivers

Embed: (wiki syntax)

« Back to documentation index

Data_Management

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 DR DR LL_CRC_FeedData32.
__STATIC_INLINE void LL_CRC_FeedData16 (CRC_TypeDef *CRCx, uint16_t InData)
 Write given 16-bit data to the CRC calculator DR DR LL_CRC_FeedData16.
__STATIC_INLINE void LL_CRC_FeedData8 (CRC_TypeDef *CRCx, uint8_t InData)
 Write given 8-bit data to the CRC calculator DR DR LL_CRC_FeedData8.
__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 DR DR LL_CRC_FeedData16.

Parameters:
CRCxCRC Instance
InData0 .. 0xFFFF : 16 bit value to be provided to CRC calculator.
Return values:
None

Definition at line 357 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 DR DR LL_CRC_FeedData32.

Parameters:
CRCxCRC Instance
InData0 .. 0xFFFFFFFF : Value to be provided to CRC calculator.
Return values:
None

Definition at line 345 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 DR DR LL_CRC_FeedData8.

Parameters:
CRCxCRC Instance
InData0 .. 0xFF : 8 bit value to be provided to CRC calculator.
Return values:
None

Definition at line 369 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 for one byte. IDR IDR LL_CRC_Read_IDR
Parameters:
CRCxCRC Instance
Return values:
Valuestored in CRC_IDR register (General-purpose 8-bit data register).

Definition at line 430 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. DR DR LL_CRC_ReadData16
Parameters:
CRCxCRC Instance
Return values:
CurrentCRC calculation result as stored in CRC_DR register (16 bits).

Definition at line 392 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. DR DR LL_CRC_ReadData32

Parameters:
CRCxCRC Instance
Return values:
CurrentCRC calculation result as stored in CRC_DR register (32 bits).

Definition at line 380 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. DR DR LL_CRC_ReadData7
Parameters:
CRCxCRC Instance
Return values:
CurrentCRC calculation result as stored in CRC_DR register (7 bits).

Definition at line 417 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. DR DR LL_CRC_ReadData8
Parameters:
CRCxCRC Instance
Return values:
CurrentCRC calculation result as stored in CRC_DR register (8 bits).

Definition at line 405 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 for one byte. IDR IDR LL_CRC_Write_IDR
Parameters:
CRCxCRC Instance
InData0 .. 0xFF : Value to be stored in CRC_IDR register (General-purpose 8-bit data register).
Return values:
None

Definition at line 444 of file stm32l4xx_ll_crc.h.