Hi,
As far as I know, Autosar define 2 types of buffer: Internal and external buffer.
With Internal buffer, RTD limits Tx and Rx buffer to SpiIbNBuffer (max 65535) bytes. Please check define IB in file Spi_<>_PBcfg.c as below:
cuongnguyenphu_0-1697512943264.png
cuongnguyenphu_1-1697513629716.png
For external buffer, you can define your own Tx/Rx buffer and call Spi_SetupEB() to set buffer for your SPI channel. This function limits the size of your buffer as SpiEbMaxLength (max 65535 bytes)
cuongnguyenphu_2-1697513681692.png