beautypg.com

Icc_rxlen(), Icc_rxdone(), Icc_deactivate() – Maxim Integrated 73S12xxF Software User Manual

Page 38: Icc_mode(), E 38)

background image

73S12xxF Software User Guide

UG_12xxF_016

38

Rev. 1.50

IccLastByte should be set when it is time to switch to transmission mode and start the BGT timer. If it is not
immediately known when it is time to switch, call

ICC_RxDone()

after all the bytes have been received.

To determine if all the expected bytes have been received, call

ICC_RxLen()

. Since the ICC_OK or

ICC_BREAK status occurs after reception of ICCLen bytes, this value should include any CRC/LRC
byte(s) received.

ICC_RxLen()

Purpose

Return the number of bytes received thus far.

Synopsis

unsigned Int ICC_RxLen ( void );

Parameters

None.

Return Codes None.

ICC_RxDone()

Purpose

Notify the SmartCard UART that all the expected bytes have been received. This
forces the switch to activation of block guard and wait times.

Synopsis

Void ICC_RxDone ( void );

Parameters

None.

Return Codes None.

ICC_Deactivate()

Purpose

Deactivate the contacts of the selected SmartCard interface as specified by IccId.
The Vcc, RST, I/O and Clk signals are configured according to the ISO 7816-3
standard. This function uses the IccVCCOffDelay, as described in

ICC_Activate()

before turning VCC off.

Synopsis

void ICC_Deactivate ( void );

Parameters

None.

Return Codes None.

ICC_Mode()

Purpose

Enable or Disable PC (via DIRECT mode) or Application (via Bypass mode) to
directly control ICC I/O line.

Synopsis

ICC_RC ICC_Mode (

IN enum ICC_ID Iccid,

IN Boolean bEnable,

IN Boolean bPC_DIRECT )


Parameters

IccId : Input parameter
Specifies which SmartCard to allow direct access to I/O. Possible values are:

ICC_1ST

0, (Internal)

ICC_2ND

1, (External)


ICC_9TH

8 (External).

bEnable: Input parameter
If TRUE, it enables the selected mode.

bPC_DIRECT: Input parameter
Enables or disables PC_DIRECT mode (if TRUE) or BYPASS mode (if FALSE).