RTEMS 6.1-rc1
Macros | Functions
Smartcard_phy_driver

Macros

#define SMARTCARD_ATR_DURATION_ADJUSTMENT   (360u)
 Smart card definition which specifies the adjustment number of clock cycles during which an ATR string has to be received.
 
#define SMARTCARD_INIT_DELAY_CLOCK_CYCLES_ADJUSTMENT   (4200u)
 Smart card definition which specifies the adjustment number of clock cycles until an initial 'TS' character has to be received.
 

Functions

void SMARTCARD_PHY_GetDefaultConfig (smartcard_interface_config_t *config)
 Fills in the configuration structure with default values. More...
 
status_t SMARTCARD_PHY_Init (void *base, smartcard_interface_config_t const *config, uint32_t srcClock_Hz)
 Initializes a Smart card interface instance. More...
 
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. More...
 
status_t SMARTCARD_PHY_Activate (void *base, smartcard_context_t *context, smartcard_reset_type_t resetType)
 Activates the Smart card IC. More...
 
status_t SMARTCARD_PHY_Deactivate (void *base, smartcard_context_t *context)
 De-activates the Smart card IC. More...
 
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. More...
 

Detailed Description

Function Documentation

◆ SMARTCARD_PHY_Activate()

status_t SMARTCARD_PHY_Activate ( void *  base,
smartcard_context_t context,
smartcard_reset_type_t  resetType 
)

Activates the Smart card IC.

Parameters
baseThe Smart card peripheral module base address.
contextA pointer to a Smart card driver context structure.
resetTypetype of reset to be performed, possible values = kSmartcardColdReset, kSmartcardWarmReset
Return values
kStatus_SMARTCARD_Successor kStatus_SMARTCARD_OtherError in case of error.

◆ SMARTCARD_PHY_Control()

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.

Parameters
baseThe Smart card peripheral module base address.
contextA pointer to a Smart card driver context structure.
controlA interface command type.
paramInteger value specific to control type
Return values
kStatus_SMARTCARD_Successor kStatus_SMARTCARD_OtherError in case of error.

◆ SMARTCARD_PHY_Deactivate()

status_t SMARTCARD_PHY_Deactivate ( void *  base,
smartcard_context_t context 
)

De-activates the Smart card IC.

Parameters
baseThe Smart card peripheral module base address.
contextA pointer to a Smart card driver context structure.
Return values
kStatus_SMARTCARD_Successor kStatus_SMARTCARD_OtherError in case of error.

◆ SMARTCARD_PHY_Deinit()

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.

Parameters
baseThe Smart card peripheral module base address.
configThe user configuration structure of type smartcard_interface_config_t.

◆ SMARTCARD_PHY_GetDefaultConfig()

void SMARTCARD_PHY_GetDefaultConfig ( smartcard_interface_config_t config)

Fills in the configuration structure with default values.

Parameters
configThe Smart card user configuration structure which contains configuration structure of type smartcard_interface_config_t. Function fill in members: clockToResetDelay = 42000, vcc = kSmartcardVoltageClassB3_3V, with default values.

◆ SMARTCARD_PHY_Init()

status_t SMARTCARD_PHY_Init ( void *  base,
smartcard_interface_config_t const *  config,
uint32_t  srcClock_Hz 
)

Initializes a Smart card interface instance.

Parameters
baseThe Smart card peripheral base address.
configThe user configuration structure of type smartcard_interface_config_t. Call the function SMARTCARD_PHY_GetDefaultConfig() to fill the configuration structure.
srcClock_HzSmart card clock generation module source clock.
Return values
kStatus_SMARTCARD_Successor kStatus_SMARTCARD_OtherError in case of error.