| 851 | enum FFADODevice::eStreamingState |
---|
| 852 | MotuDevice::getStreamingState() |
---|
| 853 | { |
---|
| 854 | unsigned int val = ReadRegister(MOTU_REG_ISOCTRL); |
---|
| 855 | /* Streaming is active if either bit 22 (Motu->PC streaming |
---|
| 856 | * enable) or bit 30 (PC->Motu streaming enable) is set. |
---|
| 857 | */ |
---|
| 858 | debugOutput(DEBUG_LEVEL_VERBOSE, "MOTU_REG_ISOCTRL: %08x\n", val); |
---|
| 859 | |
---|
| 860 | if((val & 0x40400000) != 0) { |
---|
| 861 | return eSS_Both; |
---|
| 862 | } else if ((val & 0x40000000) != 0) { |
---|
| 863 | return eSS_Receiving; |
---|
| 864 | } else if ((val & 0x00400000) != 0) { |
---|
| 865 | return eSS_Sending; |
---|
| 866 | } else { |
---|
| 867 | return eSS_Idle; |
---|
| 868 | } |
---|
| 869 | } |
---|
| 870 | |
---|