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

This class represents the command for writing to the BCU memories. More...

#include <BcuWriteCommand.h>

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

Public Member Functions

 BcuWriteCommand (OpCode opcode, uint8_t firstDsp, uint8_t lastDsp)
 
void setPayload (int32_t v)
 
void setPayload (const int32_t *borrowedSendBuffer, uint16_t bufferSizeInDword)
 
virtual int8_tgetBeginOfMgpPacket ()
 
virtual uint32_t getMgpPacketLengthInByte ()
 
std::string toString ()
 
virtual ~BcuWriteCommand ()
 
 BcuWriteCommand (OpCode opcode, uint8_t firstDsp, uint8_t lastDsp)
 
void setPayload (int32_t v)
 
void setPayload (const int32_t *borrowedSendBuffer, uint16_t bufferSizeInDword)
 
virtual int8_tgetBeginOfMgpPacket ()
 
virtual uint32_t getMgpPacketLengthInByte ()
 
std::string toString ()
 
virtual ~BcuWriteCommand ()
 
 BcuWriteCommand (OpCode opcode, uint8_t firstDsp, uint8_t lastDsp)
 
void setPayload (int32_t v)
 
void setPayload (const int32_t *borrowedSendBuffer, uint16_t bufferSizeInDword)
 
virtual int8_tgetBeginOfMgpPacket ()
 
virtual uint32_t getMgpPacketLengthInByte ()
 
std::string toString ()
 
virtual ~BcuWriteCommand ()
 
- Public Member Functions inherited from Basda::Microgate::BcuCommand
 BcuCommand (OpCode opcode, uint8_t firstDsp, uint8_t lastDsp)
 
void setMessageId (uint8_t id)
 
uint8_t getMessageId ()
 
void enableReply ()
 
bool isReplyEnabled ()
 
void setMemoryAddress (int32_t addr)
 
int32_t getMemoryAddress ()
 
OpCode getOpCode ()
 
uint8_t getFirstDsp ()
 
uint8_t getLastDsp ()
 
virtual ~BcuCommand ()=0
 
 BcuCommand (OpCode opcode, uint8_t firstDsp, uint8_t lastDsp)
 
void setMessageId (uint8_t id)
 
uint8_t getMessageId ()
 
void enableReply ()
 
bool isReplyEnabled ()
 
void setMemoryAddress (int32_t addr)
 
int32_t getMemoryAddress ()
 
OpCode getOpCode ()
 
uint8_t getFirstDsp ()
 
uint8_t getLastDsp ()
 
virtual ~BcuCommand ()=0
 
 BcuCommand (OpCode opcode, uint8_t firstDsp, uint8_t lastDsp)
 
void setMessageId (uint8_t id)
 
uint8_t getMessageId ()
 
void enableReply ()
 
bool isReplyEnabled ()
 
void setMemoryAddress (int32_t addr)
 
int32_t getMemoryAddress ()
 
OpCode getOpCode ()
 
uint8_t getFirstDsp ()
 
uint8_t getLastDsp ()
 
virtual ~BcuCommand ()=0
 

Static Public Member Functions

static BcuWriteCommandPtr create (OpCode opcode, uint8_t firstDsp, uint8_t lastDsp)
 
static BcuWriteCommandPtr create (OpCode opcode, uint8_t firstDsp, uint8_t lastDsp)
 
static BcuWriteCommandPtr create (OpCode opcode, uint8_t firstDsp, uint8_t lastDsp)
 

Private Attributes

unsigned payloadLengthInByte_
 
int32_tpayloadBuffer_
 

Additional Inherited Members

- Protected Member Functions inherited from Basda::Microgate::BcuCommand
MgpHeadersetupGenericMgpPacket ()
 
void clearPacketBuffer ()
 
MgpHeadersetupGenericMgpPacket ()
 
void clearPacketBuffer ()
 
MgpHeadersetupGenericMgpPacket ()
 
void clearPacketBuffer ()
 
- Protected Attributes inherited from Basda::Microgate::BcuCommand
OpCode opCode_
 
uint8_t messageId_
 
int8_t flags_
 
int32_t memoryAddr_
 
int8_tpacketBuffer_
 
int8_t firstDsp_
 
int8_t lastDsp_
 
- Static Protected Attributes inherited from Basda::Microgate::BcuCommand
static const int8_t WANT_REPLY_BIT = 1
 

Detailed Description

This class represents the command for writing to the BCU memories.

Constructor & Destructor Documentation

◆ BcuWriteCommand() [1/3]

