Go to Post Man, Earthquakes all over the place, Volcanos and clouds of ashes, S&Ps down 25 pts! and now 1114 is first seed and going to probably pick 469... yep, id say the end of the world is near - scessama [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 31-01-2017, 19:28
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 675
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
I2C class

We are planning to write some I2C code and am looking at the I2C class. It seems this class only provides synchronous access to an I2C device. Is this correct? If so, is there a class that will provide asynchronous access? I.e. providing methods to check if the bus is not busy so we can fire off a bus transaction and either have a callback when the data is ready to be read or some sort of isCompleted() method to check if the transaction is completed.
__________________
Reply With Quote
  #2   Spotlight this post!  
Unread 03-02-2017, 23:40
codedr codedr is offline
Registered User
FRC #0537
Team Role: Mentor
 
Join Date: Mar 2010
Rookie Year: 2009
Location: Wisconsin
Posts: 75
codedr will become famous soon enoughcodedr will become famous soon enough
Re: I2C class

Why not start a thread and process your I2C requests inside of it?
Post your results in the class and provide a method to call from the robot main loop to fetch the most current value.
Reply With Quote
  #3   Spotlight this post!  
Unread 04-02-2017, 00:28
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 675
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: I2C class

Yep, that's what we came to that conclusion.
__________________
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:55.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi