SPI_MasterTransfer non blocking function, how to detect Master transfer is completed over SPI ?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

SPI_MasterTransfer non blocking function, how to detect Master transfer is completed over SPI ?

ソリューションへジャンプ
2,601件の閲覧回数
Saitej
Contributor IV

Hello 

Here am using SPI PAL driver with PE configuration, am i need to non blocking function call transferring data over SPI. but would like to get notified when SPI transaction is done.

please help me on how to achieve it.

Thanks in advance !.

0 件の賞賛
返信
1 解決策
2,573件の閲覧回数
Alexis_A
NXP TechSupport
NXP TechSupport

Hello @Saitej,

When you set the SPI to call a callback is possible to achieve this. If you set a name to the callback:

Alexis_A_0-1609359718068.png

And in your main code you will need to set a function with the following syntax:

SPI1_Callback(void *driverState, spi_event_t event, void *userData);

In the event parameter, the SPI_EVENT_END_TRANSFER event is called if the transfer is finished.

Let me know if this helps you.

Best Regards,

Alexis Andalon

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
2,574件の閲覧回数
Alexis_A
NXP TechSupport
NXP TechSupport

Hello @Saitej,

When you set the SPI to call a callback is possible to achieve this. If you set a name to the callback:

Alexis_A_0-1609359718068.png

And in your main code you will need to set a function with the following syntax:

SPI1_Callback(void *driverState, spi_event_t event, void *userData);

In the event parameter, the SPI_EVENT_END_TRANSFER event is called if the transfer is finished.

Let me know if this helps you.

Best Regards,

Alexis Andalon

0 件の賞賛
返信