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:
6:86d72601ff54
update v5

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ysuga 0:5f7bc45bc2e8 1 #ifndef RTC_CONF_HEADER_INCLUDED
ysuga 0:5f7bc45bc2e8 2 #define RTC_CONF_HEADER_INCLUDED
ysuga 0:5f7bc45bc2e8 3
ysuga 0:5f7bc45bc2e8 4
ysuga 0:5f7bc45bc2e8 5 #ifdef USE_ETHERNET_CONNECTION
ysuga 0:5f7bc45bc2e8 6
ysuga 0:5f7bc45bc2e8 7 #define IPaddr(a1, a2, a3, a4) \
ysuga 0:5f7bc45bc2e8 8 ((((uint32_t)a4) << 24) | (((uint32_t)a3) << 16) | (((uint32_t)a2) << 8) | (((uint32_t)a1) << 0))
ysuga 0:5f7bc45bc2e8 9
ysuga 0:5f7bc45bc2e8 10 #define MACaddr(a1, a2, a3, a4, a5, a6) \
ysuga 0:5f7bc45bc2e8 11 ((((uint64_t)a6) << 40) | (((uint64_t)a5) << 32) | (((uint64_t)a4) << 24) | (((uint64_t)a3) << 16) | (((uint64_t)a2) << 8) | (((uint64_t)a1) << 0))
ysuga 0:5f7bc45bc2e8 12
ysuga 0:5f7bc45bc2e8 13 #endif
ysuga 0:5f7bc45bc2e8 14
ysuga 0:5f7bc45bc2e8 15
ysuga 0:5f7bc45bc2e8 16
ysuga 0:5f7bc45bc2e8 17 struct default_str {
ysuga 0:5f7bc45bc2e8 18 //#ifdef USE_ETHERNET_CONNECTION
ysuga 0:5f7bc45bc2e8 19 uint64_t mac_address;
ysuga 0:5f7bc45bc2e8 20 uint16_t port;
ysuga 6:86d72601ff54 21 char* default_gateway;
ysuga 6:86d72601ff54 22 char* ip_address;
ysuga 6:86d72601ff54 23 char* subnet_mask;
ysuga 0:5f7bc45bc2e8 24 //#endif
ysuga 0:5f7bc45bc2e8 25
ysuga 0:5f7bc45bc2e8 26 //#ifdef USE_UART_CONNECTION
ysuga 0:5f7bc45bc2e8 27 uint16_t baudrate;
ysuga 0:5f7bc45bc2e8 28 //#endif
ysuga 0:5f7bc45bc2e8 29
ysuga 0:5f7bc45bc2e8 30 uint8_t connection_type;
ysuga 0:5f7bc45bc2e8 31 };
ysuga 0:5f7bc45bc2e8 32
ysuga 0:5f7bc45bc2e8 33
ysuga 0:5f7bc45bc2e8 34 struct ether_str {
ysuga 0:5f7bc45bc2e8 35 };
ysuga 0:5f7bc45bc2e8 36
ysuga 0:5f7bc45bc2e8 37 struct config_str {
ysuga 0:5f7bc45bc2e8 38 struct default_str _default;
ysuga 0:5f7bc45bc2e8 39 };
ysuga 0:5f7bc45bc2e8 40
ysuga 0:5f7bc45bc2e8 41 struct exec_cxt_str {
ysuga 0:5f7bc45bc2e8 42 struct periodic_str {
ysuga 0:5f7bc45bc2e8 43 //#ifdef USE_TIMER1_EC
ysuga 0:5f7bc45bc2e8 44 float rate;
ysuga 0:5f7bc45bc2e8 45 //#endif
ysuga 0:5f7bc45bc2e8 46 uint8_t type;
ysuga 0:5f7bc45bc2e8 47 }periodic;
ysuga 0:5f7bc45bc2e8 48 };
ysuga 0:5f7bc45bc2e8 49
ysuga 0:5f7bc45bc2e8 50 #ifdef USE_UART_CONNECTION
ysuga 0:5f7bc45bc2e8 51 #define ConnectionTypeSerialUSB 0x11
ysuga 0:5f7bc45bc2e8 52 #define ConnectionTypeSerial1 0x01
ysuga 0:5f7bc45bc2e8 53 #define ConnectionTypeSerial2 0x02
ysuga 0:5f7bc45bc2e8 54 #define ConnectionTypeSerial3 0x03
ysuga 0:5f7bc45bc2e8 55 #endif
ysuga 0:5f7bc45bc2e8 56
ysuga 0:5f7bc45bc2e8 57 #ifdef USE_ETHERNET_CONNECTION
ysuga 0:5f7bc45bc2e8 58 #define ConnectionTypeEtherTcp 0x04
ysuga 0:5f7bc45bc2e8 59 #endif
ysuga 0:5f7bc45bc2e8 60
ysuga 0:5f7bc45bc2e8 61 #define ProxySynchronousExecutionContext 0x21
ysuga 0:5f7bc45bc2e8 62
ysuga 0:5f7bc45bc2e8 63 #ifdef USE_TIMER1_EC
ysuga 0:5f7bc45bc2e8 64 #define Timer1ExecutionContext 0x22
ysuga 0:5f7bc45bc2e8 65 #endif
ysuga 0:5f7bc45bc2e8 66
ysuga 0:5f7bc45bc2e8 67 #define Timer2ExecutionContext 0x23
ysuga 0:5f7bc45bc2e8 68
ysuga 0:5f7bc45bc2e8 69 #endif