Most host processors with SPI hardware allow you to set the bit order, clock phase and polarity. For communication with all XBee/XBee-PRO S2C DigiMesh 2.4s, the host processor must set these options as follows:
All XBee/XBee-PRO S2C DigiMesh 2.4s use SPI mode 0 and MSB first. Mode 0 means that data is sampled on the leading edge and that the leading edge rises. MSB first means that bit 7 is the first bit of a byte sent over the interface.