HosrDiretta
Loading...
Searching...
No Matches
DIRETTA Namespace Reference

Classes

class  Connection
 Diretta Connection class Performs basic communication processing for the host. More...
 
class  ConnectionBuffer
 Diretta ConnectionBuffer class. Used for sending and receiving messages. More...
 
class  ConnectionReceives
 
class  ConnectionSends
 
class  FifoStreamReceive
 
class  Find
 Diretta detects the target. More...
 
class  FixPoint
 
class  FormatConfigure
 Format configuration class.Assist in generating play FormatID. More...
 
class  FormatPreConfigure
 Pre-format configuration (For setting the base frequency) More...
 
class  FormatSupport
 Format support information class.Can determine the supported format. More...
 
union  Header
 
class  Icon
 Icon class for handling image icons in Diretta. More...
 
struct  Profile
 Profile structure for managing data transfer settings in Diretta.(used in Sync Send Cycle etc. More...
 
class  ProfileMaker
 ProfileMaker class for creating and configuring Profile objects in Diretta. More...
 
class  Receive
 Receive class for handling incoming Diretta protocol messages. More...
 
class  Send
 Send class for creating and managing Diretta protocol messages. More...
 
class  SendBuffer
 SendBuffer class for managing Diretta protocol messages with dynamic data buffers. More...
 
class  Stream
 Stream class for managing audio data streams in Diretta.(Sync) More...
 
class  StreamReceive
 
class  Sync
 Sync class Processing stream transmission. More...
 
class  SyncBuffer
 Builds the send buffer for Sync. More...
 
class  SysLogDiretta
 

Enumerations

enum class  MessageID : std::uint16_t {
  DISCOVER =0 , FOUND , PORT_REQ , PORT_ANS ,
  FORMAT_REQ , FORMAT_ANS , LATENCY_REQ , LATENCY_ANS ,
  CONNECT_REQ , CONNECT_ANS , STREAM , STATUS_INFO ,
  DISCONNECT_REQ , DISCONNECT_ANS , DATASIZE_REQ , DATASIZE_ANS ,
  SETTINGPANEL_REQ , SETTINGPANEL_ANS , CONNECTPRE_REQ , CONNECTPRE_ANS ,
  PROFILE_REQ , PROFILE_ANS , FINDNAME_SET , FINDNAME_ANS ,
  SYNCNAME_SET , SYNCNAME_ANS , TRANSFERINFO_REQ , TRANSFERINFO_ANS ,
  TRANSFERDATA_SET , TRANSFERDATA_ANS , TRANSFERFINISH_SET , TRANSFERFINISH_ANS ,
  TARGET_VERSION_REQ , TARGET_VERSION_ANS , TARGET_FWDOWNLOAD_REQ , TARGET_FWDOWNLOAD_ANS ,
  TARGET_REBOOT_REQ , TARGET_REBOOT_ANS , _TARGET_ACTIVATE_REQ , _TARGET_ACTIVATE_ANS ,
  TARGET_DEBUG_REQ , TARGET_DEBUG_ANS , TARGET_NOPBREAK_REQ , TARGET_NOPBREAK_ANS ,
  TARGET_INFO_REQ , TARGET_INFO_ANS , HOST_INFO_REQ , HOST_INFO_ANS ,
  TARGET_SETTING_TYPE_REQ , TARGET_SETTING_TYPE_ANS , TARGET_SETTING_VALUE_REQ , TARGET_SETTING_VALUE_ANS ,
  SINK_SETTING_TYPE_REQ , SINK_SETTING_TYPE_ANS , SINK_SETTING_VALUE_REQ , SINK_SETTING_VALUE_ANS ,
  STATUS_REQ , STATUS_ANS , CONTROLNAME_SET , CONTROLNAME_ANS ,
  STATUS_INFO_TYPE_REQ , STATUS_INFO_TYPE_ANS , STATUS_INFO_VALUE_REQ , STATUS_INFO_VALUE_ANS ,
  TARGET_ICON_REQ , TARGET_ICON_ANS , SINK_ICON_REQ , SINK_ICON_ANS ,
  STATUS_ICON_REQ , STATUS_ICON_ANS , SYNCHRO_CLOCK , SYNCHRO_CLOCK_RSV ,
  SYNCHRO_CONNECT_REQ , SYNCHRO_CONNECT_ANS , SYNCHRO_CHANNEL_REQ , SYNCHRO_CHANNEL_ANS ,
  SYNCHRO_STATUS_REQ , SYNCHRO_STATUS_ANS , ALTERNATE_VERSION_REQ , ALTERNATE_VERSION_ANS ,
  MTUTEST_REQ , MTUTEST_ANS , _NOTIFY_dummy = 0x8000 , _NOTIFY ,
  PORT_REGIST , STATUS_REGIST , ACTIVATE_REQ , ACTIVATE_ANS ,
  NOPLIST , NOPLIST_dummy , INFO_THREAD , INFO_THREAD_ACK ,
  INFO_PROCESS , INFO_PROCESS_ACK , LIST_SYNCHRO , LIST_SYNCHRO_dummy
}
 
enum class  StatusID : std::uint16_t {
  NONE =0 , ACK = 0x0001 , CONNECT = 0x0002 , COUNT_ERROR = 0x0008 ,
  CLOCK_ERROR = 0x0010 , INFO = 0x0020 , BULKEND = 0x0040 , ANTIPHASE_STA = 0x0080 ,
  ANTIPHASE_REQ = 0x0100
}
 
enum class  StreamType : std::uint16_t {
  ZERO_SINK =0 , SINK =1 , SYNC = 2 , MEMORY = 4 ,
  MAXID = 4
}
 
enum class  ProfileID : std::uint16_t {
  OPTIMIZE =0x0001 , FLEXCYCLE = 0x0002 , MINIMUMTIME = 0x0004 , FRAGMENT = 0x0008 ,
  RANDOM = 0x0012 , SINCCYCLE = 0x0020
}
 Target Profile Mode. More...
 
enum class  SettingValueType : std::uint16_t {
  UNKNOWN =0 , UNSIGNED , SIGNED , BOOL ,
  STRING , SELECT , FIX , BITS
}
 Setting Value Type.
 
enum class  StateValueType : std::uint16_t { UNKNOWN =0 , FORMAT , VOLUME }
 Status Value Type.
 
enum class  FormatID : std::uint64_t {
  NONE = 0ULL , CHA_1 =0x0000000000000001ULL , CHA_2 =0x0000000000000002ULL , CHA_4 =0x0000000000000004ULL ,
  CHA_6 =0x0000000000000008ULL , CHA_8 =0x0000000000000010ULL , CHA_16 =0x0000000000000020ULL , CHA_MSK =0x00000000000000FFULL ,
  FMT_PCM_SIGNED_8 =0x0000000000000100ULL , FMT_PCM_SIGNED_16 =0x0000000000000200ULL , FMT_PCM_SIGNED_24 =0x0000000000000400ULL , FMT_PCM_SIGNED_32 =0x0000000000000800ULL ,
  FMT_PCM_SIGNED_64 =0x0000000000001000ULL , FMT_PCM_FLOAT_32 =0x0000000000002000ULL , FMT_PCM_FLOAT_64 =0x0000000000004000ULL , FMT_PCM_MSK =0x000000000000FF00ULL ,
  FMT_DSD1 =0x0000000000010000ULL , FMT_DSD4 =0x0000000000020000ULL , FMT_DSD_BIT_MSK =0x00000000000F0000ULL , FMT_DSD_LSB =0x0000000000100000ULL ,
  FMT_DSD_MSB =0x0000000000200000ULL , FMT_DSD_LITTLE =0x0000000000400000ULL , FMT_DSD_BIG =0x0000000000800000ULL , FMT_DSD_ORDER_MSK =0x0000000000F00000ULL ,
  FMT_DSD_SIZ_32 =0x0000000002000000ULL , FMT_DSD_SIZE_MSK =0x00000000FF000000ULL , RAT_8000 =0x0000000100000000ULL , RAT_44100 =0x0000000200000000ULL ,
  RAT_48000 =0x0000000400000000ULL , RAT_MP1 =0x0000000800000000ULL , RAT_MP2 =0x0000001000000000ULL , RAT_MP4 =0x0000002000000000ULL ,
  RAT_MP8 =0x0000004000000000ULL , RAT_MP16 =0x0000008000000000ULL , RAT_MP32 =0x0000010000000000ULL , RAT_MP64 =0x0000020000000000ULL ,
  RAT_MP128 =0x0000040000000000ULL , RAT_MP256 =0x0000080000000000ULL , RAT_MP512 =0x0000100000000000ULL , RAT_MP1024 =0x0000200000000000ULL ,
  RAT_MP2048 =0x0000400000000000ULL , RAT_MP4096 =0x0000800000000000ULL , RAT_MSK =0x0000FFFF00000000ULL , RAT_BASE_MSK =0x0000000700000000ULL ,
  RAT_MP_MSK =0x0000FFF800000000ULL , DDS =0x0080000000000000ULL
}
 Format ID definition.Diretta represents playback formats in 64-bit. Composed entirely of bit ORs, it enables determination of which formats the sink supports.When performing a bitwise AND operation, the result will be the same value.
 
enum class  FormatPreID : std::uint64_t {
  FMT_PCM =0x0000000000000100ULL , FMT_FLOAT =0x0000000000000200ULL , FMT_DSD1 =0x0000000000000400ULL , FMT_DSD4 =0x0000000000000800ULL ,
  FMT_MSK =0x000000000000FF00ULL
}
 Pre-format ID definition.
 

Functions

std::uint16_t swap_big (std::uint16_t in)
 
std::uint16_t swap_little (std::uint16_t in)
 
std::uint16_t conv_little (std::uint16_t in)
 
std::uint16_t conv_to_header (std::uint16_t in)
 
std::uint16_t conv_to_value (std::uint16_t in)
 
std::uint16_t Separat ()
 
constexpr StatusID operator| (StatusID A, StatusID B)
 
constexpr StatusID operator& (StatusID A, StatusID B)
 
StatusID & operator|= (StatusID &A, StatusID B)
 
StatusID & operator&= (StatusID &A, StatusID B)
 
constexpr bool operator== (StatusID A, StatusID B)
 
constexpr bool operator!= (StatusID A, StatusID B)
 
constexpr StatusID operator~ (StatusID A)
 
constexpr ProfileID operator| (ProfileID A, ProfileID B)
 
constexpr ProfileID operator& (ProfileID A, ProfileID B)
 
ProfileIDoperator|= (ProfileID &A, ProfileID B)
 
ProfileIDoperator&= (ProfileID &A, ProfileID B)
 
constexpr FormatID operator| (FormatID A, FormatID B)
 
constexpr FormatID operator& (FormatID A, FormatID B)
 
FormatIDoperator|= (FormatID &A, FormatID B)
 
FormatIDoperator&= (FormatID &A, FormatID B)
 
constexpr FormatID operator~ (FormatID A)
 

Enumeration Type Documentation

◆ ProfileID

enum class DIRETTA::ProfileID : std::uint16_t
strong

Target Profile Mode.

Enumerator
OPTIMIZE 

Adjust the cycle to efficiently utilize packet size.

FLEXCYCLE 

Variable Cycle Mode.

MINIMUMTIME 

Guide the transmission period time toward the minimum direction (maximizing the transmission cycle)

FRAGMENT 

Allow packet fragments.

RANDOM 

Specify Random Mode.

SINCCYCLE 

Maximize packet utilization.