2.103.28 SERCOMx_ISO7816_Card_Detect

C

/* x = SERCOM instance number */

bool SERCOMx_ISO7816_Card_Detect( void )

Summary

This API provides the physical card available status.

Description

This API allows the application to detect the physical card available status. The gpio pin configured as input reads high if the card if the card is present in slot else low. The api returns true if the pin is read high and false if the pin is read low.

Precondition

None

Parameters

None

Returns

True - card is detected

False - card not detected

Example

 /* Wait while card detect pin is set */
 while( SERCOM3_ISO7816_Card_Detect() != true )
 {
     /* Do Nothing */
 }

Remarks

None