Download The user manual can be found here.

Transcript
@for later to allow reset of ownership and size
@ BEQ receive_get_pbuf
@otherwise acquire a pbuf
receive_get_pbuf:
LDR r0, =PBUF_RAW
MOV r1, r4
@set size to be the value found in ether_rx_available
LDR r2, =PBUF_POOL
BL pbuf_alloc
@now begin to transfer data to the pbuf at r0
@ current pbuf pointer address stored in r0
LDR r2, =0x0
@initialize counter
MOV r1, r0
@save pointer to beginning of pbuf (for return value)
@r1 will be used as a pointer to a variable pbuf instead
receive_main:
LDR r3, [r1]
@set r3 to be the pointer to the next pbuf packet
ADD r1, r1, #0x4 @increment to next word in pbuf structure
LDR r5, [r1]
@set r6 to be payload address
ADD r1, r1, #0x4
LDR r7, [r1]
Page | 183
@set r7 to be size of current payload