SPI communication with 32bit value

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

SPI communication with 32bit value

1,200 次查看
Learner
Contributor III

Hi Experts,

I am trying to implements SPI communication with my Slave IC with the option 32bits per frame.
But in processor expert generated code i can pass only 8bit char array:

status_t LPSPI_DRV_MasterTransferBlocking(uint32_t instance,
const uint8_t * sendBuffer,
uint8_t * receiveBuffer,
uint16_t transferByteCount,
uint32_t timeout);

Please suggest/guide how can i use processor expert with 32bits/frame.

标记 (1)
0 项奖励
回复
1 回复

1,192 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @Learner,

The frame size is configurable in the PE:

danielmartynek_1-1624963935194.png

The buffers just have to be aligned:

danielmartynek_2-1624964124011.png

 

Regards,

Daniel

 

 

0 项奖励
回复