1 // Copyright (C) 2018-2020 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
8 #include "XLinkPublicDefines.h"
9 #include "XLinkSemaphore.h"
12 * @brief Streams opened to device
15 char name[MAX_STREAM_NAME_LENGTH];
18 uint32_t readSize; /*No need of read buffer. It's on remote,
19 will read it directly to the requested buffer*/
20 streamPacketDesc_t packets[XLINK_MAX_PACKETS_PER_STREAM];
21 uint32_t availablePackets;
22 uint32_t blockedPackets;
25 uint32_t firstPacketUnused;
26 uint32_t firstPacketFree;
28 uint32_t remoteFillLevel;
29 uint32_t localFillLevel;
30 uint32_t remoteFillPacketLevel;
32 uint32_t closeStreamInitiated;
37 XLinkError_t XLinkStreamInitialize(
38 streamDesc_t* stream, streamId_t id, const char* name);
40 void XLinkStreamReset(streamDesc_t* stream);
42 #endif //_XLINKSTREAM_H