call back function is not calling

Share your code with other community members. Please do not ask for code here; use the appropriate product forum instead.

call back function is not calling

Postby prakash12345 » Thu May 16, 2013 5:02 am

Hi,

I am using DEV studio 2.2.1.
I was downloded the GPS simple Sample code from the samples given in the IDE,
in that code they are used one call back function in gps_simpleEventHandler(), but its not called. can you guide me what is the purpose of callback function, and when that functions should called?

the following code i am used
eRetStatus = gps_pvtSetOpts( GPS_OPT_PVT_HANDLER, gps_simplePvtHandler
, GPS_OPT_PVT_RATE, SEC_TO_MS(GPS_SIMPLE_PVT_OUTPUT_RATE)
, GPS_OPT_END);
GSM modue:SL6087
GPS module:XM0110
communication:I2c (Sl6087 communicate to xm0110 thriugh i2c communication)

not only in this sample code all the sample codes are not called these type of functions?
so can anyone explain me what is the exact definition of these functions, whether these functions are expect any unsolicited responses to executed it?

thanks
prakash12345
 
Posts: 60
Joined: Fri Nov 23, 2012 3:19 am
Has thanked: 0 time
Have thanks: 0 time

Re: call back function is not calling

Postby Rex_alex » Tue May 21, 2013 1:46 pm

Hi,

gps_simpleEventHandler is the the Library callback event handler that will manage all events from the Library
state machine.This call back is passed as parameter in gps_init function.
gps_init API will initialize the library interface and sets the Library in GPS_INITIALIZED state.

So, this handler will be called to manage all the GPS library plug in events on initialisation of library.

Thanks.
User avatar
Rex_alex
 
Posts: 1395
Joined: Thu Jan 01, 1970 12:00 am
Has thanked: 0 time
Have thanks: 84 times

Re: call back function is not calling

Postby prakash12345 » Mon May 27, 2013 4:32 am

Hi,
I get an idea from your reply, but if i am put some trace strings inside of these functions is not come in trace window.
so how we know whether those functions are executed?


Thanks
prakash12345
 
Posts: 60
Joined: Fri Nov 23, 2012 3:19 am
Has thanked: 0 time
Have thanks: 0 time


Return to Sample code

Who is online

Users browsing this forum: No registered users and 1 guest