menuconfig IR_RECV
	bool "IR Receiver"
	select ADC
	select DMA
	help
	  Enable support for receiving IR signals using the ADC and DMA.

if IR_RECV 
	config IR_RECV_SIMULATOR
		bool "Enable IR receiver simulator"
		select ENTROPY_GENERATOR
		help
			Replaces real ADC/Hardware input with a software-based sample generator
			for protocol testing.

	config IR_RECV_BUFFER_COUNT
		int "Number of DMA buffers"
		default 8
		range 2 16
		help
			Number of buffers in the circular chain to handle CPU jitter.

	config IR_RECV_SAMPLES_PER_BUFFER
		int "Samples per channel per buffer"
		default 32
		help
			Number of samples for each of the 4 channels (3x IR, 1x Vbat) per buffer.

	config IR_RECV_INVERT_SIGNAL
		bool "Invert IR input signal"
		default n
		help
			Invert logic: High-level means IR carrier detected.

	# Logging configuration for the IR Receiver module
    module = IR_RECV
    module-str = ir_recv
    source "subsys/logging/Kconfig.template.log_config"
endif