RTEMS 6.1-rc1
|
Macros | |
#define | __HAL_SMARTCARD_RESET_HANDLE_STATE(__HANDLE__) |
Reset SMARTCARD handle states. More... | |
#define | __HAL_SMARTCARD_FLUSH_DRREGISTER(__HANDLE__) |
Flush the Smartcard Data registers. More... | |
#define | __HAL_SMARTCARD_CLEAR_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->ICR = (__FLAG__)) |
Clear the specified SMARTCARD pending flag. More... | |
#define | __HAL_SMARTCARD_CLEAR_PEFLAG(__HANDLE__) __HAL_SMARTCARD_CLEAR_FLAG((__HANDLE__), SMARTCARD_CLEAR_PEF) |
Clear the SMARTCARD PE pending flag. More... | |
#define | __HAL_SMARTCARD_CLEAR_FEFLAG(__HANDLE__) __HAL_SMARTCARD_CLEAR_FLAG((__HANDLE__), SMARTCARD_CLEAR_FEF) |
Clear the SMARTCARD FE pending flag. More... | |
#define | __HAL_SMARTCARD_CLEAR_NEFLAG(__HANDLE__) __HAL_SMARTCARD_CLEAR_FLAG((__HANDLE__), SMARTCARD_CLEAR_NEF) |
Clear the SMARTCARD NE pending flag. More... | |
#define | __HAL_SMARTCARD_CLEAR_OREFLAG(__HANDLE__) __HAL_SMARTCARD_CLEAR_FLAG((__HANDLE__), SMARTCARD_CLEAR_OREF) |
Clear the SMARTCARD ORE pending flag. More... | |
#define | __HAL_SMARTCARD_CLEAR_IDLEFLAG(__HANDLE__) __HAL_SMARTCARD_CLEAR_FLAG((__HANDLE__), SMARTCARD_CLEAR_IDLEF) |
Clear the SMARTCARD IDLE pending flag. More... | |
#define | __HAL_SMARTCARD_GET_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->ISR & (__FLAG__)) == (__FLAG__)) |
Check whether the specified Smartcard flag is set or not. More... | |
#define | __HAL_SMARTCARD_ENABLE_IT(__HANDLE__, __INTERRUPT__) |
Enable the specified SmartCard interrupt. More... | |
#define | __HAL_SMARTCARD_DISABLE_IT(__HANDLE__, __INTERRUPT__) |
Disable the specified SmartCard interrupt. More... | |
#define | __HAL_SMARTCARD_GET_IT(__HANDLE__, __INTERRUPT__) |
Check whether the specified SmartCard interrupt has occurred or not. More... | |
#define | __HAL_SMARTCARD_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) |
Check whether the specified SmartCard interrupt source is enabled or not. More... | |
#define | __HAL_SMARTCARD_CLEAR_IT(__HANDLE__, __IT_CLEAR__) ((__HANDLE__)->Instance->ICR |= (uint32_t)(__IT_CLEAR__)) |
Clear the specified SMARTCARD ISR flag, in setting the proper ICR register flag. More... | |
#define | __HAL_SMARTCARD_SEND_REQ(__HANDLE__, __REQ__) ((__HANDLE__)->Instance->RQR |= (uint16_t)(__REQ__)) |
Set a specific SMARTCARD request flag. More... | |
#define | __HAL_SMARTCARD_ONE_BIT_SAMPLE_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR3|= USART_CR3_ONEBIT) |
Enable the SMARTCARD one bit sample method. More... | |
#define | __HAL_SMARTCARD_ONE_BIT_SAMPLE_DISABLE(__HANDLE__) |
Disable the SMARTCARD one bit sample method. More... | |
#define | __HAL_SMARTCARD_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR1 |= USART_CR1_UE) |
Enable the USART associated to the SMARTCARD Handle. More... | |
#define | __HAL_SMARTCARD_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR1 &= ~USART_CR1_UE) |
Disable the USART associated to the SMARTCARD Handle. More... | |
#define __HAL_SMARTCARD_CLEAR_FEFLAG | ( | __HANDLE__ | ) | __HAL_SMARTCARD_CLEAR_FLAG((__HANDLE__), SMARTCARD_CLEAR_FEF) |
Clear the SMARTCARD FE pending flag.
__HANDLE__ | specifies the SMARTCARD Handle. |
None |
#define __HAL_SMARTCARD_CLEAR_FLAG | ( | __HANDLE__, | |
__FLAG__ | |||
) | ((__HANDLE__)->Instance->ICR = (__FLAG__)) |
Clear the specified SMARTCARD pending flag.
__HANDLE__ | specifies the SMARTCARD Handle. |
__FLAG__ | specifies the flag to check. This parameter can be any combination of the following values:
|
None |
#define __HAL_SMARTCARD_CLEAR_IDLEFLAG | ( | __HANDLE__ | ) | __HAL_SMARTCARD_CLEAR_FLAG((__HANDLE__), SMARTCARD_CLEAR_IDLEF) |
Clear the SMARTCARD IDLE pending flag.
__HANDLE__ | specifies the SMARTCARD Handle. |
None |
#define __HAL_SMARTCARD_CLEAR_IT | ( | __HANDLE__, | |
__IT_CLEAR__ | |||
) | ((__HANDLE__)->Instance->ICR |= (uint32_t)(__IT_CLEAR__)) |
Clear the specified SMARTCARD ISR flag, in setting the proper ICR register flag.
__HANDLE__ | specifies the SMARTCARD Handle. |
__IT_CLEAR__ | specifies the interrupt clear register flag that needs to be set to clear the corresponding interrupt. This parameter can be one of the following values:
|
None |
#define __HAL_SMARTCARD_CLEAR_NEFLAG | ( | __HANDLE__ | ) | __HAL_SMARTCARD_CLEAR_FLAG((__HANDLE__), SMARTCARD_CLEAR_NEF) |
Clear the SMARTCARD NE pending flag.
__HANDLE__ | specifies the SMARTCARD Handle. |
None |
#define __HAL_SMARTCARD_CLEAR_OREFLAG | ( | __HANDLE__ | ) | __HAL_SMARTCARD_CLEAR_FLAG((__HANDLE__), SMARTCARD_CLEAR_OREF) |
Clear the SMARTCARD ORE pending flag.
__HANDLE__ | specifies the SMARTCARD Handle. |
None |
#define __HAL_SMARTCARD_CLEAR_PEFLAG | ( | __HANDLE__ | ) | __HAL_SMARTCARD_CLEAR_FLAG((__HANDLE__), SMARTCARD_CLEAR_PEF) |
Clear the SMARTCARD PE pending flag.
__HANDLE__ | specifies the SMARTCARD Handle. |
None |
#define __HAL_SMARTCARD_DISABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CR1 &= ~USART_CR1_UE) |
Disable the USART associated to the SMARTCARD Handle.
__HANDLE__ | specifies the SMARTCARD Handle. |
None |
#define __HAL_SMARTCARD_DISABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) |
Disable the specified SmartCard interrupt.
__HANDLE__ | specifies the SMARTCARD Handle. |
__INTERRUPT__ | specifies the SMARTCARD interrupt to disable. This parameter can be one of the following values:
|
None |
#define __HAL_SMARTCARD_ENABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CR1 |= USART_CR1_UE) |
Enable the USART associated to the SMARTCARD Handle.
__HANDLE__ | specifies the SMARTCARD Handle. |
None |
#define __HAL_SMARTCARD_ENABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) |
Enable the specified SmartCard interrupt.
__HANDLE__ | specifies the SMARTCARD Handle. |
__INTERRUPT__ | specifies the SMARTCARD interrupt to enable. This parameter can be one of the following values:
|
None |
#define __HAL_SMARTCARD_FLUSH_DRREGISTER | ( | __HANDLE__ | ) |
Flush the Smartcard Data registers.
__HANDLE__ | specifies the SMARTCARD Handle. |
None |
#define __HAL_SMARTCARD_GET_FLAG | ( | __HANDLE__, | |
__FLAG__ | |||
) | (((__HANDLE__)->Instance->ISR & (__FLAG__)) == (__FLAG__)) |
Check whether the specified Smartcard flag is set or not.
__HANDLE__ | specifies the SMARTCARD 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_SMARTCARD_GET_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) |
Check whether the specified SmartCard interrupt has occurred or not.
__HANDLE__ | specifies the SMARTCARD Handle. |
__INTERRUPT__ | specifies the SMARTCARD interrupt to check. This parameter can be one of the following values:
|
The | new state of INTERRUPT (SET or RESET). |
#define __HAL_SMARTCARD_GET_IT_SOURCE | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) |
Check whether the specified SmartCard interrupt source is enabled or not.
__HANDLE__ | specifies the SMARTCARD Handle. |
__INTERRUPT__ | specifies the SMARTCARD interrupt source to check. This parameter can be one of the following values:
|
The | new state of INTERRUPT (SET or RESET). |
#define __HAL_SMARTCARD_ONE_BIT_SAMPLE_DISABLE | ( | __HANDLE__ | ) |
Disable the SMARTCARD one bit sample method.
__HANDLE__ | specifies the SMARTCARD Handle. |
None |
#define __HAL_SMARTCARD_ONE_BIT_SAMPLE_ENABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CR3|= USART_CR3_ONEBIT) |
Enable the SMARTCARD one bit sample method.
__HANDLE__ | specifies the SMARTCARD Handle. |
None |
#define __HAL_SMARTCARD_RESET_HANDLE_STATE | ( | __HANDLE__ | ) |
Reset SMARTCARD handle states.
__HANDLE__ | SMARTCARD handle. |
None |
#define __HAL_SMARTCARD_SEND_REQ | ( | __HANDLE__, | |
__REQ__ | |||
) | ((__HANDLE__)->Instance->RQR |= (uint16_t)(__REQ__)) |
Set a specific SMARTCARD request flag.
__HANDLE__ | specifies the SMARTCARD Handle. |
__REQ__ | specifies the request flag to set This parameter can be one of the following values:
|
None |