#include <InterlocMessageHandler.h>
◆ InterlocMessageHandler()
InterlocMessageHandler::InterlocMessageHandler |
( |
ILogger & |
logger, |
|
|
IInterlocManager & |
interlocManager, |
|
|
IBSP & |
bsp, |
|
|
ICircularQueue< MessageDTO > & |
inputQueue, |
|
|
ICircularQueue< MessageDTO > & |
hostQueue, |
|
|
ICircularQueue< MessageDTO > & |
remoteQueue, |
|
|
INotificationQueue< InterlocUpdate > & |
interlocPositionUpdateQueue |
|
) |
| |
◆ ~InterlocMessageHandler()
virtual InterlocMessageHandler::~InterlocMessageHandler |
( |
| ) |
|
|
virtualdefault |
◆ constructRawDataMessage()
InterlocRawAngleDataDTO InterlocMessageHandler::constructRawDataMessage |
( |
BspInterlocRawAngleData & |
data, |
|
|
uint32_t |
fromId, |
|
|
uint8_t |
numFrames |
|
) |
| |
|
staticprivate |
◆ ensureSendMessage()
void InterlocMessageHandler::ensureSendMessage |
( |
MessageDTO & |
msg | ) |
|
|
private |
◆ getDumpEnabled()
bool InterlocMessageHandler::getDumpEnabled |
( |
| ) |
const |
|
overridevirtual |
Retrieves a flag to know if data dumps to the host should be done or not.
- Returns
- True if enabled, false otherwise.
Implements IInterlocMessageHandler.
◆ getQueueForDestination()
ICircularQueue< MessageDTO > & InterlocMessageHandler::getQueueForDestination |
( |
uint16_t |
destinationId | ) |
const |
|
private |
◆ handleConfigurationMessage()
bool InterlocMessageHandler::handleConfigurationMessage |
( |
const InterlocConfigurationDTO & |
dto | ) |
|
|
private |
◆ handleMessage()
bool InterlocMessageHandler::handleMessage |
( |
const MessageDTO & |
dto | ) |
|
|
private |
◆ handleStateChangeMessage()
bool InterlocMessageHandler::handleStateChangeMessage |
( |
const SetInterlocStateDTO |
dto | ) |
const |
|
private |
◆ processMessage()
bool InterlocMessageHandler::processMessage |
( |
| ) |
|
|
overridevirtual |
Processes the next message in the queue.
- Returns
- True if successfully processed, false otherwise
Implements IInterlocMessageHandler.
◆ rawAngleDataCallback()
◆ rawAngleDataCallbackStatic()
◆ sendInterlocDump()
bool InterlocMessageHandler::sendInterlocDump |
( |
InterlocUpdate * |
updatesHistory, |
|
|
uint8_t |
updatesLength |
|
) |
| |
|
overridevirtual |
Sends a history of interloc updates back to the host.
- Parameters
-
updatesHistory | Pointer to an array of interlocUpdates |
updatesLength | Number of items in the array |
- Returns
- True if message was queued for send, false otherwise
Implements IInterlocMessageHandler.
◆ stateChangeCallback()
void InterlocMessageHandler::stateChangeCallback |
( |
InterlocStateDTO |
previousState, |
|
|
InterlocStateDTO |
newState |
|
) |
| |
|
private |
◆ stateChangeCallbackStatic()
void InterlocMessageHandler::stateChangeCallbackStatic |
( |
void * |
context, |
|
|
InterlocStateDTO |
previousState, |
|
|
InterlocStateDTO |
newState |
|
) |
| |
|
staticprivate |
◆ m_bsp
IBSP& InterlocMessageHandler::m_bsp |
|
private |
◆ m_dumpsEnabled
bool InterlocMessageHandler::m_dumpsEnabled |
|
private |
◆ m_hostQueue
ICircularQueue<MessageDTO>& InterlocMessageHandler::m_hostQueue |
|
private |
◆ m_inputQueue
ICircularQueue<MessageDTO>& InterlocMessageHandler::m_inputQueue |
|
private |
◆ m_interlocManager
◆ m_interlocPositionUpdateQueue
INotificationQueue<InterlocUpdate>& InterlocMessageHandler::m_interlocPositionUpdateQueue |
|
private |
◆ m_logger
ILogger& InterlocMessageHandler::m_logger |
|
private |
◆ m_messageSourceId
uint16_t InterlocMessageHandler::m_messageSourceId |
|
private |
◆ m_remoteQueue
ICircularQueue<MessageDTO>& InterlocMessageHandler::m_remoteQueue |
|
private |
◆ m_updateDtoArray
std::array<GetNeighborResponseDTO, InterlocDumpDTO::MAX_UPDATES_SIZE> InterlocMessageHandler::m_updateDtoArray |
|
private |
The documentation for this class was generated from the following files: