@@ -2,9 +2,9 @@
|
||||
#define transmit_h__
|
||||
|
||||
#include "rtthread.h"
|
||||
#include "handle.h"
|
||||
#include "signal.h"
|
||||
#include "stdint.h"
|
||||
#include "bytearray.h"
|
||||
|
||||
|
||||
|
||||
// 错误码定义
|
||||
@@ -25,7 +25,7 @@ typedef struct _ucport_def{
|
||||
tran_def *p;
|
||||
int (*dolater)(struct _ucport_def *u,uint8_t cmd,array_def *data,char *err_str);
|
||||
void (*del)(struct _ucport_def *h);
|
||||
void (*doend)(struct _ucport_def *h,void *src,void *data,int ack,char *err_str);
|
||||
void (*doend)(struct _ucport_def *h,port_mcu *src,void *data,int ack,char *err_str);
|
||||
}ucport_def;
|
||||
|
||||
|
||||
@@ -57,6 +57,8 @@ void tran_recv_slot(tran_def *t,const char *codec_name,uint8_t cmd,array_def *da
|
||||
|
||||
void tran_set_busy(tran_def *t,int busy);
|
||||
int tran_get_busy(tran_def *t);
|
||||
port_mcu *tran_get_portm(tran_def *t,int index);
|
||||
uint32_t tran_get_slave_online(tran_def *t);
|
||||
|
||||
|
||||
signal tran_reply_signal(tran_def *p,array_def *data);
|
||||
|
||||
Reference in New Issue
Block a user