STM32H735xx HAL User Manual
Defines
PSSI Exported Macros
PSSI

Defines

#define HAL_PSSI_RESET_HANDLE_STATE(__HANDLE__)
 Reset PSSI handle state.
#define HAL_PSSI_ENABLE(__HANDLE__)   ((__HANDLE__)->Instance->CR |= PSSI_CR_ENABLE)
 Enable the PSSI.
#define HAL_PSSI_DISABLE(__HANDLE__)   ((__HANDLE__)->Instance->CR &= (~PSSI_CR_ENABLE))
 Disable the PSSI.
#define HAL_PSSI_GET_STATUS(__HANDLE__, __FLAG__)   ((__HANDLE__)->Instance->SR & (__FLAG__))
 Get the PSSI pending flags.
#define HAL_PSSI_GET_FLAG(__HANDLE__, __FLAG__)   ((__HANDLE__)->Instance->RIS & (__FLAG__))
 Get the PSSI pending flags.
#define HAL_PSSI_CLEAR_FLAG(__HANDLE__, __FLAG__)   ((__HANDLE__)->Instance->ICR = (__FLAG__))
 Clear the PSSI pending flags.
#define HAL_PSSI_ENABLE_IT(__HANDLE__, __INTERRUPT__)   ((__HANDLE__)->Instance->IER |= (__INTERRUPT__))
 Enable the specified PSSI interrupts.
#define HAL_PSSI_DISABLE_IT(__HANDLE__, __INTERRUPT__)   ((__HANDLE__)->Instance->IER &= ~(__INTERRUPT__))
 Disable the specified PSSI interrupts.
#define HAL_PSSI_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__)   ((__HANDLE__)->Instance->IER & (__INTERRUPT__))
 Check whether the specified PSSI interrupt source is enabled or not.
#define IS_PSSI_CONTROL_SIGNAL(__CONTROL__)
 Check whether the PSSI Control signal is valid.
#define IS_PSSI_BUSWIDTH(__BUSWIDTH__)
 Check whether the PSSI Bus Width is valid.
#define IS_PSSI_CLOCK_POLARITY(__CLOCKPOL__)
 Check whether the PSSI Clock Polarity is valid.
#define IS_PSSI_DE_POLARITY(__DEPOL__)
 Check whether the PSSI Data Enable Polarity is valid.
#define IS_PSSI_RDY_POLARITY(__RDYPOL__)
 Check whether the PSSI Ready Polarity is valid.

Define Documentation

#define HAL_PSSI_CLEAR_FLAG (   __HANDLE__,
  __FLAG__ 
)    ((__HANDLE__)->Instance->ICR = (__FLAG__))

Clear the PSSI pending flags.

Parameters:
__HANDLE__PSSI handle
__FLAG__specifies the flag to clear. This parameter can be any combination of the following values:
  • PSSI_FLAG_OVR_RIS: Data Buffer overrun/underrun error flag
Return values:
None

Definition at line 328 of file stm32h7xx_hal_pssi.h.

Referenced by HAL_PSSI_Receive(), and HAL_PSSI_Transmit().

#define HAL_PSSI_DISABLE (   __HANDLE__)    ((__HANDLE__)->Instance->CR &= (~PSSI_CR_ENABLE))

Disable the PSSI.

Parameters:
__HANDLE__PSSI handle
Return values:
None.

Definition at line 292 of file stm32h7xx_hal_pssi.h.

Referenced by HAL_PSSI_DeInit(), HAL_PSSI_Init(), HAL_PSSI_Receive(), HAL_PSSI_Receive_DMA(), HAL_PSSI_Transmit(), HAL_PSSI_Transmit_DMA(), and PSSI_DMAError().

#define HAL_PSSI_DISABLE_IT (   __HANDLE__,
  __INTERRUPT__ 
)    ((__HANDLE__)->Instance->IER &= ~(__INTERRUPT__))

Disable the specified PSSI interrupts.

Parameters:
__HANDLE__PSSI handle
__INTERRUPT__specifies the PSSI interrupt sources to be disabled. This parameter can be any combination of the following values:
  • PSSI_IT_OVR_IE: Configuration error mask
Return values:
None

Definition at line 348 of file stm32h7xx_hal_pssi.h.

Referenced by HAL_PSSI_Abort_DMA(), HAL_PSSI_IRQHandler(), PSSI_DMAError(), PSSI_DMAReceiveCplt(), PSSI_DMATransmitCplt(), and PSSI_Error().

#define HAL_PSSI_ENABLE (   __HANDLE__)    ((__HANDLE__)->Instance->CR |= PSSI_CR_ENABLE)

Enable the PSSI.

Parameters:
__HANDLE__PSSI handle
Return values:
None.

Definition at line 286 of file stm32h7xx_hal_pssi.h.

Referenced by HAL_PSSI_Receive(), HAL_PSSI_Receive_DMA(), HAL_PSSI_Transmit(), and HAL_PSSI_Transmit_DMA().

#define HAL_PSSI_ENABLE_IT (   __HANDLE__,
  __INTERRUPT__ 
)    ((__HANDLE__)->Instance->IER |= (__INTERRUPT__))

Enable the specified PSSI interrupts.

Parameters:
__HANDLE__PSSI handle
__INTERRUPT__specifies the PSSI interrupt sources to be enabled. This parameter can be any combination of the following values:
  • PSSI_FLAG_OVR_RIS: Configuration error mask
Return values:
None

Definition at line 338 of file stm32h7xx_hal_pssi.h.

Referenced by HAL_PSSI_Abort_DMA(), HAL_PSSI_Receive_DMA(), and HAL_PSSI_Transmit_DMA().

#define HAL_PSSI_GET_FLAG (   __HANDLE__,
  __FLAG__ 
)    ((__HANDLE__)->Instance->RIS & (__FLAG__))

