IR receiver --> arduino --> raspi

Hi all,
Apologies if this has already been discussed, seraching didn't yield any results.

In short, I'm using IR receiver connected to arduino uno. Using Schirf IR remote library (GitHub - Arduino-IRremote/Arduino-IRremote: Infrared remote library for Arduino: send and receive infrared signals with multiple protocols) to decode results. Everything works perfectly.
However, now im trying to forward raw codes from remote using the same method through arduino Analog pin (A0) to other microcontroller (in this case Raspberry pi) which has Lirc installed.

Problem is when i monitor from ssh in raspberry, using irw and mode2, Im not getting any results. I have serial monitor open on arduino part, and it show raw codes.

Can you, in first place, send raw codes from IR receiver using analogWrite?

thx in advance

is it possible to generate those pulses and send them using PWM to raspi. Or maybe to transfer information using I2C, but Im stuck with what to do after that.. how to trigger lirc, etc.