Hi Charles
Thanks for the info. I will most definitively consult you for the code. 
I did go through it and I think I understand the logic. I will want to 
break it up into smaller code segments or procedures. I am an embedded 
programmer so my approach is always from a hardware point of view.

This is what I am thinking for now.

1: I want to wrap the bits and byte code in a message wrapper to start 
with.4
2: I want to supply an array of programmable device parameters that will 
be used by an init procedure.
3: Some parameters will provide the addresses of the read and write 
locations on the i2c device.
4: The start and stop bits that are timing critical will run once every 
thread cycle but the data bytes will run contiguous with the possibility 
to be interrupted by the RT code


On 2014-05-14 11:48, Charles Steinkuehler wrote:
> On 5/14/2014 12:33 AM, Marius Liebenberg wrote:
>> Hi Charles
>> If I do that will it include all the required stuff?
> Yes, it should.  The --preprocess switch for the comp command turns it
> into a regular C source code file you can compile (or edit).  I used
> this feature a lot when starting with the comp file format, so I could
> figure out what was happening with things like array parameters.
>
>> I am using your i2c that you did for the reprap but I need to make it a
>> bit more generic. I need to break the code up into callable procedures
>> in order to cater for more generic i2c driven components. Some need a
>> lot of setting up and others dont.
>> I would also like to get the bit stream a bit faster if possible. I will
>> use a state machine at message level rather than at bit and byte level.
>> If possible at all.
> Yes, the code I wrote was intended to be run in hardware (it came from a
> VHDL I2C controller I wrote some time ago), and really wants to have a
> fast clock.  It works OK if you have a fast base thread running.
>
> Let me know if you need any help understanding the code.  The control
> logic might be a bit confusing since it started life as a hardware
> design and got ported to software.
>
>
>
> ------------------------------------------------------------------------------
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.
> Get unparalleled scalability from the best Selenium testing platform available
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
>
>
> _______________________________________________
> Emc-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-developers

-- 

Regards /Groete

Marius D. Liebenberg
+27 82 698 3251
+27 12 743 6064
QQ 1767394877

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to