Go to the documentation of this file.
32 #ifndef USB_LINUX_UTILS_H
33 #define USB_LINUX_UTILS_H
39 #define CLEAR(x) memset(&(x), 0, sizeof(x))
41 #define MAX_PACKET_SIZE (58)
42 #define MAX_BUF_SIZE (MAX_PACKET_SIZE + 2)
46 static int xioctl(
int fh,
unsigned long request,
void *arg);
62 uint8_t *BytesToWrite,
63 uint8_t nbBytesToWrite, uint8_t *
data,
64 uint8_t nbPacketBytes,
65 uint8_t nbBytesToRead);
79 uint32_t bufferLength);
93 uint32_t bufferLength);
113 const uint8_t *
data,
size_t nbBytes);
146 #endif // USB_LINUX_UTILS_H
GLsizei const GLchar *const * string
ROSCPP_DECL XmlRpc::XmlRpcValue responseStr(int code, const std::string &msg, const std::string &response)
static int uvcExUnitReadBuffer(int fd, uint8_t selector, int16_t id, uint32_t address, uint8_t *data, uint32_t bufferLength)
uvcExUnitReadBuffer - Reads a chunk of data (a buffer) through the UVC Extension Unit
static aditof::Status uvcExUnitGetString(int fd, int uvcControlId, std::string &outStr)
uvcExUnitGetString
static int uvcExUnitWriteBuffer(int fd, uint8_t selector, int16_t id, uint32_t address, const uint8_t *data, uint32_t bufferLength)
uvcExUnitWriteBuffer
Status
Status of any operation that the TOF sdk performs.
static int UvcExUnitGetProperty(int fd, uint8_t selector, uint8_t *data, size_t nbBytes)
Read bytes from one of the controls of the UVC extension unit.
static aditof::Status uvcExUnitGetResponse(int fd, std::string &responseStr)
Get the response (which is encoded in a protobuf message) for the last request that was made....
static int UvcExUnitSetProperty(int fd, uint8_t selector, const uint8_t *data, size_t nbBytes)
Send bytes to one of the controls of the UVC extension unit.
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
static int xioctl(int fh, unsigned long request, void *arg)
static aditof::Status uvcExUnitSendRequest(int fd, const std::string &requestStr)
Send a request (which is encoded in a protobuf message) via the UVC extension unit.
static int uvcExUnitReadOnePacket(int fd, uint8_t selector, uint8_t *BytesToWrite, uint8_t nbBytesToWrite, uint8_t *data, uint8_t nbPacketBytes, uint8_t nbBytesToRead)
uvcExUnitReadOnePacket - Reads one packet of data through the UVC Extension Unit
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:01