F´ Flight Software - C/C++ Documentation  devel
A framework for building embedded system applications to NASA flight quality standards.
LinuxGpioDriverComponentImplStub.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 
13 
15 #include <FpConfig.hpp>
16 
17 namespace Drv {
18 
19  // ----------------------------------------------------------------------
20  // Handler implementations for user-defined typed input ports
21  // ----------------------------------------------------------------------
22 
23  void LinuxGpioDriverComponentImpl ::
24  gpioRead_handler(
25  const NATIVE_INT_TYPE portNum,
26  Fw::Logic &state
27  )
28  {
29  // TODO
30  }
31 
32  void LinuxGpioDriverComponentImpl ::
33  gpioWrite_handler(
34  const NATIVE_INT_TYPE portNum,
35  const Fw::Logic& state
36  )
37  {
38  // TODO
39  }
40 
42  open(NATIVE_INT_TYPE gpio, GpioDirection direction) {
43  return false;
44  }
45 
47  startIntTask(NATIVE_UINT_TYPE priority, NATIVE_UINT_TYPE stackSize, NATIVE_UINT_TYPE cpuAffinity) {
48  return Os::Task::TASK_OK;
49  }
50 
53  {
54 
55  }
56 
58  exitThread() {
59  }
60 } // end namespace Drv
PlatformIntType NATIVE_INT_TYPE
Definition: BasicTypes.h:51
PlatformUIntType NATIVE_UINT_TYPE
Definition: BasicTypes.h:52
C++-compatible configuration header for fprime configuration.
bool open(NATIVE_INT_TYPE gpio, GpioDirection direction)
open GPIO
Os::Task::TaskStatus startIntTask(NATIVE_UINT_TYPE priority=Os::Task::TASK_DEFAULT, NATIVE_UINT_TYPE stackSize=Os::Task::TASK_DEFAULT, NATIVE_UINT_TYPE cpuAffinity=Os::Task::TASK_DEFAULT)
Start interrupt task.
Logic states.
Definition: LogicEnumAc.hpp:19
TaskStatus
Definition: Task.hpp:18
@ TASK_OK
message sent/received okay
Definition: Task.hpp:19