Get the PSSI pending flags.

Parameters:
__HANDLE__PSSI handle
__FLAG__flag to check. This parameter can be any combination of the following values:
  • PSSI_FLAG_OVR_RIS: Data Buffer overrun/underrun error flag
Return values:
Thestate of FLAG.

Definition at line 318 of file stm32h7xx_hal_pssi.h.

Referenced by HAL_PSSI_IRQHandler(), HAL_PSSI_Receive(), and HAL_PSSI_Transmit().

#define HAL_PSSI_GET_IT_SOURCE (   __HANDLE__,
  __INTERRUPT__ 
)    ((__HANDLE__)->Instance->IER & (__INTERRUPT__))

Check whether the specified PSSI interrupt source is enabled or not.

Parameters:
__HANDLE__PSSI handle
__INTERRUPT__specifies the PSSI interrupt source to check. This parameter can be one of the following values:
  • PSSI_IT_OVR_IE: Data Buffer overrun/underrun error interrupt mask
Return values:
Thestate of INTERRUPT source.

Definition at line 358 of file stm32h7xx_hal_pssi.h.

#define HAL_PSSI_GET_STATUS (   __HANDLE__,
  __FLAG__ 
)    ((__HANDLE__)->Instance->SR & (__FLAG__))

Get the PSSI pending flags.

Parameters:
__HANDLE__PSSI handle
__FLAG__flag to check. This parameter can be any combination of the following values:
  • PSSI_FLAG_RTT1B: FIFO is ready to transfer one byte
  • PSSI_FLAG_RTT4B: FIFO is ready to transfer four bytes
Return values:
Thestate of FLAG.

Definition at line 305 of file stm32h7xx_hal_pssi.h.

Referenced by PSSI_WaitOnStatusUntilTimeout().

#define HAL_PSSI_RESET_HANDLE_STATE (   __HANDLE__)
Value:
do{                                            \
                                                      (__HANDLE__)->State = HAL_PSSI_STATE_RESET;\
                                                      (__HANDLE__)->MspInitCallback = NULL;       \
                                                      (__HANDLE__)->MspDeInitCallback = NULL;     \
                                                     }while(0)

Reset PSSI handle state.

Parameters:
__HANDLE__specifies the PSSI handle.
Return values:
None

Definition at line 274 of file stm32h7xx_hal_pssi.h.

#define IS_PSSI_BUSWIDTH (   __BUSWIDTH__)
Value:
(((__BUSWIDTH__) == HAL_PSSI_8LINES    ) || \
                                        ((__BUSWIDTH__) == HAL_PSSI_16LINES   ))

Check whether the PSSI Bus Width is valid.

Parameters:
__BUSWIDTH__PSSI Bush width
Return values:
Validor not.

Definition at line 380 of file stm32h7xx_hal_pssi.h.

Referenced by HAL_PSSI_Init().

#define IS_PSSI_CLOCK_POLARITY (   __CLOCKPOL__)
Value:
(((__CLOCKPOL__) == HAL_PSSI_FALLING_EDGE   ) || \
                                              ((__CLOCKPOL__) == HAL_PSSI_RISING_EDGE    ))

Check whether the PSSI Clock Polarity is valid.

Parameters:
__CLOCKPOL__PSSI Clock Polarity
Return values:
Validor not.

Definition at line 389 of file stm32h7xx_hal_pssi.h.

Referenced by HAL_PSSI_Init().

#define IS_PSSI_CONTROL_SIGNAL (   __CONTROL__)
Value:
(((__CONTROL__) == HAL_PSSI_DE_RDY_DISABLE        ) || \
                                             ((__CONTROL__) == HAL_PSSI_RDY_ENABLE            ) || \
                                             ((__CONTROL__) == HAL_PSSI_DE_ENABLE             ) || \
                                             ((__CONTROL__) == HAL_PSSI_DE_RDY_ALT_ENABLE     ) || \
                                             ((__CONTROL__) == HAL_PSSI_MAP_RDY_BIDIR_ENABLE  ) || \
                                             ((__CONTROL__) == HAL_PSSI_RDY_MAP_ENABLE        ) || \
                                             ((__CONTROL__) == HAL_PSSI_DE_MAP_ENABLE         ) || \
                                             ((__CONTROL__) == HAL_PSSI_MAP_DE_BIDIR_ENABLE   ))

Check whether the PSSI Control signal is valid.

Parameters:
__CONTROL__Control signals configuration
Return values:
Validor not.

Definition at line 366 of file stm32h7xx_hal_pssi.h.

Referenced by HAL_PSSI_Init().

#define IS_PSSI_DE_POLARITY (   __DEPOL__)
Value:
(((__DEPOL__) == HAL_PSSI_DEPOL_ACTIVE_LOW    ) || \
                                        ((__DEPOL__) == HAL_PSSI_DEPOL_ACTIVE_HIGH   ))

Check whether the PSSI Data Enable Polarity is valid.

Parameters:
__DEPOL__PSSI DE Polarity
Return values:
Validor not.

Definition at line 397 of file stm32h7xx_hal_pssi.h.

Referenced by HAL_PSSI_Init().

#define IS_PSSI_RDY_POLARITY (   __RDYPOL__)
Value:
(((__RDYPOL__) == HAL_PSSI_RDYPOL_ACTIVE_LOW   ) || \
                                         ((__RDYPOL__) == HAL_PSSI_RDYPOL_ACTIVE_HIGH   ))

Check whether the PSSI Ready Polarity is valid.

Parameters:
__RDYPOL__PSSI RDY Polarity
Return values:
Validor not.

Definition at line 405 of file stm32h7xx_hal_pssi.h.

Referenced by HAL_PSSI_Init().