AN1527 STMICROELECTRONICS [STMicroelectronics], AN1527 Datasheet - Page 10

no-image

AN1527

Manufacturer Part Number
AN1527
Description
DEVELOPING A USB SMARTCARD READER WITH ST7SCR
Manufacturer
STMICROELECTRONICS [STMicroelectronics]
Datasheet
DEVELOPING A USB SMARTCARD READER WITH ST7SCR
This function starts the Waiting Timer. The bWaitingTimeFlag software flag is set by an inter-
rupt when the count is finished. For more information, please refer to the crd.h file.
This counter is used by the ICC level functions to determine the end of the transmission.
This function stops the Waiting Timer and resets the corresponding flag.
This function creates a wait loop for WaitingTimeInEtu. The waiting time is:
– WaitingTimeInEtu * Etu
This function is used to set the V
dure. The Etu value is set by the CRD_SetEtu function.
This function will configure the CRD for reception and begin the process.
– pBuffer is the address of the buffer where the data will be copied.
– ReceiveBufSize is the size of the buffer.
If the ICC transmits more bytes than the number specified in the ReceiveBufSize variable,
data saving is stopped and a flag is set. This reception is done entirely by interrupt processing.
This function returns the number of bytes already received during the reception process.
This function stops the reception process and returns the number of bytes received and
copied in the buffer.
This function configures the CRD for transmission and begins the process.
– pBuffer is the address of the buffer containing the data to be transmitted.
– TransmitBufSize is the number of bytes to be transmitted.
This transmission is entirely done by interrupt processing.
This function returns the remaining number of bytes to be transmitted.
10/14
void CRD_StartWaitingTime(void)
void CRD_StopWaitingTime(void)
void CRD_WaitingTime(unsigned long WaitingTimeInEtu)
void CRD_InitReceive(unsigned int ReceiveBufSize, unsigned char * pBuffer)
unsigned int CRD_NumberOfBytesReceived(void)
unsigned int CRD_EndReceive(void)
void CRD_InitTransmit(unsigned int TransmitBufSize, unsigned char * pBuffer)
unsigned int CRD_NumberOfBytesToTransmit(void)
CC
card stabilization delay or delays during the reset proce-

Related parts for AN1527