2010-04-13 08:27 AM
Packing bits with byte (difference between f103 and f105)
2011-05-17 04:47 AM
Perhaps your problem is one of initialization. Unless you explicitly clear that data structure it will contain random data except for the bits you set.
setup_a_t setup_a;
setup_a.value = 0;
setup_a.bits.a = (uint8_t) 3;
SPI_write_reg (REG, setup_a.value);
-Clive2011-05-17 04:47 AM