Configure a channel according to a template
#include <xdfio.h>
int xdf_copy_chconf(struct xdfch* dst, const struct xdfch* src);
xdf_copy_chconf() configure the channel referenced by dst using the information described by src.
The function returns 0 in case of success, -1 otherwise.