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.

Handle from ACCESS_TYPE call 0x02<br />

Return Value<br />

Carry: 0, AX:0, DX:0: success<br />

Carry: 1, DH contains error code<br />

Related Topics<br />

Top of list<br />

Index page<br />

ACCESS_TYPE Install Access Handler<br />

Interrupt 0xAE service 0x04: SEND_PKT, Send an Ethernet packet<br />

Parameters<br />

AH<br />

CX<br />

DS:SI<br />

Send bytes in provided packet buffer over Ethernet.<br />

0x04<br />

Length of packet<br />

Pointer to packet buffer<br />

Return Value<br />

Comments<br />

Carry flag:0, AX:0, DX:0: success<br />

Carry flag:1, DH contains error code<br />

The data packet buffer should have the Ethernet packet form defined by IEEE 802.3:<br />

typedef struct MY_PACKET_<br />

{<br />

unsigned char dest[6]; // Destination MAC address<br />

unsigned char src[6]; // Source MAC address<br />

unsigned int type; // Packet type (big endian)<br />

unsigned char data[DATA_SIZE];<br />

} MY_PACKET ;<br />

where DATA_SIZE can range up to 1500 bytes.<br />

The src field can be set using the GET_ADDRESS API.<br />

Related Topics<br />

Top of list<br />

Index page<br />

GET_ADDRESS Get the Ethernet address<br />

Interrupt 0xAE service 0x06: GET_ADDRESS, Get the <strong>IPC<strong>@CHIP</strong></strong> Ethernet address<br />

Page 381 / 400

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

Saved successfully!

Ooh no, something went wrong!