If I am mixing C++ and C code and using spiDAT1_t from C++ code, the CS_HOLD and WDEL are 1 Byte long, in C code they are 4 Bytes long.
That brought problems with configuration of CSNR. How to avoid this?
Thomas
typedef struct spiDAT1RegConfig
{
boolean CS_HOLD;
boolean WDEL;
SPIDATAFMT_t DFSEL;
uint8 CSNR;
}spiDAT1_t;