linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* wait between bytes
@ 2011-03-14  4:24 Tom
       [not found] ` <AANLkTinPtp3h4uv_jvHjms02h9a-GbH=NtObQPEjVj2S-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Tom @ 2011-03-14  4:24 UTC (permalink / raw)
  To: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Hi Everyone,

Does SPI framework have a mechanism to insert a delay between the bytes of a
multi-byte message (transmission or reception).
i.e to handle scenarios where

   1. the master is operating at a high frequency
   2. slave at a lesser frequency
   3. a gpio is used as a slave select
   4. and byte by byte transfer using multiple spi_write is not a choice.

Regards,
Tom
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: wait between bytes
       [not found] ` <AANLkTinPtp3h4uv_jvHjms02h9a-GbH=NtObQPEjVj2S-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2011-03-14 19:11   ` Grant Likely
       [not found]     ` <20110314191126.GB16096-MrY2KI0G/OVr83L8+7iqerDks+cytr/Z@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Grant Likely @ 2011-03-14 19:11 UTC (permalink / raw)
  To: Tom; +Cc: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

On Mon, Mar 14, 2011 at 09:54:50AM +0530, Tom wrote:
> Hi Everyone,
> 
> Does SPI framework have a mechanism to insert a delay between the bytes of a
> multi-byte message (transmission or reception).
> i.e to handle scenarios where
> 
>    1. the master is operating at a high frequency
>    2. slave at a lesser frequency
>    3. a gpio is used as a slave select
>    4. and byte by byte transfer using multiple spi_write is not a choice.

Yes.  See the delay_usec field in struct spi_transfer.

g.


------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: wait between bytes
       [not found]     ` <20110314191126.GB16096-MrY2KI0G/OVr83L8+7iqerDks+cytr/Z@public.gmane.org>
@ 2011-03-14 22:10       ` Tom
       [not found]         ` <AANLkTimYghAYwNQSW26=j4SnYkC_6d5frcAjkgNzF7kW-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Tom @ 2011-03-14 22:10 UTC (permalink / raw)
  To: Grant Likely; +Cc: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Hi,

I thought delay_usec is to create delay between transfers (i.e message
transfers ).
Can it be used to create delay between bytes of a single message transfer?

Regards,
Tom

On Tue, Mar 15, 2011 at 12:41 AM, Grant Likely <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org>wrote:

> On Mon, Mar 14, 2011 at 09:54:50AM +0530, Tom wrote:
> > Hi Everyone,
> >
> > Does SPI framework have a mechanism to insert a delay between the bytes
> of a
> > multi-byte message (transmission or reception).
> > i.e to handle scenarios where
> >
> >    1. the master is operating at a high frequency
> >    2. slave at a lesser frequency
> >    3. a gpio is used as a slave select
> >    4. and byte by byte transfer using multiple spi_write is not a choice.
>
> Yes.  See the delay_usec field in struct spi_transfer.
>
> g.
>
>
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: wait between bytes
       [not found]         ` <AANLkTimYghAYwNQSW26=j4SnYkC_6d5frcAjkgNzF7kW-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2011-03-14 22:17           ` Grant Likely
  0 siblings, 0 replies; 4+ messages in thread
From: Grant Likely @ 2011-03-14 22:17 UTC (permalink / raw)
  To: Tom; +Cc: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

On Mon, Mar 14, 2011 at 4:10 PM, Tom <tom.spi.devel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> Hi,
> I thought delay_usec is to create delay between transfers (i.e message
> transfers ).

Between transfers; but a single spi message can contain multiple
transfers without twiddling the cs line.

> Can it be used to create delay between bytes of a single message transfer?

No, you'll have to construct a message of multiple single byte
transfers in that case.

g.

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-03-14 22:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-14  4:24 wait between bytes Tom
     [not found] ` <AANLkTinPtp3h4uv_jvHjms02h9a-GbH=NtObQPEjVj2S-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-03-14 19:11   ` Grant Likely
     [not found]     ` <20110314191126.GB16096-MrY2KI0G/OVr83L8+7iqerDks+cytr/Z@public.gmane.org>
2011-03-14 22:10       ` Tom
     [not found]         ` <AANLkTimYghAYwNQSW26=j4SnYkC_6d5frcAjkgNzF7kW-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-03-14 22:17           ` Grant Likely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).