Looking for a way to send IR codes as decimal pulses.

I want to be able to send a basic code of 1 then wait 40ms and send another 1 or 0, and to read it. I am using an IR receiver and IR transmitter. Is this possible?

Is this possible?

Yes.

Yes. But why not maybe use a more common/rugged protocol?

https://www.vishay.com/docs/80071/dataform.pdf