On Wednesday 30 January 2008, zhang zhilong wrote:
> hi,everyone.
> 
> i found the spi speed can't set like this:
> 
> void iodata_transfer(int fd,int len)
> {
>    ...
>     struct spi_ioc_transfer xfer[1];
>     memset(xfer,0,sizeof xfer);
>     xfer[0].rx_buf=(__u64) buf;
>     xfer[0].delay_usecs=0;
>     xfer[0].len=len;
>     xfer[0].speed_hz=12*1000*1000;//this will make error.

What do you mean "this will make error"?
The compiler complains?

> 
> }
> the max speed is 15000000hz;
> how can i do?

Were you trying to do what SPI_IOC_WR_MAX_SPEED_HZ does?


- Dave


> thanks a lot;
> -- 
> zhang.zhilong
> 



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
spi-devel-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spi-devel-general

Reply via email to