Rev 2 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2 | Rev 6 | ||
|---|---|---|---|
| Line 460... | Line 460... | ||
| 460 | /** @defgroup I2S_Private_Macros I2S Private Macros |
460 | /** @defgroup I2S_Private_Macros I2S Private Macros |
| 461 | * @{ |
461 | * @{ |
| 462 | */ |
462 | */ |
| 463 | 463 | ||
| 464 | /** @brief Check whether the specified SPI flag is set or not. |
464 | /** @brief Check whether the specified SPI flag is set or not. |
| 465 | * @param __SR__ copy of I2S SR regsiter. |
465 | * @param __SR__ copy of I2S SR register. |
| 466 | * @param __FLAG__ specifies the flag to check. |
466 | * @param __FLAG__ specifies the flag to check. |
| 467 | * This parameter can be one of the following values: |
467 | * This parameter can be one of the following values: |
| 468 | * @arg I2S_FLAG_RXNE: Receive buffer not empty flag |
468 | * @arg I2S_FLAG_RXNE: Receive buffer not empty flag |
| 469 | * @arg I2S_FLAG_TXE: Transmit buffer empty flag |
469 | * @arg I2S_FLAG_TXE: Transmit buffer empty flag |
| 470 | * @arg I2S_FLAG_UDR: Underrun error flag |
470 | * @arg I2S_FLAG_UDR: Underrun error flag |
| Line 475... | Line 475... | ||
| 475 | */ |
475 | */ |
| 476 | #define I2S_CHECK_FLAG(__SR__, __FLAG__) ((((__SR__)\ |
476 | #define I2S_CHECK_FLAG(__SR__, __FLAG__) ((((__SR__)\ |
| 477 | & ((__FLAG__) & I2S_FLAG_MASK)) == ((__FLAG__) & I2S_FLAG_MASK)) ? SET : RESET) |
477 | & ((__FLAG__) & I2S_FLAG_MASK)) == ((__FLAG__) & I2S_FLAG_MASK)) ? SET : RESET) |
| 478 | 478 | ||
| 479 | /** @brief Check whether the specified SPI Interrupt is set or not. |
479 | /** @brief Check whether the specified SPI Interrupt is set or not. |
| 480 | * @param __CR2__ copy of I2S CR2 regsiter. |
480 | * @param __CR2__ copy of I2S CR2 register. |
| 481 | * @param __INTERRUPT__ specifies the SPI interrupt source to check. |
481 | * @param __INTERRUPT__ specifies the SPI interrupt source to check. |
| 482 | * This parameter can be one of the following values: |
482 | * This parameter can be one of the following values: |
| 483 | * @arg I2S_IT_TXE: Tx buffer empty interrupt enable |
483 | * @arg I2S_IT_TXE: Tx buffer empty interrupt enable |
| 484 | * @arg I2S_IT_RXNE: RX buffer not empty interrupt enable |
484 | * @arg I2S_IT_RXNE: RX buffer not empty interrupt enable |
| 485 | * @arg I2S_IT_ERR: Error interrupt enable |
485 | * @arg I2S_IT_ERR: Error interrupt enable |