C API for BALTECH SDK

§ brp_set_io()

BRP_LIB brp_errcode brp_set_io ( brp_protocol  protocol,
brp_protocol  io_protocol 
)

Assigns an I/O protocol to a composite protocol (protocol stack).

This is similar to the following call:

brp_set_layer(protocol, BRP_LAYERID_IO, io_protocol).

Attention: In contrary to brp_set_layer 'io_protocol' will be destroyed if this call fails for some reason (brp_destroy() must not be called in this case)!

Parameters
protocolthe composite protocol, which I/O shall be set.
io_protocolthe new I/O protocol of the composite prot.