PC Review


Reply
Thread Tools Rate Thread

How to design I2C communication functionality

 
 
gol
Guest
Posts: n/a
 
      24th Dec 2008
Hi,
I have a question about how to design my classes in the following situation:

I have a communication port. It connects to an I2C bus. Through this port I
can communicate to a number of devices on the I2C bus. I am always the master
on the I2C bus. With each device I have a different protocol.

I think it will be ok to leave the port open all the time, and communicate
each time with a different device. It seems to me that it will be good to
have one class for the I2C communication, and then have a number of classes,
one for each device communicating with the I2C, that use the methods of the
I2C class.

However, I'm afraid of mixing I2C operations between several devices.
I may need to use some synchronization mechanism here, but I don't know
exactly what and how to do
..
Can someone please shed some light on the issue?
Thank you very much

 
Reply With Quote
 
 
 
Reply

Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Do plugins give new functionality or different functionality? jmDesktop Microsoft C# .NET 4 30th Aug 2008 09:02 PM
Design tags functionality Tem Microsoft ASP .NET 5 28th Dec 2007 11:38 AM
Client\Server Communication Design Jeff Microsoft Windows 2000 Networking 0 30th May 2006 10:02 PM
Forms design and resizable functionality pinocchio Microsoft C# .NET 1 6th Mar 2004 02:06 AM
Can't use functionality in design mode?? Help me! Shankar Microsoft Access 0 19th Aug 2003 04:16 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:41 PM.