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
rtcconf.h
- Committer:
- ysuga
- Date:
- 2013-08-29
- Revision:
- 7:6c7af1d50fb3
- Parent:
- 6:86d72601ff54
File content as of revision 7:6c7af1d50fb3:
#ifndef RTC_CONF_HEADER_INCLUDED
#define RTC_CONF_HEADER_INCLUDED
#ifdef USE_ETHERNET_CONNECTION
#define IPaddr(a1, a2, a3, a4) \
((((uint32_t)a4) << 24) | (((uint32_t)a3) << 16) | (((uint32_t)a2) << 8) | (((uint32_t)a1) << 0))
#define MACaddr(a1, a2, a3, a4, a5, a6) \
((((uint64_t)a6) << 40) | (((uint64_t)a5) << 32) | (((uint64_t)a4) << 24) | (((uint64_t)a3) << 16) | (((uint64_t)a2) << 8) | (((uint64_t)a1) << 0))
#endif
struct default_str {
//#ifdef USE_ETHERNET_CONNECTION
uint64_t mac_address;
uint16_t port;
char* default_gateway;
char* ip_address;
char* subnet_mask;
//#endif
//#ifdef USE_UART_CONNECTION
uint16_t baudrate;
//#endif
uint8_t connection_type;
};
struct ether_str {
};
struct config_str {
struct default_str _default;
};
struct exec_cxt_str {
struct periodic_str {
//#ifdef USE_TIMER1_EC
float rate;
//#endif
uint8_t type;
}periodic;
};
#ifdef USE_UART_CONNECTION
#define ConnectionTypeSerialUSB 0x11
#define ConnectionTypeSerial1 0x01
#define ConnectionTypeSerial2 0x02
#define ConnectionTypeSerial3 0x03
#endif
#ifdef USE_ETHERNET_CONNECTION
#define ConnectionTypeEtherTcp 0x04
#endif
#define ProxySynchronousExecutionContext 0x21
#ifdef USE_TIMER1_EC
#define Timer1ExecutionContext 0x22
#endif
#define Timer2ExecutionContext 0x23
#endif
Yuki Suga