01.06.2013 Views

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Top of list<br />

Index page<br />

This buffer handle private type is used internally by the TCP/IP stack.<br />

typedef void far * DevUserBuffer; // Device buffer handle type<br />

DevUserBufferHandle<br />

This type references a buffer handle private type used internally by the TCP/IP stack.<br />

typedef DevUserBuffer far * DevUserBufferHandle; // Pointer to a device buffer handle<br />

Related Topics<br />

Top of list<br />

Index page<br />

DevUserBuffer type - Device buffer handle (private)<br />

API function DEV_GET_BUF - Get a buffer from TCP/IP stack<br />

DevUserDriver<br />

typedef struct tag_DevUserDriver<br />

{<br />

int DevIndex; // Internal device index, filled by <strong>@CHIP</strong>-<strong>RTOS</strong><br />

char far * DevName; // Unique device name, max. 13 chars + 0<br />

unsigned long IpAddr; // IP address<br />

unsigned long Netmask; // Netmask<br />

DevUserIfaceHandle IfaceHandle; // handle to identify the interface internal<br />

DevUserLinkLayer LinkLayerHandle; // handle to identify the link layer internal<br />

unsigned char iface_type, // Type of the device driver:<br />

// 0: unknown user specific device,<br />

// 1: device is an Ethernet controller,<br />

// 2: use PPP protocol as a server<br />

// (currently not supported).<br />

// 3: use PPP protocol as a client<br />

// (currently not supported).<br />

// 4: use SLIP protocol (currently not supported)<br />

unsigned char use_dhcp; // Boolean, set to 1 if you want to use<br />

// DHCP server IP configuration.<br />

UserEthDhcp_Entry far * Dhcp_Data; // Pointer to DHCP data set by<br />

// DEV_WAIT_DHCP_COMPLETE API<br />

// (only applies if use_dhcp=1<br />

// and iface_type=1 =Ethernet).<br />

//<br />

void far * Reserved1; // reserved for future extensions<br />

void far * Reserved2;<br />

void far * Reserved3;<br />

// Set of driver functions which user implements:<br />

void far * DevOpen; // Driver Open/initialize function,<br />

// optional (pass a Null pointer if not used).<br />

void far * DevClose; // Driver Close function,<br />

// optional (pass a Null pointer if not used).<br />

void far * DevSend; // Driver send function<br />

void far * DevRecv; // Driver recv function<br />

Page 163 / 400

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!