Hey Seb... So are you are suggesting this, so the flush_packet
procedure must run between each packet?

-- SEND DATA WITHOUT AN ARRAY
for 10 loop            -- loop through all bytes in packet
   slip_send_data(5)   -- send each byte via serial port
end loop
slip_flush_packet()

start_packet and end_packet packet seems a bit more readable and user
friendly. Some people may ask "what does FLUSH mean?"

I am not sure about the tx/rx array feature. Maybe I should just
remove both of those procedures? I'm sure a user would be able to do
it.

Matt.

On Jul 6, 2:04 am, Sebastien Lelong <[email protected]>
wrote:
> Hi Matt,
>
> This looks interesting and have a question about it. You're defining a
> packet length (10 in your sample), then:
>
> -- SEND DATA WITHOUT AN ARRAY
> slip_start_packet()
> for 10 loop            -- loop through all bytes in packet
>    slip_send_data(5)   -- send each byte via serial port (partly SLIP
> encrypted)
> end loop
> slip_end_packet()
>
> Couldn't slip_send_data() handles the max number of data byte in a packet,
> with an internal counter ? This way you wouldn't have to
> call slip_end_packet (and maybe even slip_start_packet). A
> slip_flush_packet() would force the end of a packet, whatever the size, and
> reset counter. This would hide some unnecessary complexity to users. And
> this would allow variable length packet. For this reason I'm not sure how
> useful is TX  array.
>
> Thanks
> Seb
>
> 2010/7/6 mattschinkel <[email protected]>
>
>
>
> > > Later, I want to do all 3 ports. Would I have to set up some sort of
> > > packet to write decimal form byte values to all 3 ports? Any examples
> > > of this out there?
>
> > Hi John, I created a SLIP library and sample + sample, It may be
> > useful for you.
>
> >http://groups.google.com/group/jallib/browse_thread/thread/edda535632...
>
> > You will have to convert the send/receive procedures in the lib to
> > your programming language
>
> > Others, I will try to make a SLIP ISR for a slave PIC. I will use the
> > queue lib. Do we have a ISR slave serial port sample?
>
> > Matt
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "jallib" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<jallib%[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/jallib?hl=en.
>
> --
> Sébastien Lelonghttp://www.sirloon.nethttp://sirbot.org

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to