Fujitsu DTV/STB solution driver (FAPex driver) Documentation [V01L00R00]


abst_libicc.c File Reference

abstraction library source file (ICC driver). More...

Functions

static void FAPEX_ICC_Slot1CardInOutThreadFunction (void *optArg)
 smart card status poll thread slot1. This function is called with FAPEX_ICC_Open.
static void FAPEX_ICC_Slot2CardInOutThreadFunction (void *optArg)
 smart card status poll thread slot2. This function is called with FAPEX_ICC_Open.
FAPEXOPENRET_T FAPEX_ICC_Open (FAPEXOPENARG1_T id, FAPEXOPENARG2_T flags, FAPEXOPENARG3_T argptr)
 open method. This function is called with the systemcall "open".
FAPEXRELRET_T FAPEX_ICC_Close (FAPEXRELARG1_T id)
 release method. This function is called with the systemcall "close".
FAPEXREADRET_T FAPEX_ICC_Read (FAPEXREADARG1_T id, FAPEXREADARG2_T buf, FAPEXREADARG3_T count)
 read method. This function is called with the systemcall "read".
FAPEXWRTRET_T FAPEX_ICC_Write (FAPEXWRTARG1_T id, FAPEXWRTARG2_T buf, FAPEXWRTARG3_T count)
 write method. This function is called with the systemcall "write".
FAPEXIOCRET_T FAPEX_ICC_Ioctl (FAPEXIOCARG1_T id, FAPEXIOCARG2_T cmd, FAPEXIOCARG3_T pArg)
 ioctl method. This function is called with the systemcall "ioctl".

Variables

static FAPEX_SYS_ThreadT FAPEX_ICC_Slot1CardThreadHandle
static FAPEX_SYS_ThreadT FAPEX_ICC_Slot2CardThreadHandle
static
FAPEX_ICC_CardNotifierCALLBACK_T 
FAPEX_ICC_CardInCallback1 = NULL
static
FAPEX_ICC_CardNotifierCALLBACK_T 
FAPEX_ICC_CardOutCallback1 = NULL
static
FAPEX_ICC_CardNotifierCALLBACK_T 
FAPEX_ICC_CardInCallback2 = NULL
static
FAPEX_ICC_CardNotifierCALLBACK_T 
FAPEX_ICC_CardOutCallback2 = NULL
static uint32_t Sub_id1 = 0
static uint32_t Sub_id2 = 0

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.

FAPEXOPENRET_T FAPEX_ICC_Open ( FAPEXOPENARG1_T  id,
FAPEXOPENARG2_T  flags,
FAPEXOPENARG3_T  argptr 
)

open method. This function is called with the systemcall "open".

Parameters:
idThe identifier for ICC block descriptor (common descriptor).
flagsThis parameter indicate a open mode (read only/write only/read-write).
This implementation supports only read-write mode.
argptrargument pointer (FAPEX_ICC_OpenParamStrT)
If descriptor for this 'id' has already been opened, this 'argptr' will be invalid.
Return values:
>=0process OK, new file descriptor is returned.
<0process fails, its value is set to errno.
FAPEXRELRET_T FAPEX_ICC_Close ( FAPEXRELARG1_T  id )

release method. This function is called with the systemcall "close".

Parameters:
idThe identifier for ICC block descriptor (common descriptor).
Return values:
0process OK
<0process fails, its value is set to errno.
FAPEXREADRET_T FAPEX_ICC_Read ( FAPEXREADARG1_T  id,
FAPEXREADARG2_T  buf,
FAPEXREADARG3_T  count 
)

read method. This function is called with the systemcall "read".

Parameters:
idThe identifier for ICC card descriptor (sub descriptor).
bufThe pointer to the destination buffer which is in the user space.
countThe data size.
Return values:
>=0process OK, its value is the number of bytes actually read.
<0process fails, its value is set to errno.
FAPEXWRTRET_T FAPEX_ICC_Write ( FAPEXWRTARG1_T  id,
FAPEXWRTARG2_T  buf,
FAPEXWRTARG3_T  count 
)

write method. This function is called with the systemcall "write".

Parameters:
idThe identifier for ICC card descriptor (sub descriptor).
bufThe pointer to the source buffer which is in the user space.
countThe data size.
Return values:
>=0process OK, its value is the number of bytes actually write.
<0process fails, its value is set to errno.
FAPEXIOCRET_T FAPEX_ICC_Ioctl ( FAPEXIOCARG1_T  id,
FAPEXIOCARG2_T  cmd,
FAPEXIOCARG3_T  pArg 
)

ioctl method. This function is called with the systemcall "ioctl".

Parameters:
idThe identifier for this descriptor.
cmdThe ioctl command.
pArgThe pointer to the argument of the ioctl command.
Return values:
0process OK
<0process fails, its value is set to errno.

ioctl command(cmd) type:


Variable Documentation

uint32_t Sub_id1 = 0 [static]
uint32_t Sub_id2 = 0 [static]


Copyright © 2006-2010 by Fujitsu Semiconductor Europe GmbH
Copyright © 2008-2010 by Fujitsu Semiconductor Limited

Disclaimer:
Please note that the use of this has been based on the terms and conditions of "DK Consent Letter (For Linux)" agreement between you and Fujitsu Semiconductor Limited.
The contents of this document may be revised without prior notice. Contact our sales department for confirmation. The information in this document are presented as is, no license is granted by implication or otherwise.
More...

FUJITSU sales representatives