Search the Code Example forum - I posted examples (using RF) to send/receive it a few years back. X-10 uses it for their RF remotes.

You can also find RF code here...

The RF code uses slightly different timing (shorter start sequence) but you should be able to handle that. And IR is usually active low while RF is active high.