@@ -23,7 +23,7 @@ namespace dynamixel_sdk
2323{
2424 class dynamixel
2525 {
26- const string dll_path = "../../../../../../../../ c/build/win64/output/dxl_x64_c.dll" ;
26+ const string dll_path = "../../../../../../../c/build/win64/output/dxl_x64_c.dll" ;
2727
2828 #region PortHandler
2929 [ DllImport ( dll_path ) ]
@@ -46,18 +46,13 @@ class dynamixel
4646 [ DllImport ( dll_path ) ]
4747 public static extern int getBaudRate ( int port_num ) ;
4848
49- #ifdef __linux__
5049 [ DllImport ( dll_path ) ]
51- public static extern int getBytesAvailable ( int port_num ) ;
52- #endif
53-
54- [ DllImport ( dll_path ) ]
55- public static extern int readPort ( int port_num , uint8_t * packet , int length ) ;
50+ public static extern int readPort ( int port_num , byte [ ] packet , int length ) ;
5651 [ DllImport ( dll_path ) ]
57- public static extern int writePort ( int port_num , uint8_t * packet , int length ) ;
52+ public static extern int writePort ( int port_num , byte [ ] packet , int length ) ;
5853
5954 [ DllImport ( dll_path ) ]
60- public static extern void setPacketTimeout ( int port_num , uint16_t packet_length ) ;
55+ public static extern void setPacketTimeout ( int port_num , UInt16 packet_length ) ;
6156 [ DllImport ( dll_path ) ]
6257 public static extern void setPacketTimeoutMSec ( int port_num , double msec ) ;
6358 [ DllImport ( dll_path ) ]
@@ -68,12 +63,11 @@ class dynamixel
6863 [ DllImport ( dll_path ) ]
6964 public static extern void packetHandler ( ) ;
7065
71-
7266 [ DllImport ( dll_path ) ]
7367 public static extern IntPtr getTxRxResult ( int protocol_version , int result ) ;
7468 [ DllImport ( dll_path ) ]
7569 public static extern IntPtr getRxPacketError ( int protocol_version , byte error ) ;
76-
70+
7771 [ DllImport ( dll_path ) ]
7872 public static extern int getLastTxRxResult ( int port_num , int protocol_version ) ;
7973 [ DllImport ( dll_path ) ]
0 commit comments