C API for BALTECH SDK
ftob.h File Reference

Ftob card commands. More...

#include "../typedefs.h"

Go to the source code of this file.

Macros

#define BRP_Ftob_ErrInvalidFilename   BRP_ERR_STATUS(0x0300, 0x01)
 The specified file name is not supported by the reader. More...
 
#define BRP_Ftob_ErrFileAccessDenied   BRP_ERR_STATUS(0x0300, 0x02)
 Permission missing to read/write file. More...
 
#define BRP_Ftob_ErrWriteBlock   BRP_ERR_STATUS(0x0300, 0x03)
 Cannot write data. More...
 
#define BRP_Ftob_ErrReadBlock   BRP_ERR_STATUS(0x0300, 0x04)
 Cannot read data. More...
 
#define BRP_Ftob_ErrNoFileActive   BRP_ERR_STATUS(0x0300, 0x05)
 Cannot transfer data without opening a file. More...
 
#define BRP_Ftob_ErrOutOfMemory   BRP_ERR_STATUS(0x0300, 0x06)
 Filesystem ran out of memory. More...
 
#define BRP_Ftob_ErrBroken   BRP_ERR_STATUS(0x0300, 0x07)
 Transfer was broken prematurely with FinishTransfer. More...
 

Functions

brp_errcode brp_Ftob_OpenReadFile (brp_protocol protocol, brp_buf Filename, size_t Filename_len)
 This commands starts reading a file from the reader. More...
 
brp_errcode brp_Ftob_OpenWriteFile (brp_protocol protocol, brp_buf Filename, size_t Filename_len, unsigned *MaxBlockLen)
 This commands starts writing a file to the reader. More...
 
brp_errcode brp_Ftob_ReadFileBlock (brp_protocol protocol, bool ToggleBit, unsigned MaxBlockLength, brp_buf *BlockData, size_t *BlockData_len, brp_mempool *mempool)
 Use this command to receive a file block by block. More...
 
brp_errcode brp_Ftob_WriteFileBlock (brp_protocol protocol, bool ToggleBit, brp_buf BlockData, size_t BlockData_len)
 This command writes a file block by block. More...
 
brp_errcode brp_Ftob_CloseFile (brp_protocol protocol, bool Success)
 This commands quits transferring a file. More...
 

Detailed Description

Ftob card commands.

Definition in file ftob.h.