F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
LinuxGpioDriverStub.cpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title LinuxGpioDriverImpl.cpp
3 // \author tcanham
4 // \brief cpp file for LinuxGpioDriver component implementation class
5 //
6 // \copyright
7 // Copyright 2009-2015, by the California Institute of Technology.
8 // ALL RIGHTS RESERVED. United States Government Sponsorship
9 // acknowledged.
10 //
11 // ======================================================================
12 
14 #include <Fw/FPrimeBasicTypes.hpp>
15 #include <Fw/Time/Time.hpp>
16 
17 namespace Drv {
18 
20 
21 // ----------------------------------------------------------------------
22 // Handler implementations for user-defined typed input ports
23 // ----------------------------------------------------------------------
24 
25 Os::File::Status LinuxGpioDriver ::setupLineRequestV2(const int chip_descriptor,
26  const U32 gpio,
27  const GpioConfiguration& configuration,
28  const Fw::Logic& default_state,
29  int& fd) {
30  return Os::File::Status::NOT_SUPPORTED;
31 }
32 
33 Os::File::Status LinuxGpioDriver ::setupLineHandle(const int chip_descriptor,
34  const U32 gpio,
35  const GpioConfiguration& configuration,
36  const Fw::Logic& default_state,
37  int& fd) {
38  return Os::File::Status::NOT_SUPPORTED;
39 }
40 
41 Os::File::Status LinuxGpioDriver ::setupLineEvent(const int chip_descriptor,
42  const U32 gpio,
43  const GpioConfiguration& configuration,
44  int& fd) {
45  return Os::File::Status::NOT_SUPPORTED;
46 }
47 
48 Os::File::Status LinuxGpioDriver ::open(const char* device,
49  const U32 gpio,
50  const GpioConfiguration& configuration,
51  const Fw::Logic& default_state) {
52  return Os::File::Status::NOT_SUPPORTED;
53 }
54 
55 Drv::GpioStatus LinuxGpioDriver ::gpioRead_handler(const FwIndexType portNum, Fw::Logic& state) {
57 }
58 
59 Drv::GpioStatus LinuxGpioDriver ::gpioWrite_handler(const FwIndexType portNum, const Fw::Logic& state) {
61 }
62 
63 void LinuxGpioDriver ::pollLoop() {
64  // Loop forever
65  while (this->getRunning()) {
67  }
68 }
69 
70 } // end namespace Drv
An unknown error occurred.
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
PlatformIndexType FwIndexType
static Status delay(const Fw::TimeInterval &interval)
delay the current task
Definition: Task.cpp:204
Logic states.
Definition: LogicEnumAc.hpp:18
static constexpr FwSizeType GPIO_POLL_TIMEOUT