Mac OS X Internals: The Book Forum Index Mac OS X Internals: The Book
Forums
 
SearchSearch   MemberlistMemberlist  RegisterRegister 
 ProfileProfile   Log inLog in 
Mission Statement | Rules | Terms of Forum Use       osxbook.com | Blog


Help - digging deeper into the Motion/Light Sensor example

 
Post new topic   Reply to topic    Mac OS X Internals: The Book Forum Index -> Mac OS X
View previous topic :: View next topic  
Author Message
rgreen103



Joined: 21 Nov 2006
Posts: 1

PostPosted: Tue Nov 21, 2006 12:47 pm    Post subject: Help - digging deeper into the Motion/Light Sensor example Reply with quote

I am trying to understand a little deeper the example code here on accessing the Motion/Light Sensor. What I am looking for is the technique that was used to get the function index used in IOConnectMethodScalarIScalarO. From the example I see for instance that kGetLEDBrightnessID = 1 which is the index of getSensorReading(int *, int *) . I would like to know how this index value of 1 was determined. Any help would be greatly appreciated.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Mac OS X Internals: The Book Forum Index -> Mac OS X All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB (FAQ)
All contents of this site, unless otherwise noted, are ©1994-2008 Amit Singh. All Rights Reserved. Terms of Use