Basda::Microgate::BcuWriteCommand::BcuWriteCommand ( OpCode  opcode,
uint8_t  firstDsp,
uint8_t  lastDsp 
)

◆ ~BcuWriteCommand() [1/3]

Basda::Microgate::BcuWriteCommand::~BcuWriteCommand ( )
virtual
Note
overridden

◆ BcuWriteCommand() [2/3]

Basda::Microgate::BcuWriteCommand::BcuWriteCommand ( OpCode  opcode,
uint8_t  firstDsp,
uint8_t  lastDsp 
)

◆ ~BcuWriteCommand() [2/3]

virtual Basda::Microgate::BcuWriteCommand::~BcuWriteCommand ( )
virtual
Note
overridden

◆ BcuWriteCommand() [3/3]

Basda::Microgate::BcuWriteCommand::BcuWriteCommand ( OpCode  opcode,
uint8_t  firstDsp,
uint8_t  lastDsp 
)

◆ ~BcuWriteCommand() [3/3]

virtual Basda::Microgate::BcuWriteCommand::~BcuWriteCommand ( )
virtual
Note
overridden

Member Function Documentation

◆ create() [1/3]

BcuWriteCommandPtr Basda::Microgate::BcuWriteCommand::create ( OpCode  opcode,
uint8_t  firstDsp,
uint8_t  lastDsp 
)
static

◆ create() [2/3]

static BcuWriteCommandPtr Basda::Microgate::BcuWriteCommand::create ( OpCode  opcode,
uint8_t  firstDsp,
uint8_t  lastDsp 
)
static

◆ create() [3/3]

static BcuWriteCommandPtr Basda::Microgate::BcuWriteCommand::create ( OpCode  opcode,
uint8_t  firstDsp,
uint8_t  lastDsp 
)
static

◆ getBeginOfMgpPacket() [1/3]

virtual int8_t* Basda::Microgate::BcuWriteCommand::getBeginOfMgpPacket ( )
virtual
Note
overridden

Implements Basda::Microgate::BcuCommand.

◆ getBeginOfMgpPacket() [2/3]

int8_t * Basda::Microgate::BcuWriteCommand::getBeginOfMgpPacket ( )
virtual
Note
overridden

Implements Basda::Microgate::BcuCommand.

◆ getBeginOfMgpPacket() [3/3]

virtual int8_t* Basda::Microgate::BcuWriteCommand::getBeginOfMgpPacket ( )
virtual
Note
overridden

Implements Basda::Microgate::BcuCommand.

◆ getMgpPacketLengthInByte() [1/3]

virtual uint32_t Basda::Microgate::BcuWriteCommand::getMgpPacketLengthInByte ( )
virtual
Note
overridden

Implements Basda::Microgate::BcuCommand.

◆ getMgpPacketLengthInByte() [2/3]

uint32_t Basda::Microgate::BcuWriteCommand::getMgpPacketLengthInByte ( )
virtual
Note
overridden

Implements Basda::Microgate::BcuCommand.

◆ getMgpPacketLengthInByte() [3/3]

virtual uint32_t Basda::Microgate::BcuWriteCommand::getMgpPacketLengthInByte ( )
virtual
Note
overridden

Implements Basda::Microgate::BcuCommand.

◆ setPayload() [1/6]

void Basda::Microgate::BcuWriteCommand::setPayload ( int32_t  v)

◆ setPayload() [2/6]

void Basda::Microgate::BcuWriteCommand::setPayload ( int32_t  v)

◆ setPayload() [3/6]

void Basda::Microgate::BcuWriteCommand::setPayload ( int32_t  v)

◆ setPayload() [4/6]

void Basda::Microgate::BcuWriteCommand::setPayload ( const int32_t borrowedSendBuffer,
uint16_t  bufferSizeInDword 
)

◆ setPayload() [5/6]

void Basda::Microgate::BcuWriteCommand::setPayload ( const int32_t borrowedSendBuffer,
uint16_t  bufferSizeInDword 
)

◆ setPayload() [6/6]

void Basda::Microgate::BcuWriteCommand::setPayload ( const int32_t borrowedSendBuffer,
uint16_t  bufferSizeInDword 
)

◆ toString() [1/3]

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

◆ toString() [2/3]

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

◆ toString() [3/3]

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

Member Data Documentation

◆ payloadBuffer_

int32_t * Basda::Microgate::BcuWriteCommand::payloadBuffer_
private

◆ payloadLengthInByte_

unsigned Basda::Microgate::BcuWriteCommand::payloadLengthInByte_
private

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