BALTECH Docs |
C API for BALTECH SDK
|
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.
protocol | a protocol handle, where the connected reader shall run the passed command. |
cmd_code | A 16bit code identifiying the exact command to run (bits 0-7 are "command code", bits 8-15 are "device code") |
param_buf | A buffer where command parameter are stored in serialized form. If NULL, it will be ignored. |
param_len | Length of 'param_buf' in bytes. |
cmd_timeout | maximum time this command may require in ms. If its exceeds this time, BRP_ERR_CMD_TIMEOUT is returned. |
mode | specifys run mode ( BRP_MODE_XXX ) |