Adpd144RI software code example?

I want to know how to realize the embedded software of 144R, how to obtain infrared and infrared data, and how to know which is red data and which is infrared data from A slot or B.