MCPcopy Create free account
hub / github.com/ROBOTIS-GIT/DynamixelSDK / Dynamixel

Class Dynamixel

java/dynamixel_functions_java/x86/Dynamixel.java:168–559  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166}
167
168public class Dynamixel
169{
170 LibFunction libFunction = (LibFunction)Native.loadLibrary("dxl_x86_c", LibFunction.class);
171
172 // PortHandler functions
173 public int portHandler(String str)
174 {
175 return libFunction.portHandler(str);
176 }
177
178 public Boolean openPort(int port_num)
179 {
180 return libFunction.openPort(port_num);
181 }
182 public void closePort(int port_num)
183 {
184 libFunction.closePort(port_num);
185 }
186 public void clearPort(int port_num)
187 {
188 libFunction.clearPort(port_num);
189 }
190
191 public Boolean setBaudRate(int port_num, int baudrate)
192 {
193 return libFunction.setBaudRate(port_num, baudrate);
194 }
195 public int getBaudRate(int port_num)
196 {
197 return libFunction.getBaudRate(port_num);
198 }
199
200 public int readPort(int port_num, byte[] packet, int length)
201 {
202 return libFunction.readPort(port_num, packet, length);
203 }
204 public int writePort(int port_num, byte[] packet, int length)
205 {
206 return libFunction.writePort(port_num, packet, length);
207 }
208
209 public void setPacketTimeout(int port_num, short packet_length)
210 {
211 libFunction.setPacketTimeout(port_num, packet_length);
212 }
213 public void setPacketTimeoutMSec(int port_num, double msec)
214 {
215 libFunction.setPacketTimeoutMSec(port_num, msec);
216 }
217 public Boolean isPacketTimeout(int port_num)
218 {
219 return libFunction.isPacketTimeout(port_num);
220 }
221
222 // PacketHandler functions
223 public void packetHandler()
224 {
225 libFunction.packetHandler();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected