What value does this represent in the vendor library? Sometimes a double can be used. It can exactly represent a 52 bit integer.
Mark
Sent from my iPhone
> On May 18, 2018, at 1:34 PM, J. Lewis Muir <[email protected]> wrote:
>
>> 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? J. Lewis Muir
- References:
- Store 64-bit integer in asyn parameter library? J. Lewis Muir
- Re: Store 64-bit integer in asyn parameter library? J. Lewis Muir
- Navigate by Date:
- Prev:
Re: Store 64-bit integer in asyn parameter library? J. Lewis Muir
- Next:
Re: Store 64-bit integer in asyn parameter library? J. Lewis Muir
- 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:
Re: Store 64-bit integer in asyn parameter library? J. Lewis Muir
- Next:
Re: Store 64-bit integer in asyn parameter library? J. Lewis Muir
- 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
|