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  2021  2022  2023  <20242025  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  <20242025 
<== Date ==> <== Thread ==>

Subject: Asyn or Stream device interface for struct data
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>
Date: Thu, 5 Sep 2024 07:33:05 +0000

Hi

 

We have a device that I am working on a device support for using asynPortDriver, but its interface is very simple, it is basically a simple C struct used for both TX and RX. Something like this:

 

typedef struct {

     u16 status,

     u16 command,

     u16 address,

     u32 data

} packet_t;

 

I send this packet and I receive the same packet in the response with the corresponding data. Can such a communication interface be achieved using stream device or asyn support?

 

Best Regards,

Abdalla.


Replies:
Re: Asyn or Stream device interface for struct data Zimoch Dirk via Tech-talk

Navigate by Date:
Prev: areaDetector Overlay problem Jörn Dreyer via Tech-talk
Next: Re: Asyn or Stream device interface for struct data Zimoch Dirk 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  2021  2022  2023  <20242025 
Navigate by Thread:
Prev: Re: areaDetector Overlay problem Mark Rivers via Tech-talk
Next: Re: Asyn or Stream device interface for struct data Zimoch Dirk 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  2021  2022  2023  <20242025 
ANJ, 11 Sep 2024 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions ·
· Download · Search · IRMIS · Talk · Documents · Links · Licensing ·