gloveStatus.cc
Go to the documentation of this file.
1 
18 /* system includes */
19 /* (none) */
20 
21 /* my includes */
22 #include "gloveStatus.h"
23 
24 
26 {
27 }
28 
30 {
31 }
32 
34 {
35  return sensorSize;
36 }
37 
39 {
40  sensorSize = n;
41 }
42 
44 {
45  flags.X.is_glove_byte = activate;
46 }
47 
49 {
50  return flags.X.is_glove_byte;
51 }
52 
53 void gloveStatus::setTimeStamp(bool activate)
54 {
55  flags.X.is_time_stamp = activate;
56 }
57 
59 {
60  return flags.X.is_time_stamp;
61 }
62 
64 {
65  flags = flg;
66 }
67 
68 
69 
70 #if gloveStatus_test
71 #include <stdio.h>
72 int main(int argc, char **argv)
73 {
74  // This is a module-test block. You can put code here that tests
75  // just the contents of this C file, and build it by saying
76  // make gloveStatus_test
77  // Then, run the resulting executable (gloveStatus_test).
78  // If it works as expected, the module is probably correct. ;-)
79 
80  fprintf(stderr, "Testing gloveStatus\n");
81 
82  return 0;
83 }
84 #endif /* gloveStatus_test */
bool isGloveStatusByte()
Definition: gloveStatus.cc:48
void setGloveStatusByte(bool activate)
Definition: gloveStatus.cc:43
void setSensorSize(uchar_t n)
Definition: gloveStatus.cc:38
unsigned char uchar_t
Definition: gloveTypes.h:28
bool isTimeStamp()
Definition: gloveStatus.cc:58
int main(int argc, char **argv)
parameterFlags_t flags
Definition: gloveStatus.h:54
struct parameterFlags_t::@5 X
uchar_t sensorSize
Definition: gloveStatus.h:53
void setParameterFlags(parameterFlags_t flg)
Definition: gloveStatus.cc:63
void setTimeStamp(bool activate)
Definition: gloveStatus.cc:53
uchar_t is_time_stamp
Definition: gloveTypes.h:117
uchar_t getSensorSize()
Definition: gloveStatus.cc:33
uchar_t is_glove_byte
Definition: gloveTypes.h:114


asr_cyberglove_lib
Author(s): Heller Florian, Meißner Pascal, Nguyen Trung, Yi Xie
autogenerated on Mon Jun 10 2019 12:40:38