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
Diff: BasicDataType.h
- Revision:
- 0:5f7bc45bc2e8
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/BasicDataType.h Mon Jun 24 06:42:11 2013 +0000 @@ -0,0 +1,88 @@ +/******************************************* + * BasicDataType.h + * @author Yuki Suga + * @copyright Yuki Suga (ysuga.net) Nov, 10th, 2010. + * @license LGPLv3 + *****************************************/ + +#ifndef BASIC_DATA_TYPE_HEADER_INCLUDED +#define BASIC_DATA_TYPE_HEADER_INCLUDED + +#include <stdint.h> +#include "Sequence.h" + +#pragma pack(1) +struct TimedBoolean { + static const char typeCode = 'b'; + char data; +}; + +struct TimedChar { + static const char typeCode = 'c'; + char data; +}; + +struct TimedOctet { + static const char typeCode = 'o'; + int8_t data; +}; + +struct TimedShort { + static const char typeCode = 's'; + int16_t data; + +}; + +struct TimedLong { + static const char typeCode = 'l'; + int32_t data; +}; + +struct TimedDouble { + static const char typeCode = 'd'; + float data; +}; + +struct TimedFloat { + static const char typeCode = 'f'; + float data; +}; + + +struct TimedOctetSeq { + static const char typeCode = 'O'; + Sequence<int8_t> data; +}; + +struct TimedCharSeq { + static const char typeCode = 'C'; + Sequence<char> data; +}; + +struct TimedBooleanSeq { + static const char typeCode = 'B'; + Sequence<char> data; +}; + +struct TimedShortSeq { + static const char typeCode = 'S'; + Sequence<int16_t> data; +}; + +struct TimedLongSeq { + static const char typeCode = 'L'; + Sequence<int32_t> data; +}; + +struct TimedFloatSeq { + static const char typeCode = 'F'; + Sequence<float> data; +}; + +struct TimedDoubleSeq { + static const char typeCode = 'D'; + Sequence<float> data; +}; + + +#endif