GenApiC32BitMethods.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*-----------------------------------------------------------------------------
  2. Basler pylon C SDK
  3. Copyright (c) 2012-2021 Basler AG
  4. http://www.baslerweb.com
  5. -----------------------------------------------------------------------------*/
  6. /**
  7. \file
  8. \brief GenApi C bindings - 32 bit functions.
  9. */
  10. #ifndef GenApiC32BitMethods_h__
  11. #define GenApiC32BitMethods_h__
  12. #include <genapic/GenApiCDefines.h>
  13. #pragma pack(push, GENAPIC_PACKING)
  14. #include <genapic/GenApiCTypes.h>
  15. #ifdef __cplusplus
  16. // avoid namespace ambiguities between std::_Bool (from yvals.h) and ::_Bool (from GenApiCTypes.h)
  17. # ifdef _MSC_VER
  18. # define _Bool ::_Bool
  19. # define PYLONC_BOOL_DEFINED
  20. # endif
  21. extern "C"
  22. {
  23. #endif /* __cplusplus */
  24. /*
  25. * ----------------------------------------------------------------------------
  26. * Functions doing an implicit cast to 32-bit values
  27. * ----------------------------------------------------------------------------
  28. */
  29. GENAPIC_API GENAPIC_RESULT GENAPIC_CC GenApiNodeGetPollingTimeInt32( NODE_HANDLE hNode, int32_t* pollingTime );
  30. GENAPIC_API GENAPIC_RESULT GENAPIC_CC GenApiIntegerSetValueInt32( NODE_HANDLE hNode, int32_t value );
  31. GENAPIC_API GENAPIC_RESULT GENAPIC_CC GenApiIntegerSetValueExInt32( NODE_HANDLE hNode, _Bool verify, int32_t value );
  32. GENAPIC_API GENAPIC_RESULT GENAPIC_CC GenApiIntegerGetValueInt32( NODE_HANDLE hNode, int32_t* pValue );
  33. GENAPIC_API GENAPIC_RESULT GENAPIC_CC GenApiIntegerGetValueExInt32( NODE_HANDLE hNode, _Bool verify, int32_t* pValue );
  34. GENAPIC_API GENAPIC_RESULT GENAPIC_CC GenApiIntegerGetMinInt32( NODE_HANDLE hNode, int32_t* pValue );
  35. GENAPIC_API GENAPIC_RESULT GENAPIC_CC GenApiIntegerGetMaxInt32( NODE_HANDLE hNode, int32_t* pValue );
  36. GENAPIC_API GENAPIC_RESULT GENAPIC_CC GenApiIntegerGetIncInt32( NODE_HANDLE hNode, int32_t* pValue );
  37. GENAPIC_API GENAPIC_RESULT GENAPIC_CC GenApiNodeMapPollInt32( NODEMAP_HANDLE hMap, int32_t timestamp );
  38. #ifdef __cplusplus
  39. } /* extern "C" */
  40. #ifdef PYLONC_BOOL_DEFINED
  41. # undef _Bool
  42. # undef PYLONC_BOOL_DEFINED
  43. #endif
  44. #endif /* __cplusplus */
  45. #pragma pack(pop)
  46. #endif /* GenApiC32BitMethods_h__ */