uxbus_cmd_ser.h
Go to the documentation of this file.
1 /* Copyright 2017 UFACTORY Inc. All Rights Reserved.
2  *
3  * Software License Agreement (BSD License)
4  *
5  * Author: Jimy Zhang <jimy92@163.com>
6  ============================================================================*/
7 #ifndef CORE_INSTRUCTION_UXBUS_CMD_SER_H_
8 #define CORE_INSTRUCTION_UXBUS_CMD_SER_H_
9 
11 #include "xarm/core/port/ser.h"
12 
13 class UxbusCmdSer : public UxbusCmd {
14 public:
15  UxbusCmdSer(SerialPort *arm_port);
16  ~UxbusCmdSer(void);
17 
18  int check_xbus_prot(unsigned char *datas, int funcode);
19  int send_pend(int funcode, int num, int timeout, unsigned char *ret_data);
20  int send_xbus(int funcode, unsigned char *datas, int num);
21  void close(void);
22  int is_ok(void);
23 
24 private:
26 };
27 
28 #endif
void close(void)
int send_xbus(int funcode, unsigned char *datas, int num)
SerialPort * arm_port_
Definition: uxbus_cmd_ser.h:25
int check_xbus_prot(unsigned char *datas, int funcode)
int is_ok(void)
~UxbusCmdSer(void)
int send_pend(int funcode, int num, int timeout, unsigned char *ret_data)
UxbusCmdSer(SerialPort *arm_port)
Definition: ser.h:17


xarm_api
Author(s):
autogenerated on Sat May 8 2021 02:51:23