F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
Main Page
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
z
+
Functions
c
d
e
g
i
m
p
r
s
t
v
w
Variables
Typedefs
Enumerations
+
Enumerator
a
c
e
f
h
i
m
n
o
p
s
u
v
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
~
+
Variables
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
+
Typedefs
c
e
p
s
t
u
+
Enumerations
b
c
d
g
h
l
m
o
p
s
t
u
w
+
Enumerator
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
+
Related Functions
a
b
c
d
f
g
h
l
p
r
s
t
u
v
+
Files
File List
+
File Members
+
All
_
a
b
c
d
f
g
h
i
l
m
n
p
q
r
s
t
u
v
+
Functions
c
i
m
s
u
+
Variables
b
c
d
i
p
s
+
Typedefs
b
c
d
f
i
m
n
p
q
r
s
t
u
Enumerations
+
Enumerator
a
b
c
d
f
g
h
p
r
s
t
+
Macros
_
a
c
d
f
h
l
m
p
r
s
u
v
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
LinuxI2cDriver.hpp
Go to the documentation of this file.
1
// ======================================================================
2
// \title LinuxI2cDriver.hpp
3
// \author tcanham
4
// \brief hpp file for LinuxI2cDriver 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
#ifndef LinuxI2cDriver_HPP
14
#define LinuxI2cDriver_HPP
15
16
#include "
Drv/LinuxI2cDriver/LinuxI2cDriverComponentAc.hpp
"
17
18
namespace
Drv
{
19
20
class
LinuxI2cDriver
:
21
public
LinuxI2cDriverComponentBase
22
{
23
24
public
:
25
26
// ----------------------------------------------------------------------
27
// Construction, initialization, and destruction
28
// ----------------------------------------------------------------------
29
32
LinuxI2cDriver
(
const
char
*
const
compName);
33
34
bool
open
(
const
char
* device);
37
~LinuxI2cDriver
();
38
39
PRIVATE:
40
41
// ----------------------------------------------------------------------
42
// Handler implementations for user-defined typed input ports
43
// ----------------------------------------------------------------------
44
47
I2cStatus
write_handler(
48
const
NATIVE_INT_TYPE
portNum,
49
U32 addr,
50
Fw::Buffer
&serBuffer
51
);
52
55
I2cStatus
read_handler(
56
const
NATIVE_INT_TYPE
portNum,
57
U32 addr,
58
Fw::Buffer
&serBuffer
59
);
60
63
I2cStatus
writeRead_handler(
64
const
NATIVE_INT_TYPE
portNum,
65
U32 addr,
66
Fw::Buffer
&writeBuffer,
67
Fw::Buffer
&readBuffer
68
);
69
70
// Prevent unused field error when using stub
71
#ifndef STUBBED_LINUX_I2C_DRIVER
72
NATIVE_INT_TYPE
m_fd;
73
#endif
74
};
75
76
}
// end namespace Drv
77
78
#endif
Drv::LinuxI2cDriver::open
bool open(const char *device)
Definition:
LinuxI2cDriver.cpp:49
NATIVE_INT_TYPE
PlatformIntType NATIVE_INT_TYPE
Definition:
BasicTypes.h:55
Drv::LinuxI2cDriver::LinuxI2cDriver
LinuxI2cDriver(const char *const compName)
Definition:
LinuxI2cDriver.cpp:33
Drv::LinuxI2cDriver::~LinuxI2cDriver
~LinuxI2cDriver()
Definition:
LinuxI2cDriver.cpp:42
Drv::LinuxI2cDriverComponentBase
Auto-generated base for LinuxI2cDriver component.
Definition:
LinuxI2cDriverComponentAc.hpp:22
LinuxI2cDriverComponentAc.hpp
Drv
Definition:
BlockDriverComponentAc.cpp:14
Fw::Buffer
Definition:
Buffer.hpp:42
Drv::I2cStatus
Definition:
I2cStatusEnumAc.hpp:16
Drv::LinuxI2cDriver
Definition:
LinuxI2cDriver.hpp:20
Drv
LinuxI2cDriver
LinuxI2cDriver.hpp
Generated by
1.8.14