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
Dependents: RTnoV3_LED RTnoV3_Template RTnoV3_ADC RTnoV3_Timer ... more
TypeCode.cpp
00001 #include <ctype.h> 00002 00003 #include "TypeCode.h" 00004 00005 uint8_t TypeCode_isSequence(const char typeCode) { 00006 return isupper(typeCode); 00007 } 00008 00009 uint8_t TypeCode_getElementSize(const char typeCode) { 00010 switch(tolower(typeCode)) { 00011 case 'b': 00012 case 'c': 00013 case 'o': 00014 return 1; 00015 case 's': 00016 return 2; 00017 case 'l': 00018 case 'f': 00019 case 'd': // double is 32 bit in arduino 00020 return 4; 00021 default: 00022 return 4; 00023 } 00024 }
Generated on Tue Jul 12 2022 18:33:24 by 1.7.2