- Timestamp:
- 07/10/11 22:37:43 (13 years ago)
- Location:
- branches/dynamic-threads/csctapi
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/dynamic-threads/csctapi/icc_async.c
r5598 r5599 1079 1079 call (Sci_WriteSettings (reader, reader->protocol_type, reader->mhz / 100, ETU, WWT, reader->BWT, reader->CWT, EGT, 5, (unsigned char)I)); //P fixed at 5V since this is default class A card, and TB is deprecated 1080 1080 #elif defined(COOL) 1081 call (Cool_SetClockrate(reader ));1081 call (Cool_SetClockrate(reader, reader->mhz)); 1082 1082 call (Cool_WriteSettings (reader, reader->BWT, reader->CWT, EGT, BGT)); 1083 1083 #elif defined(WITH_STAPI) -
branches/dynamic-threads/csctapi/ifd_cool.c
r5598 r5599 61 61 int32_t Cool_Reset (struct s_reader *reader, ATR * atr) 62 62 { 63 call (Cool_SetClockrate(reader ));63 call (Cool_SetClockrate(reader, 357)); 64 64 65 65 //reset card … … 98 98 } 99 99 100 int32_t Cool_SetClockrate (struct s_reader *reader )100 int32_t Cool_SetClockrate (struct s_reader *reader, int32_t mhz) 101 101 { 102 102 uint32_t clk; 103 int32_t mhz = reader->mhz;104 103 clk = mhz * 10000; 105 104 call (cnxt_smc_set_clock_freq (specdev()->handle, clk)); -
branches/dynamic-threads/csctapi/ifd_cool.h
r5598 r5599 10 10 int32_t Cool_Transmit (struct s_reader *reader, BYTE * buffer, uint32_t size); 11 11 int32_t Cool_Receive (struct s_reader *reader, BYTE * buffer, uint32_t size); 12 int32_t Cool_SetClockrate (struct s_reader *reader );12 int32_t Cool_SetClockrate (struct s_reader *reader, int32_t mhz); 13 13 int32_t Cool_FastReset (struct s_reader *reader); 14 14 int32_t Cool_GetStatus (struct s_reader *reader, int32_t * in);
Note:
See TracChangeset
for help on using the changeset viewer.