F´ Flight Software - C/C++ Documentation
devel
A framework for building embedded system applications to NASA flight quality standards.
LinuxSpiDriverComponentImplCommon.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
// ----------------------------------------------------------------------
19
// Construction, initialization, and destruction
20
// ----------------------------------------------------------------------
21
22
LinuxSpiDriverComponentImpl::
23
LinuxSpiDriverComponentImpl
(
const
char
*
const
compName) :
24
LinuxSpiDriverComponentBase
(compName),
25
m_fd(-1),
26
m_device(-1),
27
m_select(-1),
28
m_bytes(0)
29
{
30
31
}
32
33
void
LinuxSpiDriverComponentImpl::init
(
const
NATIVE_INT_TYPE
instance) {
34
LinuxSpiDriverComponentBase::init
(instance);
35
}
36
37
38
}
// 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::LinuxSpiDriverComponentBase
Auto-generated base for LinuxSpiDriver component.
Definition:
LinuxSpiDriverComponentAc.hpp:30
Drv::LinuxSpiDriverComponentImpl::LinuxSpiDriverComponentImpl
LinuxSpiDriverComponentImpl(const char *const compName)
Definition:
LinuxSpiDriverComponentImplCommon.cpp:23
Fw::ObjBase::init
void init()
Object initializer.
Definition:
ObjBase.cpp:27
Drv
Definition:
BlockDriverComponentAc.cpp:15
Drv
LinuxSpiDriver
LinuxSpiDriverComponentImplCommon.cpp
Generated by
1.9.1