I'm attempting to understanding how to use the libpruio code base.

*Goal*: Read 2 adc values as fast as possible. 
*Understanding*:  libpruio has a shared buffer that the pru writes to in 
this case from the adc, which will be then consumed by the userland 
application. 

Going over io_input.c there a few things I still don't understand. 

pruio_config(io, 1, 0x1FE, 0, 4)

Could someone expand on these two parameters--I've read the docs just not 
sure I understand them:

*Samp number of samples to fetch (defaults to zero)*
* Tmr timer value in [ns] to specify the sampling rate (defaults to zero, 
MM only)*

 
So.. assuming I want the fastest possible pru sampling dumped into the 
shared buffer that is then consumed by the shared buffer what could my 
config call be?

Also the sleep timing call-- are there specific times that need to be 
waited for specific buffer sizes-- or is that a guess and check sorta thing.

forgive me if these are stupid questions- just trying to wrap my head 
around this issue. 

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to