Re: Abstract "channels" driver model

2022-03-21 Thread Xiang Xiao
On Fri, Mar 18, 2022 at 3:17 AM Matthew Trescott wrote: > On Thu, Mar 17, 2022 at 2:41 AM Xiang Xiao > wrote: > > > > We are working on this to provide multiple read/poll support. The basic > > idea is that: > > > >1. Upper half driver hold FIFO shared by all client > >2. Each client hol

Re: Abstract "channels" driver model

2022-03-17 Thread Matthew Trescott
On Thu, Mar 17, 2022 at 2:41 AM Xiang Xiao wrote: > > We are working on this to provide multiple read/poll support. The basic > idea is that: > >1. Upper half driver hold FIFO shared by all client >2. Each client hold the offset into the share FIFO > > The benefit is that we don't need to

Re: Abstract "channels" driver model

2022-03-17 Thread Gregory Nutt
> >- Share the same ADC values among multiple threads with different > priorities, > >like a high-priority safing algorithm, a medium priority control > algorithm, and a > >low-priority CAN broadcast thread. > > > >- Share the same ADC values among threads with different needs—the three > >listed a

Re: Abstract "channels" driver model

2022-03-17 Thread Xiang Xiao
we will upstream the patch after two/three weeks. > >-Original Message- > >From: Matthew Trescott > >Sent: 17 March 2022 05:55 > >To: dev@nuttx.apache.org > >Subject: Abstract "channels" driver model > > > >Hi everyone, > > >

RE: Abstract "channels" driver model

2022-03-17 Thread Tim
Just a "thumbs up" from me if you do this (or find something that exists that'll do it) - it's a perfect fit for my current project :) >-Original Message- >From: Matthew Trescott >Sent: 17 March 2022 05:55 >To: dev@nuttx.apache.org >Subject: Abs

Re: Abstract "channels" driver model

2022-03-16 Thread Xiang Xiao
a overhead > in userspace threads when implementing advanced features. Some > features I think would make sense in an abstract “channels” driver > model that would benefit many controls applications: > > - Only wake up a thread when a value has changed "significantly." > &

Abstract "channels" driver model

2022-03-16 Thread Matthew Trescott
think would make sense in an abstract “channels” driver model that would benefit many controls applications: - Only wake up a thread when a value has changed "significantly." - Support channels generated from bilinear/bicubic interpolation using a table. - Share the same ADC values amon