NAME
SpringCard Calypso API :: Card command set (write / append / update / increase / decrease)
COPYRIGHT
(c) 2008 PRO ACTIVE SAS - See LICENCE.txt for licence information
AUTHOR
Johann Dantant / PRO ACTIVE
HISTORY
JDA 21/10/2008 : first public release JDA 15/11/2009 : implemented increase / decrease
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
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
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
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