Exemple #1
0
EXPORT_C TKeyResponse CEikFixedPointEditor::OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType)
	{
	TKeyEvent keyEvent(aKeyEvent);
	TEventCode eventCode(aType);

	return CAknNumericEdwin::OfferKeyEventL(keyEvent, eventCode);
	}
Exemple #2
0
/* virtual */ void CHCICommandBase::Match(const THCIEventBase& aEvent, TBool& aMatchesCmd, TBool& aConcludesCmd, TBool& aContinueMatching) const
	{
	THCIEventCode eventCode(aEvent.EventCode());

	if (eventCode == ECommandCompleteEvent)
		{
		THCICommandCompleteEvent& event = THCICommandCompleteEvent::Cast(aEvent);
		aMatchesCmd			= (event.CommandOpcode() == Opcode());
		aConcludesCmd		= aMatchesCmd;
		aContinueMatching	= !aMatchesCmd;
		}
	else if (eventCode == ECommandStatusEvent)
		{
		TCommandStatusEvent& event = TCommandStatusEvent::Cast(aEvent);
		aMatchesCmd			= (event.CommandOpcode() == Opcode());
		// If the status is an error then this event concludes the command
		aConcludesCmd		= (aMatchesCmd && (event.ErrorCode() != EOK));
		aContinueMatching	= !aMatchesCmd;
		}
	else
		{
		aMatchesCmd			= EFalse;
		aConcludesCmd		= EFalse;
		aContinueMatching	= EFalse;
		}
	}
Exemple #3
0
std::vector<epicsUInt8>
evgSeqRam::getEventCode() {
     std::vector<epicsUInt8> eventCode(2048, 0);

    for(unsigned int i = 0; i < eventCode.size(); i++)
        eventCode[i] = READ8(m_pReg, SeqRamEvent(m_id,i));

    return eventCode;
}