setSPI_I2C2Idle

Top  Next

setSPI_I2C2Idle


set  SPI/I2C bus into Idle status

Since R2019b

 

Library: embeddedCreatorLib ( Dafulai Electronics) / Embedded SPI/I2C Bus Master / setSPI_I2C2Idle

 

 

setSPI_I2C2Idle

 

 


 

Description


 

This block sets up SPI/I2C bus to "Idle" State.  You must call it under condition: all sequences operations done for this bus. Otherwise, you will get unexpected result.  Only when SPI/I2C bus is in "Idle" state, can you start new operations by setting all new sequence of operations.

 

 

Parameters


 

Please double click this block to open parameters dialog below:

 

setSPI_I2C2Idle-param

 

 

 

 

Let us explain parameters.

 

 

Peripheral  Number — tell system which SPI/I2C peripheral is used. You just choose from drop list items which are from block "emSPI_I2CMasterSetup".

 

Bus Type — tell system which bus is used. You just choose from drop list items: SPI bus and I2C bus.

 

 

 

Ports


 

Input

 

En — "logical" data type's scalar. True means " it sets Bus to idle state".  False means nothing happens.

 

Outport


 

 

Success — "logical" data type's scalar. It is equal to "En".

 

 

Examples