Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ITransport Class Referenceabstract

#include <ITransport.h>

Inheritance diagram for ITransport:
Inheritance graph
[legend]

Classes

struct  Ack
 

Public Member Functions

struct ITransport::Ack __attribute__ ((packed))
 
void enableLogging (bool enable)
 
 ITransport ()
 
virtual void sendPacket (const uint8_t *data, uint32_t length, Ack &result)=0
 
virtual void sendPacketNoAck (const uint8_t *data, uint32_t length)=0
 
virtual ~ITransport ()
 

Protected Member Functions

void logAck (const Ack &ack)
 
void logPacket (const uint8_t *data, uint32_t length)
 

Protected Attributes

bool m_enableLogging
 
std::ofstream m_file
 

Detailed Description

Definition at line 6 of file ITransport.h.

Constructor & Destructor Documentation

ITransport::ITransport ( )
inline

Definition at line 25 of file ITransport.h.

virtual ITransport::~ITransport ( )
inlinevirtual

Definition at line 30 of file ITransport.h.

Member Function Documentation

struct ITransport::Ack ITransport::__attribute__ ( (packed)  )
void ITransport::enableLogging ( bool  enable)

Definition at line 3 of file ITransport.cpp.

void ITransport::logAck ( const Ack ack)
protected

Definition at line 31 of file ITransport.cpp.

void ITransport::logPacket ( const uint8_t *  data,
uint32_t  length 
)
protected

Definition at line 14 of file ITransport.cpp.

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

Implemented in Crazyradio, and CrazyflieUSB.

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

Implemented in Crazyradio, and CrazyflieUSB.

Member Data Documentation

bool ITransport::m_enableLogging
protected

Definition at line 54 of file ITransport.h.

std::ofstream ITransport::m_file
protected

Definition at line 55 of file ITransport.h.


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


crazyflie_cpp
Author(s): Wolfgang Hoenig
autogenerated on Mon Sep 28 2020 03:40:10