20 #ifndef _hardware_UseAX10420_h_ 21 #define _hardware_UseAX10420_h_ 24 #include <sys/types.h> 39 fd = open(device_name, O_RDWR);
42 ROS_ERROR(
"error opening the ax10420 device: %s\n",strerror(errno));
63 ROS_ERROR(
"AX10420_Init invalid fd:%x\n",fd);
86 ROS_ERROR(
"AX10420_Init write failed: %s\n",strerror(errno));
105 ROS_ERROR(
"AX10420_GetInput invalid fd:%x\n",fd);
157 ROS_ERROR(
"AX10420_GetInput read failed: %s\n",strerror(errno));
177 ROS_ERROR(
"AX10420_SetOutput invalid fd:%x\n",fd);
198 ROS_ERROR(
"AX10420_SetOutput write failed: %s\n",strerror(errno));
int AX10420_OpenDevice(const char *device_name)
int AX10420_GetInput(int fd, tAXGroup group, tAXPort port)
int AX10420_Init(int fd, tAXGroup group, tAXIOConfigure port_a, tAXIOConfigure port_b, tAXIOConfigure port_c_upper, tAXIOConfigure port_c_lower)
tAXIOConfigure port_c_lower
int AX10420_SetOutput(int fd, tAXGroup group, tAXPort port, unsigned value)
tAXIOConfigure port_c_upper
AX10420_msg_setOutput msgsetoutput