TABLE OF CONTENTS

 

[Modules] calypso_card_write.c

NAME

   SpringCard Calypso API :: Card command set (write / append / update / increase / decrease)

COPYRIGHT

AUTHOR

   Johann Dantant / PRO ACTIVE

HISTORY

   JDA 21/10/2008 : first public release
   JDA 15/11/2009 : implemented increase / decrease

[Functions] CalypsoCardAppendRecord

NAME

   CalypsoCardAppendRecord

DESCRIPTION

   Add one record into the current EF (must be a cyclic file)

INPUTS

   CALYPSO_CTX_ST *ctx     : library context
   BYTE           sfi      : identifier of the file (0 for current file)
   const BYTE     data[]   : data to be written in the record
   BYTE           datasize : size of the record

RETURNS

   CALYPSO_RC              : 0 or an error code

[Functions] CalypsoCardUpdateBinary

NAME

   CalypsoCardUpdateBinary

DESCRIPTION

   Write bytes into an EF (must be a binary EF)

INPUTS

   CALYPSO_CTX_ST *ctx   : library context
   BYTE           sfi    : identifier of the file (0 for current file)
   WORD           offset : address of first byte
   const BYTE     data[] : data to be written
   BYTE           length : number of bytes

RETURNS

   CALYPSO_RC            : 0 or an error code

[Functions] CalypsoCardUpdateRecord

NAME

   CalypsoCardUpdateRecord

DESCRIPTION

   Update a record in the current EF

WARNING

   On a cyclic file, it is only possible to replace the most recent record (rec_no = 1)
   On a linear file, there's no limitation

INPUTS

   CALYPSO_CTX_ST *ctx     : library context
   BYTE           sfi      : identifier of the file (0 for current file)
   BYTE           rec_no   : identifier of the record
   const BYTE     data[]   : data to be written in the recoed
   BYTE           datasize : size of the record

RETURNS

   CALYPSO_RC              : 0 or an error code

[Functions] CalypsoCardWriteRecord

NAME

   CalypsoCardWriteRecord

DESCRIPTION

   Write over a record in the current EF

WARNING

   On a cyclic file, it is only possible to overwrite the most recent record (rec_no = 1)
   On a linear file, there's no limitation

INPUTS

   CALYPSO_CTX_ST  *ctx     : library context
   BYTE            sfi      : identifier of the file (0 for current file)
   BYTE            rec_no   : identifier of the record
   const BYTE      data[]   : data to be overwritten over the record
   BYTE            datasize : size of the record

RETURNS

   CALYPSO_RC               : 0 or an error code

Generated from calypso_card_write.c on Mon Jan 30 14:25:35 2012