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 <2021> 2022 2023 2024 2025 | 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 <2021> 2022 2023 2024 2025 |
<== 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 |