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... | |
| hal_status_t hal_iso7816_abort | ( | iso7816_handle_t * | p_iso7816 | ) |
Transfer Abort functions.
| p_iso7816 | Pointer to an ISO7816 handle which contains the configuration information for the specified ISO7816. |
| HAL_OK | Operation is OK. |
| HAL_ERROR | Parameter error or operation not supported. |
| HAL_BUSY | Driver is busy. |
| HAL_TIMEOUT | Timeout occurred. |
| void hal_iso7816_abort_cplt_callback | ( | iso7816_handle_t * | p_iso7816 | ) |
ISO7816 Abort Completed callback.
| [in] | p_iso7816 | ISO7816 handle. |
| void hal_iso7816_atr_cplt_callback | ( | iso7816_handle_t * | p_iso7816 | ) |
Receive ART completed callback.
| [in] | p_iso7816 | Pointer to an ISO7816 handle which contains the configuration information for the specified ISO7816 module. |
| 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.
| [in] | p_iso7816 | Pointer to an ISO7816 handle which contains the configuration information for the specified ISO7816. |
| HAL_OK | Operation is OK. |
| HAL_ERROR | Parameter error or operation not supported. |
| HAL_BUSY | Driver is busy. |
| HAL_TIMEOUT | Timeout occurred. |
| void hal_iso7816_error_callback | ( | iso7816_handle_t * | p_iso7816 | ) |
ISO7816 error callback.
| [in] | p_iso7816 | Pointer to an ISO7816 handle which contains the configuration information for the specified ISO7816 module. |
| uint32_t hal_iso7816_get_error | ( | iso7816_handle_t * | p_iso7816 | ) |
Return the ISO7816 error code.
| [in] | p_iso7816 | ISO7816 handle. |
| uint32_t hal_iso7816_get_power_states | ( | iso7816_handle_t * | p_iso7816 | ) |
Get ISO7816 Power States.
| p_iso7816 | ISO7816 handle. |
| hal_iso7816_state_t hal_iso7816_get_state | ( | iso7816_handle_t * | p_iso7816 | ) |
Return the ISO7816 handle state.
| [in] | p_iso7816 | ISO7816 handle. |
| 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.
| [in] | p_iso7816 | Pointer to an ISO7816 handle which contains the configuration information for the specified ISO7816. |
| HAL_OK | Operation is OK. |
| HAL_ERROR | Parameter error or operation not supported. |
| HAL_BUSY | Driver is busy. |
| HAL_TIMEOUT | Timeout occurred. |
| void hal_iso7816_irq_handler | ( | iso7816_handle_t * | p_iso7816 | ) |
Handle ISO7816 interrupt request.
| [in] | p_iso7816 | Pointer to an ISO7816 handle which contains the configuration information for the specified ISO7816. |
| void hal_iso7816_msp_deinit | ( | iso7816_handle_t * | p_iso7816 | ) |
De-initialize the ISO7816 MSP.
| [in] | p_iso7816 | Pointer to an ISO7816 handle which contains the configuration information for the specified ISO7816. |
| void hal_iso7816_msp_init | ( | iso7816_handle_t * | p_iso7816 | ) |
Initialize the ISO7816 MSP.
| [in] | p_iso7816 | Pointer to an ISO7816 handle which contains the configuration information for the specified ISO7816. |
| void hal_iso7816_presence_callback | ( | iso7816_handle_t * | p_iso7816 | ) |
Card presence state changed callback.
| [in] | p_iso7816 | Pointer to an ISO7816 handle which contains the configuration information for the specified ISO7816 module. |
| hal_status_t hal_iso7816_receive | ( | iso7816_handle_t * | p_iso7816, |
| uint16_t | rx_size, | ||
| uint32_t | timeout | ||
| ) |
Receive data in blocking mode.
| p_iso7816 | Pointer to an ISO7816 handle which contains the configuration information for the specified ISO7816. |
| rx_size | Bytes of data to receive |
| timeout | Timeout duration |
| HAL_OK | Operation is OK. |
| HAL_ERROR | Parameter error or operation not supported. |
| HAL_BUSY | Driver is busy. |
| HAL_TIMEOUT | Timeout occurred. |
| hal_status_t hal_iso7816_receive_it | ( | iso7816_handle_t * | p_iso7816, |
| uint16_t | rx_size | ||
| ) |
Receive data in non-blocking mode with Interrupt.
| p_iso7816 | Pointer to an ISO7816 handle which contains the configuration information for the specified ISO7816. |
| rx_size | Bytes of data to receive |
| HAL_OK | Operation is OK. |
| HAL_ERROR | Parameter error or operation not supported. |
| HAL_BUSY | Driver is busy. |
| HAL_TIMEOUT | Timeout occurred. |
| 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().
| [in] | p_iso7816 | ISO7816 handle. |
| HAL_OK | Operation is OK. |
| HAL_ERROR | Parameter error or operation not supported. |
| HAL_BUSY | Driver is busy. |
| HAL_TIMEOUT | Timeout occurred. |
| void hal_iso7816_rx_cplt_callback | ( | iso7816_handle_t * | p_iso7816 | ) |
Rx Transfer completed callback.
| [in] | p_iso7816 | Pointer to an ISO7816 handle which contains the configuration information for the specified ISO7816 module. |
| hal_status_t hal_iso7816_set_action | ( | iso7816_handle_t * | p_iso7816, |
| uint32_t | action | ||
| ) |
Request ISO7816 to go to the next action.
| p_iso7816 | ISO7816 handle. |
| action | This parameter can be one of the following values: |
| hal_status_t hal_iso7816_set_etudiv | ( | iso7816_handle_t * | p_iso7816, |
| uint32_t | divide | ||
| ) |
Set divide ISO7816 clock.
| p_iso7816 | ISO7816 handle. |
| divide | This parameter should range between 0x0 and 0x3FF. |
| None. |
| hal_status_t hal_iso7816_suspend_reg | ( | iso7816_handle_t * | p_iso7816 | ) |
Suspend some registers related to ISO7816 configuration before sleep.
| [in] | p_iso7816 | ISO7816 handle. |
| HAL_OK | Operation is OK. |
| HAL_ERROR | Parameter error or operation not supported. |
| HAL_BUSY | Driver is busy. |
| HAL_TIMEOUT | Timeout occurred. |
| hal_status_t hal_iso7816_transmit | ( | iso7816_handle_t * | p_iso7816, |
| uint16_t | tx_size, | ||
| uint32_t | timeout | ||
| ) |
Transimit data in blocking mode.
| p_iso7816 | Pointer to an ISO7816 handle which contains the configuration information for the specified ISO7816. |
| tx_size | Bytes of data to transmit |
| timeout | Timeout duration |
| HAL_OK | Operation is OK. |
| HAL_ERROR | Parameter error or operation not supported. |
| HAL_BUSY | Driver is busy. |
| HAL_TIMEOUT | Timeout occurred. |
| hal_status_t hal_iso7816_transmit_it | ( | iso7816_handle_t * | p_iso7816, |
| uint16_t | tx_size | ||
| ) |
Transimit data in non-blocking mode with Interrupt.
| p_iso7816 | Pointer to an ISO7816 handle which contains the configuration information for the specified ISO7816. |
| tx_size | Bytes of data to transmit |
| HAL_OK | Operation is OK. |
| HAL_ERROR | Parameter error or operation not supported. |
| HAL_BUSY | Driver is busy. |
| HAL_TIMEOUT | Timeout occurred. |
| 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.
| p_iso7816 | Pointer to an ISO7816 handle which contains the configuration information for the specified ISO7816. |
| tx_size | Bytes of data to transmit |
| rx_size | Bytes of data to receive |
| timeout | Timeout duration |
| HAL_OK | Operation is OK. |
| HAL_ERROR | Parameter error or operation not supported. |
| HAL_BUSY | Driver is busy. |
| HAL_TIMEOUT | Timeout occurred. |
| 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.
| p_iso7816 | Pointer to an ISO7816 handle which contains the configuration information for the specified ISO7816. |
| tx_size | Bytes of data to transfer. |
| rx_size | Bytes of data to receive. |
| HAL_OK | Operation is OK. |
| HAL_ERROR | Parameter error or operation not supported. |
| HAL_BUSY | Driver is busy. |
| HAL_TIMEOUT | Timeout occurred. |
| void hal_iso7816_tx_cplt_callback | ( | iso7816_handle_t * | p_iso7816 | ) |
Tx Transfer completed callback.
| [in] | p_iso7816 | Pointer to an ISO7816 handle which contains the configuration information for the specified ISO7816 module. |
| void hal_iso7816_tx_rx_cplt_callback | ( | iso7816_handle_t * | p_iso7816 | ) |
Tx and Rx Transfer completed callback.
| [in] | p_iso7816 | Pointer to an ISO7816 handle which contains the configuration information for the specified ISO7816 module. |