how to code for ads7828

i am new to bb-xm. i have interfaced the ads7828 to i2c . a photodiode is connected to 1 channel of ads.pllzzz tell how to write the code to access data from photodiode. plz tell the whole procedure starting from ads header???
plz help
regards