TwiceAsNice  2019-02-18
Public Member Functions | Static Public Attributes | Private Attributes | List of all members
Basda::Microgate::BcuReply Class Reference

Every message from the BCU is represented by this class. More...

#include <BcuReply.h>

Inheritance diagram for Basda::Microgate::BcuReply:
Inheritance graph
Collaboration diagram for Basda::Microgate::BcuReply:
Collaboration graph

Public Member Functions

 BcuReply (const int8_t *borrowedUdpPayload, unsigned payloadLengthInByte)
 
bool isSuccessful ()
 
uint8_t getOpCode ()
 
int8_t getMessageId ()
 
unsigned getPacketBufferLength ()
 
uint16_t getPayloadLengthInDword ()
 
int8_tgetStartOfPacketBuffer ()
 
int8_tgetStartOfPayload ()
 
std::string toString ()
 
 ~BcuReply ()
 
 BcuReply (const int8_t *borrowedUdpPayload, unsigned payloadLengthInByte)
 
bool isSuccessful ()
 
uint8_t getOpCode ()
 
int8_t getMessageId ()
 
unsigned getPacketBufferLength ()
 
uint16_t getPayloadLengthInDword ()
 
int8_tgetStartOfPacketBuffer ()
 
int8_tgetStartOfPayload ()
 
std::string toString ()
 
 ~BcuReply ()
 
 BcuReply (const int8_t *borrowedUdpPayload, unsigned payloadLengthInByte)
 
bool isSuccessful ()
 
uint8_t getOpCode ()
 
int8_t getMessageId ()
 
unsigned getPacketBufferLength ()
 
uint16_t getPayloadLengthInDword ()
 
int8_tgetStartOfPacketBuffer ()
 
int8_tgetStartOfPayload ()
 
std::string toString ()
 
 ~BcuReply ()
 

Static Public Attributes

static const uint8_t MGP_OP_CMD_SUCCESS = 200
 
static const uint8_t MGP_OP_CMD_TIMEOUT = 202
 

Private Attributes

int8_treceiveBuffer_
 
unsigned bufferLengthInByte_
 

Detailed Description

Every message from the BCU is represented by this class.

Constructor & Destructor Documentation

◆ BcuReply() [1/3]

Basda::Microgate::BcuReply::BcuReply ( const int8_t borrowedUdpPayload,
unsigned  payloadLengthInByte 
)

◆ ~BcuReply() [1/3]

Basda::Microgate::BcuReply::~BcuReply ( )

◆ BcuReply() [2/3]

Basda::Microgate::BcuReply::BcuReply ( const int8_t borrowedUdpPayload,
unsigned  payloadLengthInByte 
)

◆ ~BcuReply() [2/3]

Basda::Microgate::BcuReply::~BcuReply ( )

◆ BcuReply() [3/3]

Basda::Microgate::BcuReply::BcuReply ( const int8_t borrowedUdpPayload,
unsigned  payloadLengthInByte 
)

◆ ~BcuReply() [3/3]

Basda::Microgate::BcuReply::~BcuReply ( )

Member Function Documentation

◆ getMessageId() [1/3]

int8_t Basda::Microgate::BcuReply::getMessageId ( )

◆ getMessageId() [2/3]

int8_t Basda::Microgate::BcuReply::getMessageId ( )

◆ getMessageId() [3/3]

int8_t Basda::Microgate::BcuReply::getMessageId ( )

◆ getOpCode() [1/3]

uint8_t Basda::Microgate::BcuReply::getOpCode ( )

◆ getOpCode() [2/3]

uint8_t Basda::Microgate::BcuReply::getOpCode ( )

◆ getOpCode() [3/3]

uint8_t Basda::Microgate::BcuReply::getOpCode ( )

◆ getPacketBufferLength() [1/3]

unsigned Basda::Microgate::BcuReply::getPacketBufferLength ( )

◆ getPacketBufferLength() [2/3]

unsigned Basda::Microgate::BcuReply::getPacketBufferLength ( )

◆ getPacketBufferLength() [3/3]

unsigned Basda::Microgate::BcuReply::getPacketBufferLength ( )

◆ getPayloadLengthInDword() [1/3]

uint16_t Basda::Microgate::BcuReply::getPayloadLengthInDword ( )

◆ getPayloadLengthInDword() [2/3]

uint16_t Basda::Microgate::BcuReply::getPayloadLengthInDword ( )

◆ getPayloadLengthInDword() [3/3]

uint16_t Basda::Microgate::BcuReply::getPayloadLengthInDword ( )

◆ getStartOfPacketBuffer() [1/3]

int8_t * Basda::Microgate::BcuReply::getStartOfPacketBuffer ( )

◆ getStartOfPacketBuffer() [2/3]

int8_t* Basda::Microgate::BcuReply::getStartOfPacketBuffer ( )

◆ getStartOfPacketBuffer() [3/3]

int8_t* Basda::Microgate::BcuReply::getStartOfPacketBuffer ( )

◆ getStartOfPayload() [1/3]

int8_t* Basda::Microgate::BcuReply::getStartOfPayload ( )

◆ getStartOfPayload() [2/3]

int8_t* Basda::Microgate::BcuReply::getStartOfPayload ( )

◆ getStartOfPayload() [3/3]

int8_t * Basda::Microgate::BcuReply::getStartOfPayload ( )

◆ isSuccessful() [1/3]

bool Basda::Microgate::BcuReply::isSuccessful ( )

◆ isSuccessful() [2/3]

bool Basda::Microgate::BcuReply::isSuccessful ( )

◆ isSuccessful() [3/3]

bool Basda::Microgate::BcuReply::isSuccessful ( )

◆ toString() [1/3]

std::string Basda::Microgate::BcuReply::toString ( )

◆ toString() [2/3]

std::string Basda::Microgate::BcuReply::toString ( )

◆ toString() [3/3]

std::string Basda::Microgate::BcuReply::toString ( )

Member Data Documentation

◆ bufferLengthInByte_

unsigned Basda::Microgate::BcuReply::bufferLengthInByte_
private

◆ MGP_OP_CMD_SUCCESS

static const uint8_t Basda::Microgate::BcuReply::MGP_OP_CMD_SUCCESS = 200
static

◆ MGP_OP_CMD_TIMEOUT

static const uint8_t Basda::Microgate::BcuReply::MGP_OP_CMD_TIMEOUT = 202
static

◆ receiveBuffer_

int8_t * Basda::Microgate::BcuReply::receiveBuffer_
private

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