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:   EthernetNetIf

Dependents:   RTnoV3_LED RTnoV3_Template RTnoV3_ADC RTnoV3_Timer ... more

Revision:
0:9fac71a0bff3
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TypeCode.cpp	Thu Feb 09 02:33:10 2012 +0000
@@ -0,0 +1,24 @@
+#include <ctype.h>
+
+#include "TypeCode.h"
+
+uint8_t TypeCode_isSequence(const char typeCode) {
+  return isupper(typeCode);
+}
+
+uint8_t TypeCode_getElementSize(const char typeCode) {
+  switch(tolower(typeCode)) {
+  case 'b':
+  case 'c':
+  case 'o':
+    return 1;
+  case 's':
+    return 2;
+  case 'l':
+  case 'f':
+  case 'd': // double is 32 bit in arduino
+    return 4;
+  default:
+    return 4;
+  }
+}