#include <ITransport.h>
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 |
Definition at line 6 of file ITransport.h.
ITransport::ITransport | ( | ) | [inline] |
Definition at line 25 of file ITransport.h.
virtual ITransport::~ITransport | ( | ) | [inline, virtual] |
Definition at line 30 of file ITransport.h.
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.
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.