STM32L486xx HAL User Manual
Defines | Functions
stm32l4xx_hal_smartcard_ex.h File Reference

Header file of SMARTCARD HAL Extended module. More...

#include "stm32l4xx_hal_def.h"

Go to the source code of this file.

Defines

#define SMARTCARD_TC   SMARTCARD_IT_TC
#define SMARTCARD_ADVFEATURE_NO_INIT   0x00000000U
#define SMARTCARD_ADVFEATURE_TXINVERT_INIT   0x00000001U
#define SMARTCARD_ADVFEATURE_RXINVERT_INIT   0x00000002U
#define SMARTCARD_ADVFEATURE_DATAINVERT_INIT   0x00000004U
#define SMARTCARD_ADVFEATURE_SWAP_INIT   0x00000008U
#define SMARTCARD_ADVFEATURE_RXOVERRUNDISABLE_INIT   0x00000010U
#define SMARTCARD_ADVFEATURE_DMADISABLEONERROR_INIT   0x00000020U
#define SMARTCARD_ADVFEATURE_MSBFIRST_INIT   0x00000080U
#define SMARTCARD_FLAG_REACK   USART_ISR_REACK
#define SMARTCARD_FLAG_TEACK   USART_ISR_TEACK
#define SMARTCARD_FLAG_BUSY   USART_ISR_BUSY
#define SMARTCARD_FLAG_EOBF   USART_ISR_EOBF
#define SMARTCARD_FLAG_RTOF   USART_ISR_RTOF
#define SMARTCARD_FLAG_TXE   USART_ISR_TXE
#define SMARTCARD_FLAG_TC   USART_ISR_TC
#define SMARTCARD_FLAG_RXNE   USART_ISR_RXNE
#define SMARTCARD_FLAG_IDLE   USART_ISR_IDLE
#define SMARTCARD_FLAG_ORE   USART_ISR_ORE
#define SMARTCARD_FLAG_NE   USART_ISR_NE
#define SMARTCARD_FLAG_FE   USART_ISR_FE
#define SMARTCARD_FLAG_PE   USART_ISR_PE
#define SMARTCARD_IT_PE   0x0028U
#define SMARTCARD_IT_TXE   0x0727U
#define SMARTCARD_IT_TC   0x0626U
#define SMARTCARD_IT_RXNE   0x0525U
#define SMARTCARD_IT_IDLE   0x0424U
#define SMARTCARD_IT_ERR   0x0060U
#define SMARTCARD_IT_ORE   0x0300U
#define SMARTCARD_IT_NE   0x0200U
#define SMARTCARD_IT_FE   0x0100U
#define SMARTCARD_IT_EOB   0x0C3BU
#define SMARTCARD_IT_RTO   0x0B3AU
#define SMARTCARD_CLEAR_PEF   USART_ICR_PECF
#define SMARTCARD_CLEAR_FEF   USART_ICR_FECF
#define SMARTCARD_CLEAR_NEF   USART_ICR_NECF
#define SMARTCARD_CLEAR_OREF   USART_ICR_ORECF
#define SMARTCARD_CLEAR_IDLEF   USART_ICR_IDLECF
#define SMARTCARD_CLEAR_TCF   USART_ICR_TCCF
#define SMARTCARD_CLEAR_RTOF   USART_ICR_RTOCF
#define SMARTCARD_CLEAR_EOBF   USART_ICR_EOBCF
#define SMARTCARD_TRANSMISSION_COMPLETION_SETTING(__HANDLE__)
 Set the Transmission Completion flag.
#define SMARTCARD_TRANSMISSION_COMPLETION_FLAG(__HANDLE__)   (SMARTCARD_FLAG_TC)
 Return the transmission completion flag.
#define IS_SMARTCARD_TRANSMISSION_COMPLETION(__TXCOMPLETE__)   ((__TXCOMPLETE__) == SMARTCARD_TC)
 Ensure that SMARTCARD frame transmission completion used flag is valid.
#define IS_SMARTCARD_FIFOMODE_STATE(__STATE__)
 Ensure that SMARTCARD FIFO mode is valid.
#define IS_SMARTCARD_TXFIFO_THRESHOLD(__THRESHOLD__)
 Ensure that SMARTCARD TXFIFO threshold level is valid.
#define IS_SMARTCARD_RXFIFO_THRESHOLD(__THRESHOLD__)
 Ensure that SMARTCARD RXFIFO threshold level is valid.

Functions

void HAL_SMARTCARDEx_BlockLength_Config (SMARTCARD_HandleTypeDef *hsmartcard, uint8_t BlockLength)
 Update on the fly the SMARTCARD block length in RTOR register.
void HAL_SMARTCARDEx_TimeOut_Config (SMARTCARD_HandleTypeDef *hsmartcard, uint32_t TimeOutValue)
 Update on the fly the receiver timeout value in RTOR register.
HAL_StatusTypeDef HAL_SMARTCARDEx_EnableReceiverTimeOut (SMARTCARD_HandleTypeDef *hsmartcard)
 Enable the SMARTCARD receiver timeout feature.
HAL_StatusTypeDef HAL_SMARTCARDEx_DisableReceiverTimeOut (SMARTCARD_HandleTypeDef *hsmartcard)
 Disable the SMARTCARD receiver timeout feature.

Detailed Description

Header file of SMARTCARD HAL Extended module.

Author:
MCD Application Team
Attention:

© COPYRIGHT(c) 2017 STMicroelectronics

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file stm32l4xx_hal_smartcard_ex.h.