Skip to content

Commit 9677f4f

Browse files
committed
[HAL][SPI] Add note to clarify HAL_SPI_Receive() behavior in master mode
1 parent a5fb3eb commit 9677f4f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Src/stm32f4xx_hal_spi.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -931,6 +931,9 @@ HAL_StatusTypeDef HAL_SPI_Transmit(SPI_HandleTypeDef *hspi, const uint8_t *pData
931931
* @param Size amount of data elements (u8 or u16) to be received
932932
* @param Timeout Timeout duration in ms
933933
* @retval HAL status
934+
* @note In master mode, if the direction is set to SPI_DIRECTION_2LINES
935+
* the receive buffer is written to data register (DR) to generate
936+
* clock pulses and receive data
934937
*/
935938
HAL_StatusTypeDef HAL_SPI_Receive(SPI_HandleTypeDef *hspi, uint8_t *pData, uint16_t Size, uint32_t Timeout)
936939
{

0 commit comments

Comments
 (0)