MercurySDK
Software development kit for Mercury digital servos
packet_handler.cpp
Go to the documentation of this file.
1 /*******************************************************************************
2 * Copyright (C) 2021 <Robot Articulation/code@robotarticulation.com>
3 *
4 * Source files modified to support the Mercury range of digital servo motors from Robot Articulation
5 *******************************************************************************/
6 
7 /*******************************************************************************
8 * Copyright 2017 ROBOTIS CO., LTD.
9 *
10 * Licensed under the Apache License, Version 2.0 (the "License");
11 * you may not use this file except in compliance with the License.
12 * You may obtain a copy of the License at
13 *
14 * http://www.apache.org/licenses/LICENSE-2.0
15 *
16 * Unless required by applicable law or agreed to in writing, software
17 * distributed under the License is distributed on an "AS IS" BASIS,
18 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 * See the License for the specific language governing permissions and
20 * limitations under the License.
21 *******************************************************************************/
22 
23 /* Original author: Zerom, Leon (RyuWoon Jung) */
24 
25 #if defined(__linux__)
26 #include "packet_handler.h"
28 #elif defined(_WIN32) || defined(_WIN64)
29 #define WINDLLEXPORT
30 #include "packet_handler.h"
32 #endif
33 
34 using namespace mercury;
35 
37 {
39 }
The class that inherits Protocol1PacketHandler class or Protocol2PacketHandler class.
static PacketHandler * getPacketHandler()
The function that returns PacketHandler instance.
static Protocol2PacketHandler * getInstance()
The function that returns Protocol2PacketHandler instance.