C API for BALTECH SDK

§ brp_UsbHost_TransSetupIn()

brp_errcode brp_UsbHost_TransSetupIn ( brp_protocol  protocol,
brp_buf  SetupData,
unsigned  PipeNo,
unsigned  Timeout,
brp_buf InData,
size_t *  InData_len,
brp_mempool mempool 
)

Transfers a SETUP transaction with a IN DATA stage.

Parameters
[in]protocolused to execute the command
[in]SetupDataData to transfer in SETUP stage.
[in]PipeNoNumber of pipe.
[in]TimeoutTimeout for transaction.
[out]InDataResulting data.
[out]InData_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