Header file containing functions prototypes of ISO7816 HAL library. More...
Go to the source code of this file.
Classes | |
struct | iso7816_init_t |
ISO7816 init structure definition. More... | |
struct | _iso7816_handle_t |
ISO7816 handle Structure definition. More... | |
struct | _hal_iso7816_callback |
HAL_ISO7816 Callback function definition. More... | |
Typedefs | |
typedef struct _iso7816_handle_t | iso7816_handle_t |
ISO7816 handle Structure definition. More... | |
typedef struct _hal_iso7816_callback | hal_iso7816_callback_t |
HAL_ISO7816 Callback function definition. More... | |
Enumerations | |
enum | hal_iso7816_state_t { HAL_ISO7816_STATE_RESET = 0x00U, HAL_ISO7816_STATE_READY = 0x20U, HAL_ISO7816_STATE_BUSY = 0x24U, HAL_ISO7816_STATE_BUSY_TX = 0x21U, HAL_ISO7816_STATE_BUSY_RX = 0x22U, HAL_ISO7816_STATE_BUSY_TX_RX = 0x23U, HAL_ISO7816_STATE_ABORT = 0x08U, HAL_ISO7816_STATE_TIMEOUT = 0xA0U, HAL_ISO7816_STATE_ERROR = 0xE0U } |
HAL ISO7816 State Enumerations definition. More... | |
Functions | |
hal_status_t | hal_iso7816_transmit (iso7816_handle_t *p_iso7816, uint16_t tx_size, uint32_t timeout) |
Transimit data in blocking mode. More... | |
hal_status_t | hal_iso7816_receive (iso7816_handle_t *p_iso7816, uint16_t rx_size, uint32_t timeout) |
Receive data in blocking mode. More... | |
hal_status_t | hal_iso7816_transmit_receive (iso7816_handle_t *p_iso7816, uint16_t tx_size, uint16_t rx_size, uint32_t timeout) |
Transimit and receive data in blocking mode. More... | |
hal_status_t | hal_iso7816_transmit_it (iso7816_handle_t *p_iso7816, uint16_t tx_size) |
Transimit data in non-blocking mode with Interrupt. More... | |
hal_status_t | hal_iso7816_receive_it (iso7816_handle_t *p_iso7816, uint16_t rx_size) |
Receive data in non-blocking mode with Interrupt. More... | |
hal_status_t | hal_iso7816_transmit_receive_it (iso7816_handle_t *p_iso7816, uint16_t tx_size, uint16_t rx_size) |
Transimit and receive data in non-blocking mode with Interrupt. More... | |
hal_status_t | hal_iso7816_abort (iso7816_handle_t *p_iso7816) |
Transfer Abort functions. More... | |
hal_status_t | hal_iso7816_init (iso7816_handle_t *p_iso7816) |
Initializes the ISO7816 according to the specified parameters in the iso7816_init_t and initialize the associated handle. More... | |
hal_status_t | hal_iso7816_deinit (iso7816_handle_t *p_iso7816) |
De-initializes the ISO7816 according to the specified parameters in the iso7816_init_t and initialize the associated handle. More... | |
void | hal_iso7816_msp_init (iso7816_handle_t *p_iso7816) |
Initialize the ISO7816 MSP. More... | |
void | hal_iso7816_msp_deinit (iso7816_handle_t *p_iso7816) |
De-initialize the ISO7816 MSP. More... | |
void | hal_iso7816_irq_handler (iso7816_handle_t *p_iso7816) |
Handle ISO7816 interrupt request. More... | |
void | hal_iso7816_presence_callback (iso7816_handle_t *p_iso7816) |
Card presence state changed callback. More... | |
void | hal_iso7816_atr_cplt_callback (iso7816_handle_t *p_iso7816) |
Receive ART completed callback. More... | |
void | hal_iso7816_rx_cplt_callback (iso7816_handle_t *p_iso7816) |
Rx Transfer completed callback. More... | |
void | hal_iso7816_tx_cplt_callback (iso7816_handle_t *p_iso7816) |
Tx Transfer completed callback. More... | |
void | hal_iso7816_tx_rx_cplt_callback (iso7816_handle_t *p_iso7816) |
Tx and Rx Transfer completed callback. More... | |
void | hal_iso7816_error_callback (iso7816_handle_t *p_iso7816) |
ISO7816 error callback. More... | |
void | hal_iso7816_abort_cplt_callback (iso7816_handle_t *p_iso7816) |
ISO7816 Abort Completed callback. More... | |
hal_iso7816_state_t | hal_iso7816_get_state (iso7816_handle_t *p_iso7816) |
Return the ISO7816 handle state. More... | |
hal_status_t | hal_iso7816_set_action (iso7816_handle_t *p_iso7816, uint32_t action) |
Request ISO7816 to go to the next action. More... | |
uint32_t | hal_iso7816_get_power_states (iso7816_handle_t *p_iso7816) |
Get ISO7816 Power States. More... | |
hal_status_t | hal_iso7816_set_etudiv (iso7816_handle_t *p_iso7816, uint32_t divide) |
Set divide ISO7816 clock. More... | |
uint32_t | hal_iso7816_get_error (iso7816_handle_t *p_iso7816) |
Return the ISO7816 error code. More... | |
hal_status_t | hal_iso7816_suspend_reg (iso7816_handle_t *p_iso7816) |
Suspend some registers related to ISO7816 configuration before sleep. More... | |
hal_status_t | hal_iso7816_resume_reg (iso7816_handle_t *p_iso7816) |
Restore some registers related to ISO7816 configuration after sleep. This function must be used in conjunction with the hal_iso7816_suspend_reg(). More... | |
Header file containing functions prototypes of ISO7816 HAL library.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 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. Neither the name of GOODIX 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 COPYRIGHT HOLDERS AND 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 gr55xx_hal_iso7816.h.