Main Page
Classes
Files
File List
File Members
crazyflie_cpp
include
crazyflie_cpp
CrazyflieUSB.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <stdint.h>
4
#include <vector>
5
#include <string>
6
7
#include "
ITransport.h
"
8
#include "
USBDevice.h
"
9
10
class
CrazyflieUSB
11
:
public
ITransport
12
,
public
USBDevice
13
{
14
public
:
15
CrazyflieUSB
(
16
uint32_t devid);
17
18
~CrazyflieUSB
();
19
20
static
uint32_t
numDevices
();
21
22
std::string
serial
();
23
24
float
version
()
const
;
25
26
virtual
void
sendPacket
(
27
const
uint8_t*
data
,
28
uint32_t
length
,
29
ITransport::Ack
&
result
);
30
31
virtual
void
sendPacketNoAck
(
32
const
uint8_t*
data
,
33
uint32_t
length
);
34
35
private
:
36
void
setCrtpToUsb
(
bool
crtpToUsb);
37
38
};
CrazyflieUSB::~CrazyflieUSB
~CrazyflieUSB()
Definition:
CrazyflieUSB.cpp:16
CrazyflieUSB::CrazyflieUSB
CrazyflieUSB(uint32_t devid)
Definition:
CrazyflieUSB.cpp:8
CrazyflieUSB::version
float version() const
Definition:
CrazyflieUSB.cpp:31
CrazyflieUSB::serial
std::string serial()
Definition:
CrazyflieUSB.cpp:26
data
uint8_t data[29]
Definition:
crtp.h:363
CrazyflieUSB::sendPacketNoAck
virtual void sendPacketNoAck(const uint8_t *data, uint32_t length)
Definition:
CrazyflieUSB.cpp:91
length
uint8_t length
Definition:
crtp.h:22
ITransport.h
result
uint8_t result
Definition:
crtp.h:440
CrazyflieUSB::setCrtpToUsb
void setCrtpToUsb(bool crtpToUsb)
Definition:
CrazyflieUSB.cpp:124
USBDevice.h
ITransport
CrazyflieUSB
Definition:
CrazyflieUSB.h:10
CrazyflieUSB::numDevices
static uint32_t numDevices()
Definition:
CrazyflieUSB.cpp:21
USBDevice
Definition:
USBDevice.h:9
CrazyflieUSB::sendPacket
virtual void sendPacket(const uint8_t *data, uint32_t length, ITransport::Ack &result)
crazyflie_tools
Author(s): Wolfgang Hoenig
autogenerated on Mon Sep 28 2020 03:40:14