bool ButtonObject::mouseDown() { if (_action) { _action(); } return true; }
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; } } }
void eTfManage::_removeAction(bool checked) { _action(TFINSTR_ACTION_NONE); }
void eTfManage::_save(bool checked) { _action(TFINSTR_ACTION_SAVE); }
void eTfManage::_restore(bool checked) { _action(TFINSTR_ACTION_RESTORE); }
void ButtonComponent::performAction(){ _action(); }
DynamicBitsetBlockOutputIterator& operator=(uint32 value) { _action(value); return *this; }