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

Committer:
ysuga
Date:
Thu Feb 09 02:33:10 2012 +0000
Revision:
0:9fac71a0bff3
RTno Version 3: RTno is a software library and tool to connect embedded devices like arduino and mbed to RT-middleware world.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ysuga 0:9fac71a0bff3 1 #include <ctype.h>
ysuga 0:9fac71a0bff3 2
ysuga 0:9fac71a0bff3 3 #include "TypeCode.h"
ysuga 0:9fac71a0bff3 4
ysuga 0:9fac71a0bff3 5 uint8_t TypeCode_isSequence(const char typeCode) {
ysuga 0:9fac71a0bff3 6 return isupper(typeCode);
ysuga 0:9fac71a0bff3 7 }
ysuga 0:9fac71a0bff3 8
ysuga 0:9fac71a0bff3 9 uint8_t TypeCode_getElementSize(const char typeCode) {
ysuga 0:9fac71a0bff3 10 switch(tolower(typeCode)) {
ysuga 0:9fac71a0bff3 11 case 'b':
ysuga 0:9fac71a0bff3 12 case 'c':
ysuga 0:9fac71a0bff3 13 case 'o':
ysuga 0:9fac71a0bff3 14 return 1;
ysuga 0:9fac71a0bff3 15 case 's':
ysuga 0:9fac71a0bff3 16 return 2;
ysuga 0:9fac71a0bff3 17 case 'l':
ysuga 0:9fac71a0bff3 18 case 'f':
ysuga 0:9fac71a0bff3 19 case 'd': // double is 32 bit in arduino
ysuga 0:9fac71a0bff3 20 return 4;
ysuga 0:9fac71a0bff3 21 default:
ysuga 0:9fac71a0bff3 22 return 4;
ysuga 0:9fac71a0bff3 23 }
ysuga 0:9fac71a0bff3 24 }