EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
<== Date ==> <== Thread ==>

Subject: How to use asyGenericPointerSyncIO interface?
From: Abdalla Ahmad via Tech-talk <tech-talk at aps.anl.gov>
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>, Mark Rivers <rivers at cars.uchicago.edu>
Date: Tue, 20 Apr 2021 10:11:07 +0000

Hi

 

We want to write a driver for a device we have in which its command interface consists of bytes in a specific order (like C structs), for example first byte is command type, 2nd byte is address and then followed by 4 bytes as the data; 6 bytes in total. Is asyGenericPointerSyncIO the correct choice? I could not see anywhere in the sync IO interfaces where I pass the struct size (Like in the write/read system calls). How does the write/read operations work with these interfaces and how do they detect how many bytes to write? Do I need to use the void pointers inside the asynUser structure?

 

Thanks!

Abdalla

 


Replies:
Re: How to use asyGenericPointerSyncIO interface? Mark Rivers via Tech-talk

Navigate by Date:
Prev: Re: pv Access setup Дмитрий Прощенко via Tech-talk
Next: Re: How to use asyGenericPointerSyncIO interface? Mark Rivers via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
Navigate by Thread:
Prev: Re: display builder questions Kasemir, Kay via Tech-talk
Next: Re: How to use asyGenericPointerSyncIO interface? Mark Rivers via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
ANJ, 20 Apr 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·