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
13
#include <
Drv/LinuxSpiDriver/LinuxSpiDriverComponentImpl.hpp
>
14
#include <
FpConfig.hpp
>
15
16
namespace
Drv
{
17
18
bool
LinuxSpiDriverComponentImpl::open
(
NATIVE_INT_TYPE
device,
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
36
LinuxSpiDriverComponentImpl::~LinuxSpiDriverComponentImpl
() {
37
38
}
39
40
}
// end namespace Drv
NATIVE_INT_TYPE
PlatformIntType NATIVE_INT_TYPE
Definition:
BasicTypes.h:51
FpConfig.hpp
C++-compatible configuration header for fprime configuration.
LinuxSpiDriverComponentImpl.hpp
Drv::LinuxSpiDriverComponentImpl::~LinuxSpiDriverComponentImpl
~LinuxSpiDriverComponentImpl()
Definition:
LinuxSpiDriverComponentImpl.cpp:189
Drv::LinuxSpiDriverComponentImpl::open
bool open(NATIVE_INT_TYPE device, NATIVE_INT_TYPE select, SpiFrequency clock, SpiMode spiMode=SpiMode::SPI_MODE_CPOL_LOW_CPHA_LOW)
Open device.
Definition:
LinuxSpiDriverComponentImpl.cpp:71
Fw::Buffer
Definition:
Buffer.hpp:43
Drv
Definition:
BlockDriverComponentAc.cpp:15
Drv::SpiFrequency
SpiFrequency
Definition:
LinuxSpiDriverComponentImpl.hpp:28
Drv::SpiMode
SpiMode
Definition:
LinuxSpiDriverComponentImpl.hpp:48
Drv
LinuxSpiDriver
LinuxSpiDriverComponentImplStub.cpp
Generated by
1.9.1