PicoCallback.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /****************************************************************************
  2. *
  3. * Filename: PicoCallback.h
  4. * Copyright: Pico Technology Limited 2018 - 2022
  5. * Description:
  6. *
  7. * This header contains definitions of various call back signatures used by
  8. * the Picoscope drivers to asynchronously communicate.
  9. *
  10. ****************************************************************************/
  11. #ifndef __PICOCALLBACK_H__
  12. #define __PICOCALLBACK_H__
  13. #include <stdint.h>
  14. #include "PicoDeviceEnums.h"
  15. #include "PicoDeviceStructs.h"
  16. #ifdef WIN32
  17. #define PREF5 __stdcall
  18. #else
  19. #define PREF5
  20. #endif
  21. typedef void (PREF5 * PicoUpdateFirmwareProgress)
  22. (
  23. int16_t handle,
  24. uint16_t progress
  25. );
  26. typedef void (PREF5 *PicoProbeInteractions)
  27. (
  28. int16_t handle,
  29. PICO_STATUS status,
  30. PICO_USER_PROBE_INTERACTIONS * probes,
  31. uint32_t nProbes
  32. );
  33. typedef void (PREF5 *PicoDataReadyUsingReads)
  34. (
  35. int16_t handle,
  36. PICO_READ_SELECTION read,
  37. PICO_STATUS status,
  38. uint64_t fromSegmentIndex,
  39. uint64_t toSegmentIndex,
  40. PICO_POINTER pParameter
  41. );
  42. typedef void (PREF5 *PicoExternalReferenceInteractions)
  43. (
  44. int16_t handle,
  45. PICO_STATUS status,
  46. PICO_CLOCK_REFERENCE reference
  47. );
  48. typedef void (PREF5 *PicoAWGOverrangeInteractions)
  49. (
  50. int16_t handle,
  51. PICO_STATUS status
  52. );
  53. typedef void (PREF5 *PicoTemperatureSensorInteractions)
  54. (
  55. int16_t handle,
  56. PICO_TEMPERATURE_REFERENCE temperatureStatus
  57. );
  58. #endif