Subject: |
Re: Store 64-bit integer in asyn parameter library? |
From: |
"J. Lewis Muir" <[email protected]> |
To: |
EPICS Tech-Talk <[email protected]> |
Date: |
Fri, 18 May 2018 12:34:06 -0500 |
On 05/18, J. Lewis Muir wrote:
> I have a situation where I want to store a 64-bit integer (int64_t) from
> a vendor library in asyn's parameter library. There is no asynInt64
> interface and no asynParamInt64 type in the latest asyn. What is the
> best way to handle this? Store it using asynParamGenericPointer?
Hmm, it seems this parameter is also exposed via an ao and ai record
using the asynInt32 device type, so I think the idea of using
asynParamGenericPointer is out. I'm thinking, then, that the best
approach is to convert between the 64-bit integer and the 32-bit
integer, and report an error if the 64-bit integer from the vendor
library ever exceeds what will fit in the 32-bit integer.... Any better
approach?
Thanks,
Lewis
- Replies:
- Re: Store 64-bit integer in asyn parameter library? Mark Rivers
- References:
- Store 64-bit integer in asyn parameter library? J. Lewis Muir
- Navigate by Date:
- Prev:
Store 64-bit integer in asyn parameter library? J. Lewis Muir
- Next:
Re: Store 64-bit integer in asyn parameter library? Mark Rivers
- 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
- Navigate by Thread:
- Prev:
Store 64-bit integer in asyn parameter library? J. Lewis Muir
- Next:
Re: Store 64-bit integer in asyn parameter library? Mark Rivers
- 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
|