Changeset 1239 for branches/smartreader/csctapi/icc_async.c
- Timestamp:
- 01/15/10 19:56:48 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/smartreader/csctapi/icc_async.c
r1225 r1239 210 210 unsigned np=0; 211 211 212 /* LED Red */213 if (IFD_Towitoko_SetLED () != IFD_TOWITOKO_OK)214 return ICC_ASYNC_IFD_ERROR;215 216 212 /* Initialize Baudrate */ 217 213 if (IFD_Towitoko_SetBaudrate (ifd, ICC_ASYNC_BAUDRATE)!= IFD_TOWITOKO_OK) … … 224 220 #ifdef SCI_DEV 225 221 if (reader[ridx].typ == R_INTERNAL) { 226 if (!Sci_Reset( ifd,&(icc->atr)))222 if (!Sci_Reset(&(icc->atr))) 227 223 { 228 224 icc->atr = NULL; … … 272 268 #endif 273 269 *///really should let PPS handle this 274 /* LED Green */275 if (IFD_Towitoko_SetLED () != IFD_TOWITOKO_OK)276 {277 ATR_Delete (icc->atr);278 icc->atr = NULL;279 icc->convention = 0;280 281 return ICC_ASYNC_IFD_ERROR;282 }283 270 284 271 /* Initialize member variables */ … … 288 275 if (icc->convention == ATR_CONVENTION_INVERSE) 289 276 { 290 if ( IFD_Towitoko_SetParity (icc->ifd, IFD_TOWITOKO_PARITY_ODD) != IFD_TOWITOKO_OK)277 if (!IO_Serial_SetParity (PARITY_ODD)) 291 278 return ICC_ASYNC_IFD_ERROR; 292 279 } 293 280 else if(icc->protocol_type == ATR_PROTOCOL_TYPE_T14) 294 281 { 295 if ( IFD_Towitoko_SetParity (icc->ifd, IFD_TOWITOKO_PARITY_NONE) != IFD_TOWITOKO_OK)282 if (!IO_Serial_SetParity (PARITY_NONE)) 296 283 return ICC_ASYNC_IFD_ERROR; 297 284 } 298 285 else 299 286 { 300 if ( IFD_Towitoko_SetParity (icc->ifd, IFD_TOWITOKO_PARITY_EVEN) != IFD_TOWITOKO_OK)287 if (!IO_Serial_SetParity (PARITY_EVEN)) 301 288 return ICC_ASYNC_IFD_ERROR; 302 289 } … … 452 439 return ICC_ASYNC_IFD_ERROR; 453 440 454 /* LED Off */455 if (IFD_Towitoko_SetLED () != IFD_TOWITOKO_OK)456 return ICC_ASYNC_IFD_ERROR;457 458 441 /* Delete atr */ 459 442 ATR_Delete (icc->atr);
Note:
See TracChangeset
for help on using the changeset viewer.