C API for BALTECH SDK

§ brp_DHWCtrl_Ser2WriteRead()

brp_errcode brp_DHWCtrl_Ser2WriteRead ( brp_protocol  protocol,
unsigned  MaxReadCount,
unsigned  Timeout,
brp_buf  WriteData,
size_t  WriteData_len,
brp_buf ReadData,
size_t *  ReadData_len,
brp_mempool mempool 
)

Write/Read data to/from the reader's 2nd RS-232/UART interface.

Parameters
[in]protocolused to execute the command
[in]MaxReadCountNumber of Bytes to read via the reader's 2nd RS-232/UART interface.
[in]TimeoutNumber of milliseconds to wait for Bytes.
[in]WriteDataData to write to the reader's 2nd RS-232/UART interface.
[in]WriteData_len
[out]ReadDataData read from the reader's 2nd RS-232/UART interface.
[out]ReadData_len
[in]mempoolis used to store response data. Maybe NULL to use an internal mempool, in this case the data is only available until another command uses the internal mempool