[avr] introduce 5ms pulse masking
[avr] pass sensor state by pointer