Public Member Functions | Static Public Member Functions | Private Member Functions | List of all members
CrazyflieUSB Class Reference

#include <CrazyflieUSB.h>

Inheritance diagram for CrazyflieUSB:
Inheritance graph
[legend]

Public Member Functions

 CrazyflieUSB (uint32_t devid)
 
virtual void sendPacket (const uint8_t *data, uint32_t length, ITransport::Ack &result)
 
virtual void sendPacketNoAck (const uint8_t *data, uint32_t length)
 
std::string serial ()
 
float version () const
 
 ~CrazyflieUSB ()
 
- Public Member Functions inherited from ITransport
struct ITransport::Ack __attribute__ ((packed))
 
void enableLogging (bool enable)
 
 ITransport ()
 
virtual ~ITransport ()
 
- Public Member Functions inherited from USBDevice
 USBDevice (uint16_t idVendor, uint16_t idProduct)
 
virtual ~USBDevice ()
 

Static Public Member Functions

static uint32_t numDevices ()
 

Private Member Functions

void setCrtpToUsb (bool crtpToUsb)
 

Additional Inherited Members

- Protected Member Functions inherited from ITransport
void logAck (const Ack &ack)
 
void logPacket (const uint8_t *data, uint32_t length)
 
- Protected Member Functions inherited from USBDevice
void open (uint32_t devid)
 
void sendVendorSetup (uint8_t request, uint16_t value, uint16_t index, const unsigned char *data, uint16_t length)
 
- Static Protected Member Functions inherited from USBDevice
static uint32_t numDevices (uint16_t idVendor, uint16_t idProduct)
 
- Protected Attributes inherited from ITransport
bool m_enableLogging
 
std::ofstream m_file
 
- Protected Attributes inherited from USBDevice
libusb_context * m_ctx
 
libusb_device_handle * m_handle
 
float m_version
 

Detailed Description

Definition at line 10 of file CrazyflieUSB.h.

Constructor & Destructor Documentation

CrazyflieUSB::CrazyflieUSB ( uint32_t  devid)

Definition at line 8 of file CrazyflieUSB.cpp.

CrazyflieUSB::~CrazyflieUSB ( )

Definition at line 16 of file CrazyflieUSB.cpp.

Member Function Documentation

uint32_t CrazyflieUSB::numDevices ( )
static

Definition at line 21 of file CrazyflieUSB.cpp.

void CrazyflieUSB::sendPacket ( const uint8_t *  data,
uint32_t  length,
ITransport::Ack result 
)
virtual

Implements ITransport.

Definition at line 36 of file CrazyflieUSB.cpp.

void CrazyflieUSB::sendPacketNoAck ( const uint8_t *  data,
uint32_t  length 
)
virtual

Implements ITransport.

Definition at line 91 of file CrazyflieUSB.cpp.

std::string CrazyflieUSB::serial ( )

Definition at line 26 of file CrazyflieUSB.cpp.

void CrazyflieUSB::setCrtpToUsb ( bool  crtpToUsb)
private

Definition at line 124 of file CrazyflieUSB.cpp.

float CrazyflieUSB::version ( ) const

Definition at line 31 of file CrazyflieUSB.cpp.


The documentation for this class was generated from the following files:


crazyflie_cpp
Author(s): Wolfgang Hoenig
autogenerated on Fri Nov 1 2019 03:39:56