Owner manual
PAGE 27
Technical support (650) 384-0000 www.avalanwireless.com
AW2400mSPI
User’s Manual
13. Deassert /CS_BB.
14. Wait for Connected Flag to be set
The AW2400mSPI is now initialized and connected, ready to send and receive data.
Send Data Example (AP Side)
1. If Connected Flag is clear or FIFO Full Flag is set then end.
2. Else assert /CS_BB (drive line low) and issue setPacket (0x8A) command
and delay for 4 µs.
3. Sendrstbyteindicatingifabroadcastpacketoraunicastpacket.
4. Send two bytes indicating data size in bytes.
5. Send all data bytes
6. Deassert /CS_BB (drive line high) and delay for 6 µs.
Get Data Example (AP Side)
1. If Data Ready Flag is set assert /CS_BB (drive line low) and issue getPacket
(0x0A) command and delay for 4 µs.
2. GetsrstbytetodeterminewhatSUsentthepacket.
3. Get next two bytes to determine the packet size in bytes.
4. Get all data bytes
5. Deassert /CS_BB (drive line high) and delay for 6 µs.
6. If Data Ready is still set then repeat all steps.
RSSI Example
1. Assert /CS_BB (drive line low) and issue getRSSIreadings (0x09) command
and delay for 4 µs.
2. SendrstbytetotellXC1220whatstepsizeandnumberofsamplestouse.
3. Get two bytes to determine the Base Frequency multiplier.
4. Get two bytes to determine the Numerator and Denominator for frequency
calculations.
5. Get one byte to determine how many channel markers there are.
6. Get all channel markers.
7. Wait for Data Ready to be set.
8. Get two bytes to determine the number of data points to be read.