Download Design of a Bluetooth Enabled Android Application
Transcript
tx_head3 tx_tail tx_tail1 long 0 long 0 ' tx tail pointer, ditto, zero to size of rx buffer long 0 ' data is transmitted from this offset above base, 0 ' These are the base hub addresses of the receive txbuff_ptr tx_tail2 long 0 tx_tail3 long 0 rxbuff_ptr long buffers rxbuff_ptr1 long 0 ' initialized in spin, referenced in pasm and spin rxbuff_ptr2 long 0 ' these buffers and sizes are individually configurable rxbuff_ptr3 long 0 txbuff_ptr long 0 ' These are the base hub addresses of the transmit buffers txbuff_ptr1 long 0 txbuff_ptr2 long 0 txbuff_ptr3 long 0 ' Start of HUB overlay -----------------------------------------------------------------------' Some locations within the next set of values, after being init'd to zero, are then filled from spin with options ' That are transferred to and accessed by the pasm cog once started, but no longer needed in spin. ' Therefore, tx and rx buffers start here and overlays the hub footprint of these variables. ' tx_buffers come first, 0,1,2,3, then rx buffers 0,1,2,3 by offset from "buffers" overlay buffers txdata long 0 txbits long 0 txcnt long 0 txdata1 long 0 txbits1 long 0 103