menu "IR protocol"

config IR_PROTO
	bool "IR protocol core"
	help
	  Enable shared IR protocol settings used by send/receive libraries.

if IR_PROTO

menu "IR protocol configuration"

config IR_SEND_CARRIER_HZ
	int "IR carrier frequency (Hz)"
	default 38000
	range 30000 45000
	help
	  Carrier frequency for PWM generation. Standard value is 38 kHz for TSOP48xx receivers.

config IR_SEND_DUTY_CYCLE_PERCENT
	int "Carrier duty cycle (%)"
	default 50
	range 25 75
	help
	  PWM duty cycle percentage. Some receivers prefer 33%, others 50%.
	  Default 50% works with most TSOP-series receivers.

config IR_PROTO_BASE_US
	int "IR base period (microseconds)"
	default 600
	range 300 1000
	help
	  Base timing used for start/mark/space. Default 600 µs (similar to Sony SIRC).

config IR_PROTO_START_MULT
	int "Start burst factor"
	default 4
	range 2 8
	help
	  Start burst duration = base × factor. Default 4× for robust sync.

config IR_PROTO_GAP_MULT
	int "Start gap factor"
	default 1
	range 0 4
	help
	  Gap after start burst (carrier off) = base × factor. 0 disables the gap.

config IR_PROTO_MARK_MULT
	int "Mark factor"
	default 1
	range 1 2
	help
	  Mark duration = base × factor. Default 1×.

config IR_PROTO_SPACE0_MULT
	int "Space0 factor (bit 0)"
	default 1
	range 1 3
	help
	  Space for bit 0 = base × factor. Default 1×.

config IR_PROTO_SPACE1_MULT
	int "Space1 factor (bit 1)"
	default 2
	range 1 4
	help
	  Space for bit 1 = base × factor. Default 2× (double base time).

endmenu

endif

endmenu
