STM32L4xx_HAL_Driver  1.14.0
stm32l4xx_hal_smartcard_ex.c File Reference

SMARTCARD HAL module driver. This file provides extended firmware functions to manage the following functionalities of the SmartCard. More...

Go to the source code of this file.

Functions

static void SMARTCARDEx_SetNbDataToProcess (SMARTCARD_HandleTypeDef *hsmartcard)
 Calculate the number of data to process in RX/TX ISR. More...
 
void HAL_SMARTCARDEx_BlockLength_Config (SMARTCARD_HandleTypeDef *hsmartcard, uint8_t BlockLength)
 Update on the fly the SMARTCARD block length in RTOR register. More...
 
void HAL_SMARTCARDEx_TimeOut_Config (SMARTCARD_HandleTypeDef *hsmartcard, uint32_t TimeOutValue)
 Update on the fly the receiver timeout value in RTOR register. More...
 
HAL_StatusTypeDef HAL_SMARTCARDEx_EnableReceiverTimeOut (SMARTCARD_HandleTypeDef *hsmartcard)
 Enable the SMARTCARD receiver timeout feature. More...
 
HAL_StatusTypeDef HAL_SMARTCARDEx_DisableReceiverTimeOut (SMARTCARD_HandleTypeDef *hsmartcard)
 Disable the SMARTCARD receiver timeout feature. More...
 
void HAL_SMARTCARDEx_RxFifoFullCallback (SMARTCARD_HandleTypeDef *hsmartcard)
 SMARTCARD RX Fifo full callback. More...
 
void HAL_SMARTCARDEx_TxFifoEmptyCallback (SMARTCARD_HandleTypeDef *hsmartcard)
 SMARTCARD TX Fifo empty callback. More...
 
HAL_StatusTypeDef HAL_SMARTCARDEx_EnableFifoMode (SMARTCARD_HandleTypeDef *hsmartcard)
 Enable the FIFO mode. More...
 
HAL_StatusTypeDef HAL_SMARTCARDEx_DisableFifoMode (SMARTCARD_HandleTypeDef *hsmartcard)
 Disable the FIFO mode. More...
 
HAL_StatusTypeDef HAL_SMARTCARDEx_SetTxFifoThreshold (SMARTCARD_HandleTypeDef *hsmartcard, uint32_t Threshold)
 Set the TXFIFO threshold. More...
 
HAL_StatusTypeDef HAL_SMARTCARDEx_SetRxFifoThreshold (SMARTCARD_HandleTypeDef *hsmartcard, uint32_t Threshold)
 Set the RXFIFO threshold. More...
 

Detailed Description

SMARTCARD HAL module driver. This file provides extended firmware functions to manage the following functionalities of the SmartCard.

Author
MCD Application Team
  • Initialization and de-initialization functions
  • Peripheral Control functions
=============================================================================
             ##### SMARTCARD peripheral extended features  #####
=============================================================================
[..]
The Extended SMARTCARD HAL driver can be used as follows:

  (#) After having configured the SMARTCARD basic features with HAL_SMARTCARD_Init(),
      then program SMARTCARD advanced features if required (TX/RX pins swap, TimeOut,
      auto-retry counter,...) in the hsmartcard AdvancedInit structure.

  (#) FIFO mode enabling/disabling and RX/TX FIFO threshold programming.

      -@- When SMARTCARD operates in FIFO mode, FIFO mode must be enabled prior
          starting RX/TX transfers. Also RX/TX FIFO thresholds must be
          configured prior starting RX/TX transfers.
Attention

© Copyright (c) 2017 STMicroelectronics. All rights reserved.

This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause

Definition in file stm32l4xx_hal_smartcard_ex.c.