src/xfr.c File Reference

#include <ccid.h>
#include "ccid-internal.h"
Include dependency graph for xfr.c:

Go to the source code of this file.

Defines

#define MIN_RESP_LEN   2U

Functions

struct _xfr_xfr_do_alloc (size_t txbuf, size_t rxbuf)
xfr_t xfr_alloc (size_t txbuf, size_t rxbuf)
 Allocate a transaction buffer.
void xfr_reset (xfr_t xfr)
 Reset a transaction buffer buffer.
int xfr_tx_byte (xfr_t xfr, uint8_t byte)
 Append a byte of data to the transmit buffer.
int xfr_tx_buf (xfr_t xfr, const uint8_t *ptr, size_t len)
 Append a string of bytes to the transmit buffer.
uint8_t xfr_rx_sw1 (xfr_t xfr)
 Retrieve status word 1 from the receive buffer.
uint8_t xfr_rx_sw2 (xfr_t xfr)
 Retrieve status word 2 from the receive buffer.
const uint8_t * xfr_rx_data (xfr_t xfr, size_t *len)
 Retrieve data portion of the receive buffer.
void _xfr_do_free (struct _xfr *xfr)
void xfr_free (xfr_t xfr)
 Free a transaction buffer.

Define Documentation

#define MIN_RESP_LEN   2U

Definition at line 13 of file xfr.c.

Referenced by xfr_rx_data(), xfr_rx_sw1(), and xfr_rx_sw2().


Function Documentation

struct _xfr* _xfr_do_alloc ( size_t  txbuf,
size_t  rxbuf 
) [read]

Definition at line 15 of file xfr.c.

References _xfr::x_rxbuf, _xfr::x_rxhdr, _xfr::x_rxmax, _xfr::x_txbuf, _xfr::x_txhdr, and _xfr::x_txmax.

Referenced by cci_probe(), and xfr_alloc().

Here is the caller graph for this function:

void _xfr_do_free ( struct _xfr xfr  ) 

Definition at line 155 of file xfr.c.

Referenced by cci_close(), cci_probe(), and xfr_free().

Here is the caller graph for this function:

Generated on Sun Jan 2 08:36:04 2011 for ccid-utils by  doxygen 1.6.3