[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to specify offset into SPI device



Robert,

Robert S. Grimes schrieb:
> Thomas Doerfler wrote:
>> I guess, that you do not (yet) advance the rwargs->bytes_moved element?
>> Without looking at the RTEMS I/O code, I guess that it learns from that
>> parameter, how far you have actually written to the file/device.
>>   
> Oh!  Fixed that now - thanks!
> 
> But is there no way to seek?

fseek should directly modify the corresponding data strucutre managed in 
the IO manager, so when you fseek and then write, the write position 
(offset) reflects the seek.

> 
>> Fee free to use it as is now :-)
>>   
> Okay, thanks,
> -Bob
> 
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.com
> http://rtems.rtems.org/mailman/listinfo/rtems-users


-- 
--------------------------------------------
Embedded Brains GmbH
Thomas Doerfler           Obere Lagerstr. 30
D-82178 Puchheim          Germany
email: Thomas.Doerfler at embedded-brains.de
Phone: +49-89-18908079-2
Fax:   +49-89-18908079-9