https://github.com/jbentham/rpi/blob/1f1e541fdd56f105ebee347f70690a649ed6fbf1/rpi_dma_utils.c#L97 Shouldn't there be 1 << ( pin % 32 ) ?