Changeset 304 for branches/libfreebob-2.0/src/motu/motu_avdevice.h
- Timestamp:
- 09/18/06 00:57:30 (18 years ago)
- Files:
-
- branches/libfreebob-2.0/src/motu/motu_avdevice.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/libfreebob-2.0/src/motu/motu_avdevice.h
r302 r304 41 41 #define MOTUFW_RATE_MULTIPLIER_MASK (0x00000030) 42 42 43 #define MOTUFW_OPTICAL_MODE_OFF (0<<8) 44 #define MOTUFW_OPTICAL_MODE_ADAT (1<<8) 45 #define MOTUFW_OPTICAL_MODE_TOSLINK (2<<8) 46 #define MOTUFW_OPTICAL_MODE_MASK (0x00000300) 43 #define MOTUFW_OPTICAL_MODE_OFF 0x00 44 #define MOTUFW_OPTICAL_MODE_ADAT 0x01 45 #define MOTUFW_OPTICAL_MODE_TOSLINK 0x02 46 #define MOTUFW_OPTICAL_IN_MODE_MASK (0x00000300) 47 #define MOTUFW_OPTICAL_OUT_MODE_MASK (0x00003000) 48 #define MOTUFW_OPTICAL_MODE_MASK (MOTUFW_OPTICAL_IN_MODE_MASK|MOTUFW_OPTICAL_MODE_MASK) 47 49 48 50 #define MOTUFW_CLKSRC_MASK 0x00000007 … … 55 57 #define MOTUFW_CLKSRC_AES_EBU 7 56 58 59 #define MOTUFW_DIR_IN 1 60 #define MOTUFW_DIR_OUT 2 61 #define MOTUFW_DIR_INOUT (MOTUFW_DIR_IN | MOTUFW_DIR_OUT) 62 57 63 /* Device registers */ 58 64 #define MOTUFW_REG_ISOCTRL 0x0b00 59 #define MOTUFW_REG_RATECTRL 0x0b14 65 #define MOTUFW_REG_OPTICAL_CTRL 0x0b10 66 #define MOTUFW_REG_CLK_CTRL 0x0b14 60 67 #define MOTUFW_REG_ROUTE_PORT_CONF 0x0c04 61 68 #define MOTUFW_REG_CLKSRC_NAME0 0x0c60 … … 102 109 signed int getIsoRecvChannel(void); 103 110 signed int getIsoSendChannel(void); 104 unsigned int getOpticalMode( void);105 signed int setOpticalMode(unsigned int mode);111 unsigned int getOpticalMode(unsigned int dir); 112 signed int setOpticalMode(unsigned int dir, unsigned int mode); 106 113 107 signed int getEventSize( void);114 signed int getEventSize(unsigned int dir); 108 115 109 116 protected: