Spi Master - No read function created

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
GiRa_4021896
Level 2
Level 2
5 replies posted 5 questions asked First question asked

Have a Psoc6 project started in Modus.

After configuring the device and building, the SpiMaster.c file only sendPacket, checkTransferStatus, initMaster, and mSPI_INterrupt defined.

Why does it not generate a Read Function? 

In the sample project, it is the same the Master doesn't have a read, but the slave does???

Thanks.

Giri

0 Likes
1 Solution
Vison_Zhang
Moderator
Moderator
Moderator
First comment on KBA 750 replies posted 250 sign-ins

You should opened an code example project CE221120_PSoC6_SPIMaster, right? The SpiMaster.c is not generated by ModusToolBox, it is written by CE author to guide reader how to getting start with SPI Master. The low-level APIs of SCB-SPI can be used in psoc6pdl_Cortex-m4-->components-->drivers-->source-->cy_scb_spi.h/.c, actually SPI send and receive share the same low-level API Cy_SCB_SPI_Transfer()

View solution in original post

0 Likes
2 Replies
Vison_Zhang
Moderator
Moderator
Moderator
First comment on KBA 750 replies posted 250 sign-ins

You should opened an code example project CE221120_PSoC6_SPIMaster, right? The SpiMaster.c is not generated by ModusToolBox, it is written by CE author to guide reader how to getting start with SPI Master. The low-level APIs of SCB-SPI can be used in psoc6pdl_Cortex-m4-->components-->drivers-->source-->cy_scb_spi.h/.c, actually SPI send and receive share the same low-level API Cy_SCB_SPI_Transfer()

0 Likes

I thank you for your answer, and I understand.

0 Likes