Classes | Namespaces | Macros
packet_handler.h File Reference
#include <stdio.h>
#include <vector>
#include "port_handler.h"
Include dependency graph for packet_handler.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  dynamixel::PacketHandler
 The class that inherits Protocol1PacketHandler class or Protocol2PacketHandler class. More...
 

Namespaces

 dynamixel
 

Macros

#define BROADCAST_ID   0xFE
 
#define COMM_NOT_AVAILABLE   -9000
 
#define COMM_PORT_BUSY   -1000
 
#define COMM_RX_CORRUPT   -3002
 
#define COMM_RX_FAIL   -1002
 
#define COMM_RX_TIMEOUT   -3001
 
#define COMM_RX_WAITING   -3000
 
#define COMM_SUCCESS   0
 
#define COMM_TX_ERROR   -2000
 
#define COMM_TX_FAIL   -1001
 
#define DXL_HIBYTE(w)   ((uint8_t)((((uint64_t)(w)) >> 8) & 0xff))
 
#define DXL_HIWORD(l)   ((uint16_t)((((uint64_t)(l)) >> 16) & 0xffff))
 
#define DXL_LOBYTE(w)   ((uint8_t)(((uint64_t)(w)) & 0xff))
 
#define DXL_LOWORD(l)   ((uint16_t)(((uint64_t)(l)) & 0xffff))
 
#define DXL_MAKEDWORD(a, b)   ((uint32_t)(((uint16_t)(((uint64_t)(a)) & 0xffff)) | ((uint32_t)((uint16_t)(((uint64_t)(b)) & 0xffff))) << 16))
 
#define DXL_MAKEWORD(a, b)   ((uint16_t)(((uint8_t)(((uint64_t)(a)) & 0xff)) | ((uint16_t)((uint8_t)(((uint64_t)(b)) & 0xff))) << 8))
 
#define ERROR_PRINT   printf
 
#define INST_ACTION   5
 
#define INST_BULK_READ   146
 
#define INST_BULK_WRITE   147
 
#define INST_CLEAR   16
 
#define INST_FACTORY_RESET   6
 
#define INST_PING   1
 
#define INST_READ   2
 
#define INST_REBOOT   8
 
#define INST_REG_WRITE   4
 
#define INST_STATUS   85
 
#define INST_SYNC_READ   130
 
#define INST_SYNC_WRITE   131
 
#define INST_WRITE   3
 
#define MAX_ID   0xFC
 

Macro Definition Documentation

#define BROADCAST_ID   0xFE

Definition at line 38 of file packet_handler.h.

#define COMM_NOT_AVAILABLE   -9000

Definition at line 74 of file packet_handler.h.

#define COMM_PORT_BUSY   -1000

Definition at line 67 of file packet_handler.h.

#define COMM_RX_CORRUPT   -3002

Definition at line 73 of file packet_handler.h.

#define COMM_RX_FAIL   -1002

Definition at line 69 of file packet_handler.h.

#define COMM_RX_TIMEOUT   -3001

Definition at line 72 of file packet_handler.h.

#define COMM_RX_WAITING   -3000

Definition at line 71 of file packet_handler.h.

#define COMM_SUCCESS   0

Definition at line 66 of file packet_handler.h.

#define COMM_TX_ERROR   -2000

Definition at line 70 of file packet_handler.h.

#define COMM_TX_FAIL   -1001

Definition at line 68 of file packet_handler.h.

#define DXL_HIBYTE (   w)    ((uint8_t)((((uint64_t)(w)) >> 8) & 0xff))

Definition at line 47 of file packet_handler.h.

#define DXL_HIWORD (   l)    ((uint16_t)((((uint64_t)(l)) >> 16) & 0xffff))

Definition at line 45 of file packet_handler.h.

#define DXL_LOBYTE (   w)    ((uint8_t)(((uint64_t)(w)) & 0xff))

Definition at line 46 of file packet_handler.h.

#define DXL_LOWORD (   l)    ((uint16_t)(((uint64_t)(l)) & 0xffff))

Definition at line 44 of file packet_handler.h.

#define DXL_MAKEDWORD (   a,
 
)    ((uint32_t)(((uint16_t)(((uint64_t)(a)) & 0xffff)) | ((uint32_t)((uint16_t)(((uint64_t)(b)) & 0xffff))) << 16))

Definition at line 43 of file packet_handler.h.

#define DXL_MAKEWORD (   a,
 
)    ((uint16_t)(((uint8_t)(((uint64_t)(a)) & 0xff)) | ((uint16_t)((uint8_t)(((uint64_t)(b)) & 0xff))) << 8))

Definition at line 42 of file packet_handler.h.

#define ERROR_PRINT   printf

Definition at line 30 of file packet_handler.h.

#define INST_ACTION   5

Definition at line 54 of file packet_handler.h.

#define INST_BULK_READ   146

Definition at line 57 of file packet_handler.h.

#define INST_BULK_WRITE   147

Definition at line 63 of file packet_handler.h.

#define INST_CLEAR   16

Definition at line 60 of file packet_handler.h.

#define INST_FACTORY_RESET   6

Definition at line 55 of file packet_handler.h.

#define INST_PING   1

Definition at line 50 of file packet_handler.h.

#define INST_READ   2

Definition at line 51 of file packet_handler.h.

#define INST_REBOOT   8

Definition at line 59 of file packet_handler.h.

#define INST_REG_WRITE   4

Definition at line 53 of file packet_handler.h.

#define INST_STATUS   85

Definition at line 61 of file packet_handler.h.

#define INST_SYNC_READ   130

Definition at line 62 of file packet_handler.h.

#define INST_SYNC_WRITE   131

Definition at line 56 of file packet_handler.h.

#define INST_WRITE   3

Definition at line 52 of file packet_handler.h.

#define MAX_ID   0xFC

Definition at line 39 of file packet_handler.h.



dynamixel_sdk
Author(s): Gilbert , Zerom , Darby Lim , Leon
autogenerated on Fri Apr 16 2021 02:25:55