reverse_bytes
data = reverse_bytes(data, sc->sc_pipe[pipe].length);
static uint32_t reverse_bytes(uint32_t, int);
val = reverse_bytes(val, sc->sc_pipe[channel].length);