Changeset 1133 for trunk/csctapi/icc_async.c
- Timestamp:
- 01/09/10 08:29:23 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/csctapi/icc_async.c
r1125 r1133 73 73 74 74 /* Activate ICC */ 75 #ifdef SCI_DEV 75 76 if (IFD_Towitoko_ActivateICC (ifd) != IFD_TOWITOKO_OK) 76 77 return ICC_ASYNC_IFD_ERROR; 78 #endif 77 79 /* Reset ICC */ 78 80 if (IFD_Towitoko_ResetAsyncICC (ifd, &(icc->atr)) != IFD_TOWITOKO_OK) … … 210 212 } 211 213 214 #ifndef NO_PAR_SWITCH 212 215 int ICC_Async_BeginTransmission (ICC_Async * icc) 213 216 { 214 217 /* Setup parity for this ICC */ 215 #ifndef NO_PAR_SWITCH216 218 if (icc->convention == ATR_CONVENTION_INVERSE) 217 219 { … … 234 236 return ICC_ASYNC_IFD_ERROR; 235 237 */ 236 #endif 237 return ICC_ASYNC_OK; 238 } 238 return ICC_ASYNC_OK; 239 } 240 241 int ICC_Async_EndTransmission (ICC_Async * icc) 242 { 243 /* Restore parity */ 244 if (IFD_Towitoko_SetParity (icc->ifd, IFD_TOWITOKO_PARITY_NONE) != IFD_TOWITOKO_OK) 245 return ICC_ASYNC_IFD_ERROR; 246 247 return ICC_ASYNC_OK; 248 } 249 #endif 239 250 240 251 int ICC_Async_Transmit (ICC_Async * icc, unsigned size, BYTE * data) … … 283 294 } 284 295 285 int ICC_Async_EndTransmission (ICC_Async * icc)286 {287 #ifndef NO_PAR_SWITCH288 /* Restore parity */289 if (IFD_Towitoko_SetParity (icc->ifd, IFD_TOWITOKO_PARITY_NONE) != IFD_TOWITOKO_OK)290 return ICC_ASYNC_IFD_ERROR;291 #endif292 293 return ICC_ASYNC_OK;294 }295 296 296 ATR * ICC_Async_GetAtr (ICC_Async * icc) 297 297 { … … 307 307 { 308 308 /* Dectivate ICC */ 309 #ifdef SCI_DEV 309 310 if (IFD_Towitoko_DeactivateICC (icc->ifd) != IFD_TOWITOKO_OK) 310 311 return ICC_ASYNC_IFD_ERROR; 312 #endif 311 313 312 314 /* LED Off */
Note:
See TracChangeset
for help on using the changeset viewer.