C API for BALTECH SDK

§ brp_send_cmd()

BRP_LIB brp_errcode brp_send_cmd ( brp_protocol  protocol,
int  cmd_code,
brp_buf  param_buf,
size_t  param_len,
brp_time  cmd_timeout,
int  mode 
)

Sends a command frame via a BRP protocol.

Returns
A error code indicating the success of the execution of the command.
Parameters
protocola protocol handle, where the connected reader shall run the passed command.
cmd_codeA 16bit code identifiying the exact command to run (bits 0-7 are "command code", bits 8-15 are "device code")
param_bufA buffer where command parameter are stored in serialized form. If NULL, it will be ignored.
param_lenLength of 'param_buf' in bytes.
cmd_timeoutmaximum time this command may require in ms. If its exceeds this time, BRP_ERR_CMD_TIMEOUT is returned.
modespecifys run mode ( BRP_MODE_XXX )