added documentation for sc_get_max_recv/send_size

This commit is contained in:
Frank Morgner 2015-08-26 22:01:26 +02:00
parent 2d9802308f
commit fc02cb1093
1 changed files with 21 additions and 0 deletions

View File

@ -910,7 +910,28 @@ int sc_lock(struct sc_card *card);
*/
int sc_unlock(struct sc_card *card);
/**
* @brief Calculate the maximum size of R-APDU payload (Ne).
*
* Takes card limitations into account such as extended length support as well
* as the reader's limitation for data transfer.
*
* @param card Initialized card object with its reader
*
* @return maximum Ne
*/
size_t sc_get_max_recv_size(const sc_card_t *card);
/**
* @brief Calculate the maximum size of C-APDU payload (Nc).
*
* Takes card limitations into account such as extended length support as well
* as the reader's limitation for data transfer.
*
* @param card
*
* @return maximum Nc
*/
size_t sc_get_max_send_size(const sc_card_t *card);