Hi Juan Abelaira,
Because I didn't see your whole project, then I can't know what the detail meaning of your FE_MOD.
But, just as you said, pTx and pRx are pointers to either 8 or 16-bit data.
Actually, you can refer to your own chip, it seems you are using LPC15XX, from the user manual of LPC15xx, we can get that the SPI Receive Data and SPI Transmit Data useful data is 16 bits.


So, I think you can don't care about FE_MOD, just defined it as :
uint16_t *pTx; /**< Pointer to data buffer*/
uint32_t TxCnt;/* Transmit Counter */
uint16_t *pRx; /**< Pointer to data buffer*/
uint32_t RxCnt;/* Transmit Counter */
uint32_t Length; /**< Data Length*/
uint32_t ssel; /**< Slave select bits */
uint16_t DataSize; /** < The size of a frame (1-16)*/
} SPI_DATA_SETUP_T;
Your two definition should used for two different chip's compatibility.
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------