Corrected PPG Units and bit patterns

In the hardware implementations for the PPG, some details are different
from the original specifications and these have been corrected in the
code to match the hardware; The durations are specified in ns rather
than ms, bit pattern definitions have changed.