Go to the source code of this file.
Defines | |
| #define | SERIAL_CODE_VERSION "LINUX v1.0d" |
| #define | PORT_NOT_OPENED -1 |
| #define | TRUE 1 |
| #define | FALSE 0 |
| #define | AWAIT_CHARSTREAM -1 |
| #define | TIMEOUT_CHAR_READ -1 |
Typedefs | |
| typedef int | portstream_fd |
Functions | |
| portstream_fd | openserial (char *portname) |
| char | closeserial (portstream_fd) |
| char | SerialBytesOut (portstream_fd, unsigned char *, int) |
| char | SerialBytesIn (portstream_fd, unsigned char *, unsigned int, long) |
| char | PeekByte (portstream_fd, unsigned char *) |
| char | FlushInputBuffer (portstream_fd) |
| void | do_delay (long) |
| char | SerialStringOut (portstream_fd, unsigned char *) |
| char | ReadSerialLine (portstream_fd, unsigned char *, long, int *) |
| char | GetSignedShort (portstream_fd, signed short *, long) |
| char | PutSignedShort (portstream_fd, signed short *) |
| char | GetUnsignedShort (portstream_fd, unsigned short *, long) |
| char | PutUnsignedShort (portstream_fd, unsigned short *) |
| char | GetSignedLong (portstream_fd, signed long *, long) |
| char | PutSignedLong (portstream_fd, signed long *) |
| #define AWAIT_CHARSTREAM -1 |
Definition at line 40 of file linuxser.h.
| #define FALSE 0 |
Definition at line 32 of file linuxser.h.
Referenced by firmware_version_OK(), PeekByte(), ReadSerialLine(), reset_PTU_parser(), SerialBytesIn(), SerialBytesOut(), sick_check_baudrate(), sick_parse_conf_data(), sick_read_data(), sick_set_config_mode(), sick_set_lms_config(), sick_set_lms_range(), and sick_testBaudrate().
| #define PORT_NOT_OPENED -1 |
Definition at line 27 of file linuxser.h.
Referenced by close_host_port(), closeserial(), initialize(), openserial(), and SerialBytesIn().
| #define SERIAL_CODE_VERSION "LINUX v1.0d" |
Definition at line 3 of file linuxser.h.
| #define TIMEOUT_CHAR_READ -1 |
Definition at line 41 of file linuxser.h.
Referenced by firmware_version_OK(), and ReadSerialLine().
| #define TRUE 1 |
Definition at line 31 of file linuxser.h.
Referenced by closeserial(), default_async_event_handler(), firmware_version_OK(), FlushInputBuffer(), get_binary_command_return_status(), get_current(), get_desired(), GetSerialChar(), GetSignedLong(), GetSignedShort(), GetUnsignedShort(), PutSignedLong(), PutSignedShort(), PutUnsignedShort(), ReadSerialLine(), reset_ptu(), reset_PTU_parser(), select_unit(), SerialBytesIn(), SerialBytesOut(), SerialStringOut(), set_unit_id(), sick_check_baudrate(), sick_read_data(), and sick_testBaudrate().
| typedef int portstream_fd |
Definition at line 26 of file linuxser.h.
| char closeserial | ( | portstream_fd | ) |
Definition at line 112 of file linuxser.cpp.
| void do_delay | ( | long | ) |
Definition at line 256 of file linuxser.cpp.
| char FlushInputBuffer | ( | portstream_fd | ) |
Definition at line 181 of file linuxser.cpp.
| char GetSignedLong | ( | portstream_fd | , | |
| signed long * | , | |||
| long | ||||
| ) |
Definition at line 342 of file linuxser.cpp.
| char GetSignedShort | ( | portstream_fd | , | |
| signed short * | , | |||
| long | ||||
| ) |
Definition at line 280 of file linuxser.cpp.
| char GetUnsignedShort | ( | portstream_fd | , | |
| unsigned short * | , | |||
| long | ||||
| ) |
Definition at line 310 of file linuxser.cpp.
| portstream_fd openserial | ( | char * | portname | ) |
Definition at line 49 of file linuxser.cpp.
| char PeekByte | ( | portstream_fd | , | |
| unsigned char * | ||||
| ) |
Definition at line 175 of file linuxser.cpp.
| char PutSignedLong | ( | portstream_fd | , | |
| signed long * | ||||
| ) |
Definition at line 359 of file linuxser.cpp.
| char PutSignedShort | ( | portstream_fd | , | |
| signed short * | ||||
| ) |
Definition at line 298 of file linuxser.cpp.
| char PutUnsignedShort | ( | portstream_fd | , | |
| unsigned short * | ||||
| ) |
Definition at line 329 of file linuxser.cpp.
| char ReadSerialLine | ( | portstream_fd | , | |
| unsigned char * | , | |||
| long | , | |||
| int * | ||||
| ) |
Definition at line 206 of file linuxser.cpp.
| char SerialBytesIn | ( | portstream_fd | , | |
| unsigned char * | , | |||
| unsigned | int, | |||
| long | ||||
| ) |
Definition at line 134 of file linuxser.cpp.
| char SerialBytesOut | ( | portstream_fd | , | |
| unsigned char * | , | |||
| int | ||||
| ) |
Definition at line 121 of file linuxser.cpp.
| char SerialStringOut | ( | portstream_fd | , | |
| unsigned char * | ||||
| ) |
Definition at line 187 of file linuxser.cpp.
1.5.1