Rev 56 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 56 | Rev 61 | ||
---|---|---|---|
Line 1080... | Line 1080... | ||
1080 | * @param SPIx SPI Instance |
1080 | * @param SPIx SPI Instance |
1081 | * @retval RxData Value between Min_Data=0x00 and Max_Data=0xFF |
1081 | * @retval RxData Value between Min_Data=0x00 and Max_Data=0xFF |
1082 | */ |
1082 | */ |
1083 | __STATIC_INLINE uint8_t LL_SPI_ReceiveData8(SPI_TypeDef *SPIx) |
1083 | __STATIC_INLINE uint8_t LL_SPI_ReceiveData8(SPI_TypeDef *SPIx) |
1084 | { |
1084 | { |
1085 | return (uint8_t)(READ_REG(SPIx->DR)); |
1085 | return (*((__IO uint8_t *)&SPIx->DR)); |
1086 | } |
1086 | } |
1087 | 1087 | ||
1088 | /** |
1088 | /** |
1089 | * @brief Read 16-Bits in the data register |
1089 | * @brief Read 16-Bits in the data register |
1090 | * @rmtoll DR DR LL_SPI_ReceiveData16 |
1090 | * @rmtoll DR DR LL_SPI_ReceiveData16 |