ROS Serial C client library
|
00001 00018 #ifndef __ROS_SPINNER_H__ 00019 #define __ROS_SPINNER_H__ 00020 /* ROS includes */ 00021 #include "ros_types.h" 00022 #include "ros_config.h" 00026 struct rosSpinner 00027 { 00028 uint8_t state; 00029 uint8_t last_byte; 00030 uint8_t curr_byte; 00031 uint8_t buffer_initialized; 00032 uint16_t counter; 00033 rosPacket_t packet; 00034 uint32_t last_sync_time; 00035 rosReturnCode_t (*spin)(rosNodeHandle_t* nodehandle); 00036 }; 00040 typedef struct rosSpinner rosSpinner_t; 00041 00042 rosReturnCode_t slaveSpinner(rosNodeHandle_t* nodehandle); 00043 rosReturnCode_t masterSpinner(rosNodeHandle_t* nodehandle); 00044 00045 #endif