Esempio n. 1
0
bool ButtonObject::mouseDown() {
    if (_action) {
        _action();
    }

    return true;
}
Esempio n. 2
0
void ControleInterface::executerAction() {
	if(_action) {
		_action();
	}
	else if(_actionP) {
		_actionP(this, _parametreAction);
	}
}
// TODO check for errors (uint8_t cast to NiFpga_Irq)
void IrqListener::wait() {
	while (1) {
		uint32_t irqAssert = 0;
		static uint32_t irqCount = 0;

		/*
		 * Stop the calling thread, wait until a selected IRQ is asserted.
		 */
		Irq_Wait(&context, (NiFpga_Irq) irqNumber, &irqAssert,
				&continueWaiting);

		/*
		 * If an IRQ was asserted.
		 */
		if (irqAssert & (1 << irqNumber)) {
			printf("IRQ%d,%d\n", irqNumber, ++irqCount);

			// trigger the action set by the user
			if (_action)
				_action(this);


			/*
			 * Acknowledge the IRQ(s) when the assertion is done.
			 */
			Irq_Acknowledge(irqAssert);


		}

		/*
		 * Check the indicator to see if the new thread is stopped.
		 */
		if (!(continueWaiting)) {
			printf("The IRQ thread ends.\n");
			break;
		}
	}
}
Esempio n. 4
0
void eTfManage::_removeAction(bool checked)
{
	_action(TFINSTR_ACTION_NONE);
}
Esempio n. 5
0
void eTfManage::_save(bool checked)
{
	_action(TFINSTR_ACTION_SAVE);
}
Esempio n. 6
0
void eTfManage::_restore(bool checked)
{
	_action(TFINSTR_ACTION_RESTORE);
}
void ButtonComponent::performAction(){
	_action();
}
Esempio n. 8
0
 DynamicBitsetBlockOutputIterator& operator=(uint32 value)
 {
     _action(value);
     return *this;
 }