Convert CDC DMARead to C function