Pleora Technologies Inc. eBUS SDK v6.2.8.5877 API



PvDeviceSPIBus.h
1 
2 // *****************************************************************************
3 //
4 // Copyright (c) 2009, Pleora Technologies Inc., All rights reserved.
5 //
6 // *****************************************************************************
7 
8 #ifndef __PVDEVICESPIBUS_H__
9 #define __PVDEVICESPIBUS_H__
10 
11 #include <PvDeviceSerialPort.h>
12 
13 
14 namespace PvSerialLib
15 {
16  class DeviceSPIBus;
17 }
18 
19 
20 class PV_SERIAL_API PvDeviceSPIBus
21 {
22 public:
23 
25  ~PvDeviceSPIBus();
26 
27  PvResult Open( IPvDeviceAdapter *aDevice,
29 
30  PvResult Close();
31 
32  bool IsOpened();
33 
34  static bool IsSupported( IPvDeviceAdapter *aDevice,
36 
37  PvResult BurstRead(
38  unsigned char *aBuffer,
39  uint32_t aBufferSize,
40  uint32_t &aBytesRead,
41  uint32_t aTimeout = 0);
42 
43  PvResult BurstWriteAndRead(
44  unsigned char *aWriteBuffer,
45  uint32_t aWriteBufferSize,
46  uint32_t aReadBufferSize = 0,
47  bool aWriteRead = false,
48  bool aSSNFlagOn = false );
49 
50 private:
51 
52  PvSerialLib::DeviceSPIBus* mThis;
53 
54 };
55 
56 #endif
PvResult
Result information.
Definition: PvResult.h:13
IPvDeviceAdapter
Interface used by PvDeviceSerialPort to interact with a device controller.
Definition: IPvDeviceAdapter.h:31
PvDeviceSerial
PvDeviceSerial
Device serial port enumeration.
Definition: PvDeviceSerialEnums.h:11
PvDeviceSerialBulk0
@ PvDeviceSerialBulk0
Definition: PvDeviceSerialEnums.h:16
PvDeviceSPIBus
SPI serial controller.
Definition: PvDeviceSPIBus.h:20

Copyright (c) 2002-2021 Pleora Technologies Inc.
www.pleora.com