RTEMS 6.1-rc1
fsl_smartcard_phy.h
1/*
2 * Copyright (c) 2015-2016, Freescale Semiconductor, Inc.
3 * Copyright 2016-2017 NXP
4 * All rights reserved.
5 *
6 * SPDX-License-Identifier: BSD-3-Clause
7 */
8
9#ifndef _FSL_SMARTCARD_PHY_H_
10#define _FSL_SMARTCARD_PHY_H_
11
12#include "fsl_smartcard.h"
13
19/*******************************************************************************
20 * Definitions
21 ******************************************************************************/
22
26#define SMARTCARD_ATR_DURATION_ADJUSTMENT (360u)
27
31#define SMARTCARD_INIT_DELAY_CLOCK_CYCLES_ADJUSTMENT (4200u)
32
33/*******************************************************************************
34 * API
35 ******************************************************************************/
36
37#if defined(__cplusplus)
38extern "C" {
39#endif
40
52
63status_t SMARTCARD_PHY_Init(void *base, smartcard_interface_config_t const *config, uint32_t srcClock_Hz);
64
72
84
94
108 uint32_t param);
109
116#if defined(USING_PHY_TDA8035)
117void SMARTCARD_PHY_IRQHandler(void *base, smartcard_context_t *context);
118#endif
121#if defined(__cplusplus)
122}
123#endif
124
127#endif /* _FSL_SMARTCARD_PHY_H_*/
int32_t status_t
Type used for all status and error return values.
Definition: fsl_common.h:225
status_t SMARTCARD_PHY_Control(void *base, smartcard_context_t *context, smartcard_interface_control_t control, uint32_t param)
Controls the Smart card interface IC.
Definition: fsl_smartcard_phy_emvsim.c:192
void SMARTCARD_PHY_GetDefaultConfig(smartcard_interface_config_t *config)
Fills in the configuration structure with default values.
Definition: fsl_smartcard_phy_emvsim.c:54
void SMARTCARD_PHY_Deinit(void *base, smartcard_interface_config_t const *config)
De-initializes a Smart card interface, stops the Smart card clock, and disables the VCC.
Definition: fsl_smartcard_phy_emvsim.c:91
status_t SMARTCARD_PHY_Deactivate(void *base, smartcard_context_t *context)
De-activates the Smart card IC.
Definition: fsl_smartcard_phy_emvsim.c:166
status_t SMARTCARD_PHY_Activate(void *base, smartcard_context_t *context, smartcard_reset_type_t resetType)
Activates the Smart card IC.
Definition: fsl_smartcard_phy_emvsim.c:98
status_t SMARTCARD_PHY_Init(void *base, smartcard_interface_config_t const *config, uint32_t srcClock_Hz)
Initializes a Smart card interface instance.
Definition: fsl_smartcard_phy_emvsim.c:65
enum _smartcard_interface_control smartcard_interface_control_t
Defines Smart card interface IC control types.
enum _smartcard_reset_type smartcard_reset_type_t
Defines Smart card reset types.
rtems_termios_device_context * context
Definition: console-config.c:62
Runtime state of the Smart card driver.
Definition: fsl_smartcard.h:239
Defines user specified configuration of Smart card interface.
Definition: fsl_smartcard.h:204
Definition: deflate.c:114
Definition: intercom.c:87