abstraction library source file (ICC driver).
More...
Detailed Description
abstraction library source file (ICC driver).
These function is executed in user space.
- Attention:
- This program is provided as is. You can redistribute it and/or modify it. Fujitsu Semiconductor Limited accepts no responsibility or liability for any errors or omissions.
Copyright (C) 2008-2010 Fujitsu Semiconductor Limited, All Rights Reserved.
Function Documentation
static void FAPEX_ICC_Slot1CardInOutThreadFunction |
( |
void * |
optArg ) |
[static] |
smart card status poll thread slot1. This function is called with FAPEX_ICC_Open.
static void FAPEX_ICC_Slot2CardInOutThreadFunction |
( |
void * |
optArg ) |
[static] |
smart card status poll thread slot2. This function is called with FAPEX_ICC_Open.
open method. This function is called with the systemcall "open".
- Parameters:
-
id | The identifier for ICC block descriptor (common descriptor). |
flags | This parameter indicate a open mode (read only/write only/read-write).
This implementation supports only read-write mode. |
argptr | argument pointer (FAPEX_ICC_OpenParamStrT)
If descriptor for this 'id' has already been opened, this 'argptr' will be invalid. |
- Return values:
-
>=0 | process OK, new file descriptor is returned. |
<0 | process fails, its value is set to errno. |
release method. This function is called with the systemcall "close".
- Parameters:
-
id | The identifier for ICC block descriptor (common descriptor). |
- Return values:
-
0 | process OK |
<0 | process fails, its value is set to errno. |
read method. This function is called with the systemcall "read".
- Parameters:
-
id | The identifier for ICC card descriptor (sub descriptor). |
buf | The pointer to the destination buffer which is in the user space. |
count | The data size. |
- Return values:
-
>=0 | process OK, its value is the number of bytes actually read. |
<0 | process fails, its value is set to errno. |
write method. This function is called with the systemcall "write".
- Parameters:
-
id | The identifier for ICC card descriptor (sub descriptor). |
buf | The pointer to the source buffer which is in the user space. |
count | The data size. |
- Return values:
-
>=0 | process OK, its value is the number of bytes actually write. |
<0 | process fails, its value is set to errno. |
ioctl method. This function is called with the systemcall "ioctl".
- Parameters:
-
id | The identifier for this descriptor. |
cmd | The ioctl command. |
pArg | The pointer to the argument of the ioctl command. |
- Return values:
-
0 | process OK |
<0 | process fails, its value is set to errno. |
ioctl command(
cmd) type:
Variable Documentation