Infrared remote library for Arduino: send and receive infrared signals with multiple protocols Port from Arduino-IRremote https://github.com/z3t0/Arduino-IRremote

Dependents:   mbed-os-example-FinalReal_copy

Revision:
8:9d9b1e1f9b1b
Parent:
4:5e46ae042bc7
--- a/irRecv.cpp	Thu Mar 10 15:39:34 2016 +0000
+++ b/irRecv.cpp	Sun Jun 16 04:49:45 2019 +0000
@@ -102,11 +102,11 @@
 void  IRrecv::enableIRIn ( )
 {
 	_ticker.detach();
-	_ticker.attach_us(this, &IRrecv::timer_isr, USECPERTICK);
+	_ticker.attach_us(this, &IRrecv::timer_isr, USECPERTICK); //  100ms마다, "timer_isr" 메소드 실행
 
 	// Initialize state machine variables
-	irparams.rcvstate = STATE_IDLE;
-	irparams.rawlen = 0;
+	irparams.rcvstate = STATE_IDLE; // irparams라는 구조체의 muchine state를 의미하는 변수에 STATE_IDLE 상태(아마도 초기상태) 할당
+	irparams.rawlen = 0; // raw buffer의 length 0으로 초기화 
 }
 
 //+=============================================================================