SensorRF
−
GEVK
5
Remote User Interface (RUI)
The RUI module is depicted in Figure 7. The module is
defined in the
rui_view
files and it utilizes the
rui_thread
and
interfaces
files to carry out its operations. The
interfaces
files in turn utilize the
can
,
i2c
,
spi
,
tcp_server
, and
uart
files.
The most important operations contained in these files are as
follows:
•
rui_view:
Defines the resources needed for the RUI,
most importantly the interfaces object.
•
rui_thread:
Defines the RUI thread that is spawned to
offload the intense process of listening for commands,
processing them, and sending back responses from the
GUI thread.
•
interfaces:
Defines the generic interface that is used to
connect SensorRF
−
GEVK to an external device either
through the UART, TCP, CAN, SPI or I
2
C interfaces.
•
can:
Defines the CAN Linux socket.
•
i2c:
Defines the I
2
C Linux socket.
•
spi:
Defines the SPI Linux socket.
•
tcp_server:
Defines the TCP Server Linux socket.
•
uart:
Defines the UART Linux socket.
Figure 7. Demo Application RUI Module
RUI
rui_view .h/.cpp
rui_thread .h/.cpp
interfaces .h/.cpp
can .h/.cpp
tcp_server .h/.cpp
i2c .h/.cpp
spi .h/.cpp
uart .h/.cpp
Model
The Model module is depicted in Figure 8. The module is
defined in the
kit_model
files and it utilizes the
sensorTag
,
GPIO
,
util
, and
utility
files to carry out its operations. Some
of the most important system operations are contained in
these files and are as follows:
•
kit_model:
Defines the resources needed for the
Model, most importantly the reader object, the
sensorTag lists, and the functions available to set the
Reader settings and perform reads. The most important
operations
available in the Model will be described
below.
•
sensorTag:
Defines the data structures used to store
sensor reads, sensor measurements, and sensor data.
•
GPIO:
Defines the object through which the
BeagleBone’s GPIOs can be accessed, which is used to
turn the Reader on/off and to connect the UART, I
2
C or
SPI ports on the board to the BeagleBone when one of
those interfaces is selected.
•
util:
Defines helper functions for GPIO.
•
utility:
Defines helper functions for performing data
conversions.
Figure 8. Demo Application Model Module
Model
kit_model .h/.cpp
utility .h/.cpp
sensorTag .h/.cpp
util .h/.cpp
GPIO .h/.cpp