RTEMS 6.1-rc1
|
Macros | |
#define | __HAL_SWPMI_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_SWPMI_STATE_RESET) |
Reset SWPMI handle state. More... | |
#define | __HAL_SWPMI_ENABLE(__HANDLE__) SET_BIT((__HANDLE__)->Instance->CR, SWPMI_CR_SWPACT) |
Enable the SWPMI peripheral. More... | |
#define | __HAL_SWPMI_DISABLE(__HANDLE__) CLEAR_BIT((__HANDLE__)->Instance->CR, SWPMI_CR_SWPACT) |
Disable the SWPMI peripheral. More... | |
#define | __HAL_SWPMI_TRANSCEIVER_ENABLE(__HANDLE__) SET_BIT((__HANDLE__)->Instance->CR, SWPMI_CR_SWPEN) |
Enable the SWPMI transceiver. More... | |
#define | __HAL_SWPMI_TRANSCEIVER_DISABLE(__HANDLE__) CLEAR_BIT((__HANDLE__)->Instance->CR, SWPMI_CR_SWPEN) |
Disable the SWPMI transceiver. More... | |
#define | __HAL_SWPMI_GET_FLAG(__HANDLE__, __FLAG__) (READ_BIT((__HANDLE__)->Instance->ISR, (__FLAG__)) == (__FLAG__)) |
Check whether the specified SWPMI flag is set or not. More... | |
#define | __HAL_SWPMI_CLEAR_FLAG(__HANDLE__, __FLAG__) WRITE_REG((__HANDLE__)->Instance->ICR, (__FLAG__)) |
Clear the specified SWPMI ISR flag. More... | |
#define | __HAL_SWPMI_ENABLE_IT(__HANDLE__, __INTERRUPT__) SET_BIT((__HANDLE__)->Instance->IER, (__INTERRUPT__)) |
Enable the specified SWPMI interrupt. More... | |
#define | __HAL_SWPMI_DISABLE_IT(__HANDLE__, __INTERRUPT__) CLEAR_BIT((__HANDLE__)->Instance->IER, (__INTERRUPT__)) |
Disable the specified SWPMI interrupt. More... | |
#define | __HAL_SWPMI_GET_IT(__HANDLE__, __IT__) (READ_BIT((__HANDLE__)->Instance->ISR,(__IT__)) == (__IT__)) |
Check whether the specified SWPMI interrupt has occurred or not. More... | |
#define | __HAL_SWPMI_GET_IT_SOURCE(__HANDLE__, __IT__) ((READ_BIT((__HANDLE__)->Instance->IER, (__IT__)) == (__IT__)) ? SET : RESET) |
Check whether the specified SWPMI interrupt source is enabled or not. More... | |
#define __HAL_SWPMI_CLEAR_FLAG | ( | __HANDLE__, | |
__FLAG__ | |||
) | WRITE_REG((__HANDLE__)->Instance->ICR, (__FLAG__)) |
Clear the specified SWPMI ISR flag.
__HANDLE__ | specifies the SWPMI Handle. |
__FLAG__ | specifies the flag to clear. This parameter can be one of the following values:
|
None |
#define __HAL_SWPMI_DISABLE | ( | __HANDLE__ | ) | CLEAR_BIT((__HANDLE__)->Instance->CR, SWPMI_CR_SWPACT) |
Disable the SWPMI peripheral.
__HANDLE__ | SWPMI handle |
None |
#define __HAL_SWPMI_DISABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | CLEAR_BIT((__HANDLE__)->Instance->IER, (__INTERRUPT__)) |
Disable the specified SWPMI interrupt.
__HANDLE__ | specifies the SWPMI Handle. |
__INTERRUPT__ | specifies the SWPMI interrupt source to disable. This parameter can be one of the following values:
|
None |
#define __HAL_SWPMI_ENABLE | ( | __HANDLE__ | ) | SET_BIT((__HANDLE__)->Instance->CR, SWPMI_CR_SWPACT) |
Enable the SWPMI peripheral.
__HANDLE__ | SWPMI handle |
None |
#define __HAL_SWPMI_ENABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | SET_BIT((__HANDLE__)->Instance->IER, (__INTERRUPT__)) |
Enable the specified SWPMI interrupt.
__HANDLE__ | specifies the SWPMI Handle. |
__INTERRUPT__ | specifies the SWPMI interrupt source to enable. This parameter can be one of the following values:
|
None |
#define __HAL_SWPMI_GET_FLAG | ( | __HANDLE__, | |
__FLAG__ | |||
) | (READ_BIT((__HANDLE__)->Instance->ISR, (__FLAG__)) == (__FLAG__)) |
Check whether the specified SWPMI flag is set or not.
__HANDLE__ | specifies the SWPMI Handle. |
__FLAG__ | specifies the flag to check. This parameter can be one of the following values:
|
The | new state of FLAG (TRUE or FALSE). |
#define __HAL_SWPMI_GET_IT | ( | __HANDLE__, | |
__IT__ | |||
) | (READ_BIT((__HANDLE__)->Instance->ISR,(__IT__)) == (__IT__)) |
Check whether the specified SWPMI interrupt has occurred or not.
__HANDLE__ | specifies the SWPMI Handle. |
__IT__ | specifies the SWPMI interrupt to check. This parameter can be one of the following values:
|
The | new state of IT (TRUE or FALSE). |
#define __HAL_SWPMI_GET_IT_SOURCE | ( | __HANDLE__, | |
__IT__ | |||
) | ((READ_BIT((__HANDLE__)->Instance->IER, (__IT__)) == (__IT__)) ? SET : RESET) |
Check whether the specified SWPMI interrupt source is enabled or not.
__HANDLE__ | specifies the SWPMI Handle. |
__IT__ | specifies the SWPMI interrupt source to check. This parameter can be one of the following values:
|
The | new state of IT (TRUE or FALSE). |
#define __HAL_SWPMI_RESET_HANDLE_STATE | ( | __HANDLE__ | ) | ((__HANDLE__)->State = HAL_SWPMI_STATE_RESET) |
Reset SWPMI handle state.
__HANDLE__ | specifies the SWPMI Handle. |
None |
#define __HAL_SWPMI_TRANSCEIVER_DISABLE | ( | __HANDLE__ | ) | CLEAR_BIT((__HANDLE__)->Instance->CR, SWPMI_CR_SWPEN) |
Disable the SWPMI transceiver.
__HANDLE__ | SWPMI handle |
None |
#define __HAL_SWPMI_TRANSCEIVER_ENABLE | ( | __HANDLE__ | ) | SET_BIT((__HANDLE__)->Instance->CR, SWPMI_CR_SWPEN) |
Enable the SWPMI transceiver.
__HANDLE__ | SWPMI handle |
None |