Hi,
I am working on the CC2520. I have two questions regarding on the datasheet and the example codes. Hope I can get some help here.
1. In this FSM figure, what does "all state" mean? Does it include all states, like "idle"? So if I call STXON when it is at "idle" state, is it going to convert to "TX calibration" state? Same question for "any RX state", so no matter it is in "SFD wait" or RX calibration", as long as I call STXONCCA and cca=1, it will goto "TX calibration", right?
2. I know that PAN_ID, ADDRESSES are stored by Little-endian in the RAM, therefore, before writing to TXFIFO, we need to convert them to Network Byte Order.
However, In basic_rf.c file, I don't understand why writing the FCF in Little-endian. For example, if the FCF part is 0x8861, it takes lower 8 bits first to write into the array, which makes the FCF in the TXFIFO to be 0x6188. Are they supposed to be transmitted in this order? Or I messed up somewhere?
Thanks,
Charles