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


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 ( )

Definition at line 25 of file ITransport.h.

virtual ITransport::~ITransport ( )

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)

Definition at line 31 of file ITransport.cpp.

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

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

Definition at line 54 of file ITransport.h.

std::ofstream ITransport::m_file

Definition at line 55 of file ITransport.h.

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

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