F´ Flight Software - C/C++ Documentation  devel
A framework for building embedded system applications to NASA flight quality standards.
LinuxSpiDriverComponentImplStub.cpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title LinuxSpiDriverImpl.cpp
3 // \author tcanham
4 // \brief cpp file for LinuxSpiDriver 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 <FpConfig.hpp>
15 
16 namespace Drv {
17 
19  NATIVE_INT_TYPE select,
20  SpiFrequency clock,
21  SpiMode spiMode) {
22  //TODO: fill this function out
23  return false;
24  }
25 
26  // ----------------------------------------------------------------------
27  // Handler implementations for user-defined typed input ports
28  // ----------------------------------------------------------------------
29 
30  void LinuxSpiDriverComponentImpl::SpiReadWrite_handler(
31  const NATIVE_INT_TYPE portNum, Fw::Buffer &WriteBuffer,
32  Fw::Buffer &readBuffer) {
33  // TODO
34  }
35 
37 
38  }
39 
40 } // end namespace Drv
PlatformIntType NATIVE_INT_TYPE
Definition: BasicTypes.h:51
C++-compatible configuration header for fprime configuration.
bool open(NATIVE_INT_TYPE device, NATIVE_INT_TYPE select, SpiFrequency clock, SpiMode spiMode=SpiMode::SPI_MODE_CPOL_LOW_CPHA_LOW)
Open device.