MII_G_RTのAuto-forwardにてデータ転送中に次デバイスノードへのデータ転送停止は可能でしょうか。
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Is it possible to stop data transfer to the next device node during data transfer with Auto-forward of MII_G_RT?
Hi Shimizu-san,
Best way to stop auto-forwarding in a device is disable auto-forward in the MII_RT register.
I see two ways, one way is to disable by writing directly in to the register space. Second way is to use the macros we provides in icss_miirt_macros.inc file.
1. Direct way is to clear bit 9 (PRE_TX_AUTO_SEQUENCE0) in register MII_RT_TXCFG0/1. Note that you need to clear the bit only for the downstream port. When you device_n is on port 2, then you need to clear this bit MII_RT_TXCFG1.
2. If you are adopting PRU source code, then the PRU that handles downstream (e.g. PRU0 in the example of Port 1 is connected towards the controller and Port 2 towards direction of device_n), then call the macro M_DISABLE_TX_LOCAL when you want to stop sending. This will set bit 0 in MII_RT_TXCFG1, as seen in file icss_miirt_macros.inc.
I am not sure about your use case for this function, maybe you can tell us more, so we can provide a more specific response.
Thanks and regards,
Thomas