BALTECH SDK wrapper functions reference

§ brp_Sys_GetBufferSize()

brp_errcode brp_Sys_GetBufferSize ( brp_Sys_GetBufferSize_t  params)

This command returns the maximum sizes of command and response frames that the reader can send and receive.

This information is indicated by 3 return values: MaxSendSize , MaxRecvSize , and TotalSize. They're determined by the firmware.

You need to comply with all 3 values in your application: It's not enough if the command frame size and the expected response frame size are each smaller than or equal to MaxSendSize and MaxRecvSize , respectively. Their combined frame size must not exceed TotalSize either. If all 3 values are < 128 bytes, you don't need to use Sys_GetBufferSize because this is the minimum size that all BALTECH readers support.

Parameters
[in]paramsStruct with the following fields:
  • protocol used to execute the command
  • MaxSendSize (out) Maximum number of bytes in command frame
  • MaxRecvSize (out) Maximum number of bytes in response frame
  • TotalSize (out) Maximum number of bytes in command and response frame combined