29 if (this->m_configuration < GpioConfiguration::MAX_GPIO_CONFIGURATION &&
30 this->m_configuration >= GpioConfiguration::GPIO_INTERRUPT_RISING_EDGE) {
34 this->m_running =
true;
38 Os::Task::Arguments arguments(name, &this->interruptFunction,
this, priority, stackSize, cpuAffinity,
40 this->m_poller.start(arguments);
45void LinuxGpioDriver ::stop() {
47 this->m_running =
false;
50void LinuxGpioDriver ::join() {
51 this->m_poller.join();
54void LinuxGpioDriver ::interruptFunction(
void* self) {
57 component->pollLoop();
60bool LinuxGpioDriver ::getRunning() {
62 return this->m_running;
unsigned int PlatformUIntType
#define FW_OPTIONAL_NAME(name)
PlatformSizeType FwSizeType
C++-compatible configuration header for fprime configuration.
@ INVALID_MODE
Operation not permitted with current configuration.
@ OP_OK
Operation succeeded.
Auto-generated base for LinuxGpioDriver component.
void format(const CHAR *formatString,...)
write formatted string to buffer
locks a mutex within the current scope