Pleora Technologies Inc. eBUS SDK v7.0.1.7536 API



Loading...
Searching...
No Matches
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
14namespace PvSerialLib
15{
16 class DeviceSPIBus;
17}
18
22class PV_SERIAL_API PvDeviceSPIBus
23{
24public:
25
30
35
46
52 PvResult Close();
53
59 bool IsOpened();
60
69 static bool IsSupported( IPvDeviceAdapter *aDevice,
71
82 PvResult BurstRead( unsigned char *aBuffer,
83 uint32_t aBufferSize,
84 uint32_t &aBytesRead,
85 uint32_t aTimeout = 0 );
86
99 PvResult BurstWriteAndRead( unsigned char *aWriteBuffer,
100 uint32_t aWriteBufferSize,
101 uint32_t aReadBufferSize = 0,
102 bool aWriteRead = false,
103 bool aSSNFlagOn = false );
104
105private:
106 PvSerialLib::DeviceSPIBus *mThis;
107};
108
109#endif
PvDeviceSerial
Device serial port enumeration.
Definition PvDeviceSerialEnums.h:20
@ PvDeviceSerialBulk0
Bulk interface 0, or BULK0. Can be UART, USRT or I2C depending on device configuration.
Definition PvDeviceSerialEnums.h:29
Interface used by PvDeviceSerialPort to interact with a device controller.
Definition IPvDeviceAdapter.h:49
Provides SPI bus communication over a device serial port.
Definition PvDeviceSPIBus.h:23
Result information.
Definition PvResult.h:30

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