The SPI slave driver has the following statement
spi_if.mosi :> >> data;
What is the >> operator for ? I can't find any mention of it in any documentation (e.g xTIMEcomposer-User-Guide(X3766D) / XMOS-Programming-Guide-(documentation)(E) )
What is the >> operator for when used in IO statement
-
- Member
- Posts: 11
- Joined: Thu Nov 20, 2014 9:19 pm
-
- Member++
- Posts: 24
- Joined: Thu Aug 14, 2014 10:55 am
The operator :> >> corresponds to INSHR instruction of the xCORE microcontroller.
The INSHR instruction says that it inputs data from a port and shifts the data right by transfer width.
There is a discussion on this in a previous post https://www.xcore.com/forum/viewtopic.p ... w=previous
Architecture manual: https://www.xmos.com/en/download/public ... 7879A).pdf
Hope it helps!
Cheers,
Krishna
The INSHR instruction says that it inputs data from a port and shifts the data right by transfer width.
There is a discussion on this in a previous post https://www.xcore.com/forum/viewtopic.p ... w=previous
Architecture manual: https://www.xmos.com/en/download/public ... 7879A).pdf
Hope it helps!
Cheers,
Krishna