RTno is communicating library and framework which allows you to make your embedded device capable of communicating with RT-middleware world. RT-middleware is a platform software to realize Robotic system. In RTM, robots are developed by constructing robotics technologies\' elements (components) named RT-component. Therefore, the RTno helps you to create your own RT-component with your mbed and arduino. To know how to use your RTno device, visit here: http://ysuga.net/robot_e/rtm_e/rtc_e/1065?lang=en To know about RT-middleware and RT-component, visit http://www.openrtm.org

Dependencies:   EthernetInterface mbed-rtos

Committer:
ysuga
Date:
Thu Aug 29 05:29:55 2013 +0000
Revision:
7:6c7af1d50fb3
Parent:
0:5f7bc45bc2e8
update v5

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ysuga 0:5f7bc45bc2e8 1 /*******************************************
ysuga 0:5f7bc45bc2e8 2 * BasicDataType.h
ysuga 0:5f7bc45bc2e8 3 * @author Yuki Suga
ysuga 0:5f7bc45bc2e8 4 * @copyright Yuki Suga (ysuga.net) Nov, 10th, 2010.
ysuga 0:5f7bc45bc2e8 5 * @license LGPLv3
ysuga 0:5f7bc45bc2e8 6 *****************************************/
ysuga 0:5f7bc45bc2e8 7
ysuga 0:5f7bc45bc2e8 8 #ifndef BASIC_DATA_TYPE_HEADER_INCLUDED
ysuga 0:5f7bc45bc2e8 9 #define BASIC_DATA_TYPE_HEADER_INCLUDED
ysuga 0:5f7bc45bc2e8 10
ysuga 0:5f7bc45bc2e8 11 #include <stdint.h>
ysuga 0:5f7bc45bc2e8 12 #include "Sequence.h"
ysuga 0:5f7bc45bc2e8 13
ysuga 0:5f7bc45bc2e8 14 #pragma pack(1)
ysuga 0:5f7bc45bc2e8 15 struct TimedBoolean {
ysuga 0:5f7bc45bc2e8 16 static const char typeCode = 'b';
ysuga 0:5f7bc45bc2e8 17 char data;
ysuga 0:5f7bc45bc2e8 18 };
ysuga 0:5f7bc45bc2e8 19
ysuga 0:5f7bc45bc2e8 20 struct TimedChar {
ysuga 0:5f7bc45bc2e8 21 static const char typeCode = 'c';
ysuga 0:5f7bc45bc2e8 22 char data;
ysuga 0:5f7bc45bc2e8 23 };
ysuga 0:5f7bc45bc2e8 24
ysuga 0:5f7bc45bc2e8 25 struct TimedOctet {
ysuga 0:5f7bc45bc2e8 26 static const char typeCode = 'o';
ysuga 0:5f7bc45bc2e8 27 int8_t data;
ysuga 0:5f7bc45bc2e8 28 };
ysuga 0:5f7bc45bc2e8 29
ysuga 0:5f7bc45bc2e8 30 struct TimedShort {
ysuga 0:5f7bc45bc2e8 31 static const char typeCode = 's';
ysuga 0:5f7bc45bc2e8 32 int16_t data;
ysuga 0:5f7bc45bc2e8 33
ysuga 0:5f7bc45bc2e8 34 };
ysuga 0:5f7bc45bc2e8 35
ysuga 0:5f7bc45bc2e8 36 struct TimedLong {
ysuga 0:5f7bc45bc2e8 37 static const char typeCode = 'l';
ysuga 0:5f7bc45bc2e8 38 int32_t data;
ysuga 0:5f7bc45bc2e8 39 };
ysuga 0:5f7bc45bc2e8 40
ysuga 0:5f7bc45bc2e8 41 struct TimedDouble {
ysuga 0:5f7bc45bc2e8 42 static const char typeCode = 'd';
ysuga 0:5f7bc45bc2e8 43 float data;
ysuga 0:5f7bc45bc2e8 44 };
ysuga 0:5f7bc45bc2e8 45
ysuga 0:5f7bc45bc2e8 46 struct TimedFloat {
ysuga 0:5f7bc45bc2e8 47 static const char typeCode = 'f';
ysuga 0:5f7bc45bc2e8 48 float data;
ysuga 0:5f7bc45bc2e8 49 };
ysuga 0:5f7bc45bc2e8 50
ysuga 0:5f7bc45bc2e8 51
ysuga 0:5f7bc45bc2e8 52 struct TimedOctetSeq {
ysuga 0:5f7bc45bc2e8 53 static const char typeCode = 'O';
ysuga 0:5f7bc45bc2e8 54 Sequence<int8_t> data;
ysuga 0:5f7bc45bc2e8 55 };
ysuga 0:5f7bc45bc2e8 56
ysuga 0:5f7bc45bc2e8 57 struct TimedCharSeq {
ysuga 0:5f7bc45bc2e8 58 static const char typeCode = 'C';
ysuga 0:5f7bc45bc2e8 59 Sequence<char> data;
ysuga 0:5f7bc45bc2e8 60 };
ysuga 0:5f7bc45bc2e8 61
ysuga 0:5f7bc45bc2e8 62 struct TimedBooleanSeq {
ysuga 0:5f7bc45bc2e8 63 static const char typeCode = 'B';
ysuga 0:5f7bc45bc2e8 64 Sequence<char> data;
ysuga 0:5f7bc45bc2e8 65 };
ysuga 0:5f7bc45bc2e8 66
ysuga 0:5f7bc45bc2e8 67 struct TimedShortSeq {
ysuga 0:5f7bc45bc2e8 68 static const char typeCode = 'S';
ysuga 0:5f7bc45bc2e8 69 Sequence<int16_t> data;
ysuga 0:5f7bc45bc2e8 70 };
ysuga 0:5f7bc45bc2e8 71
ysuga 0:5f7bc45bc2e8 72 struct TimedLongSeq {
ysuga 0:5f7bc45bc2e8 73 static const char typeCode = 'L';
ysuga 0:5f7bc45bc2e8 74 Sequence<int32_t> data;
ysuga 0:5f7bc45bc2e8 75 };
ysuga 0:5f7bc45bc2e8 76
ysuga 0:5f7bc45bc2e8 77 struct TimedFloatSeq {
ysuga 0:5f7bc45bc2e8 78 static const char typeCode = 'F';
ysuga 0:5f7bc45bc2e8 79 Sequence<float> data;
ysuga 0:5f7bc45bc2e8 80 };
ysuga 0:5f7bc45bc2e8 81
ysuga 0:5f7bc45bc2e8 82 struct TimedDoubleSeq {
ysuga 0:5f7bc45bc2e8 83 static const char typeCode = 'D';
ysuga 0:5f7bc45bc2e8 84 Sequence<float> data;
ysuga 0:5f7bc45bc2e8 85 };
ysuga 0:5f7bc45bc2e8 86
ysuga 0:5f7bc45bc2e8 87
ysuga 0:5f7bc45bc2e8 88 #endif