|
sc-hsm-embedded
|
Functions | |
| int | PC_to_RDR_IccPowerOn (scr_t *ctx) |
| int | DetermineBaudrate (int F, int D) |
| int | DecodeATRValues (scr_t *ctx) |
| int | PC_to_RDR_SetParameters (scr_t *ctx) |
| int | PC_to_RDR_GetSlotStatus (scr_t *ctx) |
| int | PC_to_RDR_IccPowerOff (scr_t *ctx) |
| int | PC_to_RDR_XfrBlock (scr_t *ctx, unsigned int outlen, unsigned char *outbuf) |
| int | RDR_to_PC_DataBlock (scr_t *ctx, unsigned int *inlen, unsigned char *inbuf) |
Variables | |
| int | FTable [] = { 372, 372, 558, 744, 1116, 1488, 1860, -1, -1, 512, 768, 1024, 1536, 2048, -1, -1} |
| int | DTable [] = { -1, 1, 2, 4, 8, 16, 32, -1, 12, 20, -1, -1, -1, -1, -1, -1} |
| int DecodeATRValues | ( | scr_t * | ctx | ) |
Decode protocol specified ATR values and store them in the reader context
| ctx | Reader context |
| int DetermineBaudrate | ( | int | F, |
| int | D | ||
| ) |
Calculate the current baudrate depending on the values of F and D
| F | Clock rate conversion integer |
| D | Baud rate adjustment integer |
| int PC_to_RDR_GetSlotStatus | ( | scr_t * | ctx | ) |
Get the current state of the reader slot
| ctx | Reader context |
| int PC_to_RDR_IccPowerOff | ( | scr_t * | ctx | ) |
Power off the ICC in the reader
| ctx | Reader context |
| int PC_to_RDR_IccPowerOn | ( | scr_t * | ctx | ) |
Power on the ICC in the reader and set the ATR and the communication parameters as specified
| ctx | Reader context |
| int PC_to_RDR_SetParameters | ( | scr_t * | ctx | ) |
Set communication protocol parameters (guard time, FI, DI, IFSC)
| ctx | Reader context |
| int PC_to_RDR_XfrBlock | ( | scr_t * | ctx, |
| unsigned int | outlen, | ||
| unsigned char * | outbuf | ||
| ) |
Exchange data block between PC and reader
| ctx | Reader context |
| outlen | Length of outgoing data |
| outbuf | Outgoing data buffer |
| int RDR_to_PC_DataBlock | ( | scr_t * | ctx, |
| unsigned int * | inlen, | ||
| unsigned char * | inbuf | ||
| ) |
Exchange data block between reader and PC
| ctx | Reader context |
| inlen | Length of data buffer/actual length of incoming data |
| inbuf | Incoming data buffer |
| int DTable[] = { -1, 1, 2, 4, 8, 16, 32, -1, 12, 20, -1, -1, -1, -1, -1, -1} |
| int FTable[] = { 372, 372, 558, 744, 1116, 1488, 1860, -1, -1, 512, 768, 1024, 1536, 2048, -1, -1} |