fixed issues; - missing var channel - missing defines for offsets - missing returns for 2 error cases
fixed issues;
- missing var channel
- missing defines for offsets
- missing returns for 2 error cases

Tieske/rpi-gpio,Tieske/rpi-gpio,Tieske/rpi-gpio,Tieske/rpi-gpio