modify apparch/lian.md
This commit is contained in:
parent
5bebbd9397
commit
23b1423a6b
|
@ -20,10 +20,10 @@ xs_Adapter可以被设计为采用类似面向对象的方法,针对不同的
|
|||
struct xs_Adapter
|
||||
{
|
||||
const char name[XS_NAME_MAX]; /* name of the adapter instance */
|
||||
enum xs_AdpterType type; /* type of adapter, such as lora adapter */
|
||||
enum xs_AdapterType type; /* type of adapter, such as lora adapter */
|
||||
xs_AdapterInfo info; /* adapter model info, such as vendor name and model name */
|
||||
struct xs_AdpterOps ops; /* socket-like APIs for data transferring */
|
||||
struct xs_AdpterInterface interface; /* physical interface for transferring data */
|
||||
struct xs_AdapterOps ops; /* socket-like APIs for data transferring */
|
||||
struct xs_AdapterInterface interface; /* physical interface for transferring data */
|
||||
struct XS_DOUBLE_LINKLIST_NODE link; /* link list node */
|
||||
};
|
||||
```
|
||||
|
@ -54,8 +54,8 @@ struct xs_AdapterOps {
|
|||
int (*open)(struct xs_Adapter *sadapter);
|
||||
void (*close)(struct xs_Adapter *sadapter);
|
||||
int (*join)(struct xs_Adapter *sadapter,int net_type, int dev_type, int net_number);
|
||||
int (*send)(struct xs_Adapter *sadapter, const char* data, int len,int des_dev, int time_out, bool block, int delay);
|
||||
int (*receive)(struct xs_Adapter *sadapter, char* rev_buffer, int buffer_len,int time_out, bool block);
|
||||
int (*send)(struct xs_Adapter *sadapter, const char* data, int len, int des_dev, int time_out, bool block, int delay);
|
||||
int (*receive)(struct xs_Adapter *sadapter, char* rev_buffer, int buffer_len, int time_out, bool block);
|
||||
int (*ioctl)(struct xs_Adapter *sadapter, int cmd, void *arg);
|
||||
};
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue