13 #ifndef DRV_LINUX_GPIO_DRIVER_HPP 14 #define DRV_LINUX_GPIO_DRIVER_HPP 107 static void interruptFunction(
void*
self);
135 bool m_running =
false;
140 #endif // DRV_LINUX_GPIO_DRIVER_HPP void stop()
stop interrupt detection thread
static constexpr FwSizeType TASK_DEFAULT
Input GPIO pin triggers interrupt port on falling edge.
PlatformIntType NATIVE_INT_TYPE
PlatformSizeType FwSizeType
Drv::GpioStatus start(const FwSizeType priority=Os::Task::TASK_DEFAULT, const FwSizeType stackSize=Os::Task::TASK_DEFAULT, const FwSizeType cpuAffinity=Os::Task::TASK_DEFAULT, const PlatformUIntType identifier=static_cast< PlatformUIntType >(Os::Task::TASK_DEFAULT))
start interrupt detection thread
int PlatformIntType
DefaultTypes.hpp provides fallback defaults for the platform types.
Auto-generated base for LinuxGpioDriver component.
unsigned int PlatformUIntType
GpioConfiguration
configure the GPIO pin
Input GPIO pin triggers interrupt port on both edges.
Os::File::Status open(const char *device, const U32 gpio, const GpioConfiguration &configuration, const Fw::Logic &default_state=Fw::Logic::LOW)
open a GPIO pin for use in the system
LinuxGpioDriver(const char *const compName)
Output GPIO pin for direct writing.
Input GPIO pin for direct reading.
Input GPIO pin triggers interrupt port on rising edge.
static constexpr FwSizeType GPIO_POLL_TIMEOUT
void join()
join interrupt detection thread