summaryrefslogtreecommitdiff
path: root/PluginRoutingInterfaceCAPI/fidl
diff options
context:
space:
mode:
Diffstat (limited to 'PluginRoutingInterfaceCAPI/fidl')
-rw-r--r--PluginRoutingInterfaceCAPI/fidl/RoutingInterface.fidl1305
-rwxr-xr-xPluginRoutingInterfaceCAPI/fidl/RoutingSender.fidl158
-rwxr-xr-xPluginRoutingInterfaceCAPI/fidl/amTypes.fidl399
-rw-r--r--PluginRoutingInterfaceCAPI/fidl/deployment.fdepl9
4 files changed, 844 insertions, 1027 deletions
diff --git a/PluginRoutingInterfaceCAPI/fidl/RoutingInterface.fidl b/PluginRoutingInterfaceCAPI/fidl/RoutingInterface.fidl
index 6e1346b..877b75c 100644
--- a/PluginRoutingInterfaceCAPI/fidl/RoutingInterface.fidl
+++ b/PluginRoutingInterfaceCAPI/fidl/RoutingInterface.fidl
@@ -1,462 +1,845 @@
-package org.genivi.audiomanager
-
-import org.genivi.audiomanager.am_gen.* from "amTypes.fidl"
-
-
-interface RoutingInterface
-{
- version { major 0 minor 1 }
-
- method ackConnect
- {
- in
- {
- UInt16 handle
- am_connectionID_t connectionID
- UInt16 ^error
- }
- }
- method ackDisconnect
- {
- in
- {
- UInt16 handle
- am_connectionID_t connectionID
- UInt16 ^error
- }
- }
- method ackSetSinkVolume
- {
- in
- {
- UInt16 handle
- am_volume_t volume
- UInt16 ^error
- }
- }
- method ackSetSourceVolume
- {
- in
- {
- UInt16 handle
- am_volume_t volume
- UInt16 ^error
- }
- }
- method ackSetSourceState
- {
- in
- {
- UInt16 handle
- UInt16 ^error
- }
- }
- method ackSetSinkSoundProperties
- {
- in
- {
- UInt16 handle
- UInt16 ^error
- }
- }
- method ackSetSinkSoundProperty
- {
- in
- {
- UInt16 handle
- UInt16 ^error
- }
- }
- method ackSetSourceSoundProperties
- {
- in
- {
- UInt16 handle
- UInt16 ^error
- }
- }
- method ackSetSourceSoundProperty
- {
- in
- {
- UInt16 handle
- UInt16 ^error
- }
- }
- method ackSourceVolumeTick
- {
- in
- {
- UInt16 handle
- am_sourceID_t source
- am_volume_t volume
- }
- }
- method ackSinkVolumeTick
- {
- in
- {
- UInt16 handle
- am_sinkID_t sink
- am_volume_t volume
- }
- }
- method ackCrossFading
- {
- in
- {
- UInt16 handle
- am_HotSink_e hotSink
- am_Error_e returnError
- }
- }
- method peekDomain
- {
- in
- {
- String name
- }
-
- out
- {
- am_domainID_t domainID
- am_Error_e ^error
- }
- }
- method registerDomain
- {
- in
- {
- am_Domain_s domainData
- String returnBusname
- String returnPath
- String returnInterface
- }
- out
- {
- am_domainID_t domainID
- am_Error_e ^error
- }
- }
- method deregisterDomain
- {
- in
- {
- am_domainID_t domainID
- }
- out
- {
- am_Error_e ^returnError
- }
- }
- method registerGateway
- {
- in
- {
- am_Gateway_s gatewayData
- }
- out
- {
- am_gatewayID_t gatewayID
- am_Error_e ^error
- }
- }
- method deregisterGateway
- {
- in
- {
- am_gatewayID_t gatewayID
- }
- out
- {
- am_Error_e ^returnError
- }
- }
- method peekSink
- {
- in
- {
- String name
- }
-
- out
- {
- am_sinkID_t sinkID
- am_Error_e ^error
- }
- }
- method registerSink
- {
- in
- {
- sinkData_s sinkData
- }
- out
- {
- am_sinkID_t sinkID
- am_Error_e ^error
- }
- }
- method deregisterSink
- {
- in
- {
- am_sinkID_t sinkID
- }
- out
- {
- am_Error_e ^returnError
- }
- }
- method peekSource
- {
- in
- {
- String name
- }
-
- out
- {
- am_sourceID_t sourceID
- am_Error_e ^error
- }
- }
- method registerSource
- {
- in
- {
- sourceData_s sourceData
- }
- out
- {
- am_sourceID_t sourceID
- am_Error_e ^error
- }
- }
- method deregisterSource
- {
- in
- {
- am_sourceID_t sourceID
- }
- out
- {
- am_Error_e ^returnError
- }
- }
- method registerCrossfader
- {
- in
- {
- crossfaderData_s crossfaderData
- }
- out
- {
- am_crossfaderID_t crossfaderID
- am_Error_e ^error
- }
- }
- method deregisterCrossfader
- {
- in
- {
- am_crossfaderID_t crossfaderID
- }
- out
- {
- am_Error_e ^returnError
- }
- }
- method peekSourceClassID
- {
- in
- {
- String name
- }
-
- out
- {
- am_sourceClass_t sourceClassID
- am_Error_e ^error
- }
- }
- method peekSinkClassID
- {
- in
- {
- String name
- }
-
- out
- {
- am_sinkClass_t sinkClassID
- am_Error_e ^error
- }
- }
-
- method hookInterruptStatusChange
- {
- in
- {
- am_sourceID_t sourceID
- UInt16 interruptState
- }
- }
- method hookDomainRegistrationComplete
- {
- in
- {
- am_domainID_t domainID
- }
- }
- method hookSinkAvailablityStatusChange
- {
- in
- {
- am_sinkID_t sinkID
- am_Availability_s availability
- }
- }
- method hookSourceAvailablityStatusChange
- {
- in
- {
- am_sourceID_t sourceID
- am_Availability_s availability
- }
- }
- method hookDomainStateChange
- {
- in
- {
- am_domainID_t domainID
- am_DomainState_e domainState
- }
- }
- method hookTimingInformationChanged
- {
- in
- {
- am_connectionID_t connectionID
- Int16 delay
- }
- }
- method sendChangedData
- {
- in
- {
- am_EarlyData_l earlyData_volumes
- am_EarlyData_l earlyData_soundproperties
- }
- }
- method confirmRoutingReady
- {
- in
- {
- am_domainID_t domainID
- }
- }
-
- method confirmRoutingRundown
- {
- in
- {
- am_domainID_t domainID
- }
- }
-
- method updateGateway
- {
- in
- {
- am_gatewayID_t gatewayID
- am_ConnectionFormat_L listSourceFormats
- am_ConnectionFormat_L listSinkFormats
- bool_L convertionMatrix
- }
- }
-
- method updateSink
- {
- in
- {
- am_sinkID_t sinkID
- am_sinkClass_t sinkClassID
- am_SoundProperty_L listSoundProperties
- am_ConnectionFormat_L listConnectionFormats
- am_MainSoundProperty_L listMainSoundProperties
- }
- }
- method updateSource
- {
- in
- {
- am_sourceID_t sourceID
- am_sourceClass_t sourceClassID
- am_SoundProperty_L listSoundProperties
- am_ConnectionFormat_L listConnectionFormats
- am_MainSoundProperty_L listMainSoundProperties
- }
- }
- method ackSetVolumes
- {
- in
- {
- UInt16 handle
- am_Volumes_l listVolumes
- UInt16 ^error
- }
- }
- method ackSinkNotificationConfiguration
- {
- in
- {
- UInt16 handle
- UInt16 ^error
- }
- }
- method ackSourceNotificationConfiguration
- {
- in
- {
- UInt16 handle
- UInt16 ^error
- }
- }
- method hookSinkNotificationDataChange
- {
- in
- {
- am_sinkID_t sinkID
- notificationPayload_s payload
- }
- }
-
- method hookSourceNotificationDataChange
- {
- in
- {
- am_sourceID_t sourceID
- notificationPayload_s payload
- }
- }
-
- method getRoutingReadyState
- {
- out
- {
- Boolean readyState
- }
- }
-
- broadcast setRoutingReady
- {
-
- }
-
- broadcast setRoutingRundown
- {
-
- }
-
+package org.genivi.am
+import org.genivi.am.* from "../../AudioManagerDaemon/fidls/AudioManagerTypes.fidl"
+
+<**
+ @description : This class implements everything from Audiomanager -&gt; RoutingAdapter
+ @author : Christian Mueller
+**>
+
+interface RoutingControl {
+ version {
+ major 0
+ minor 1
+ }
+
+ <**
+ @description : aborts an asynchronous action.
+(at)return E_OK on success, E_UNKNOWN on error, E_NON_EXISTENT if handle was not found
+ **>
+ method asyncAbort {
+ in {
+ am_Handle_s handle
+ }
+ }
+
+ <**
+ @description : connects a source to a sink
+(at)return E_OK on success, E_UNKNOWN on error, E_WRONG_FORMAT in case am_ConnectionFormat_e does not match
+ **>
+ method asyncConnect {
+ in {
+ am_Handle_s handle
+ am_connectionID_t connectionID
+ am_sourceID_t sourceID
+ am_sinkID_t sinkID
+ am_ConnectionFormat_pe connectionFormat
+ }
+ }
+
+ <**
+ @description : disconnect a connection with given connectionID
+(at)return E_OK on success, E_UNKNOWN on error, E_NON_EXISTENT if connection was not found
+ **>
+ method asyncDisconnect {
+ in {
+ am_Handle_s handle
+ am_connectionID_t connectionID
+ }
+ }
+
+ <**
+ @description : this method is used to set the volume of a sink. This function is used to drive ramps, to mute or unmute or directly set the value. The difference is made through the ramptype.
+(at)return E_OK on success, E_UNKNOWN on error, E_OUT_OF_RANGE if new volume is out of range
+ **>
+ method asyncSetSinkVolume {
+ in {
+ am_Handle_s handle
+ am_sinkID_t sinkID
+ am_volume_t volume
+ am_RampType_pe ramp
+ am_time_t time
+ }
+ }
+
+ <**
+ @description : sets the volume of a source. This method is used to set the volume of a sink. This function is used to drive ramps, to mute or unmute or directly set the value. The difference is made through the ramptype.
+(at)return E_OK on success, E_UNKNOWN on error, E_OUT_OF_RANGE if volume is out of range.
+triggers the acknowledge ackSourceVolumeChange
+ **>
+ method asyncSetSourceVolume {
+ in {
+ am_Handle_s handle
+ am_sourceID_t sourceID
+ am_volume_t volume
+ am_RampType_pe ramp
+ am_time_t time
+ }
+ }
+
+ <**
+ @description : This function is used to set the source state of a particular source.
+(at)return E_OK on success, E_UNKNOWN on error
+ **>
+ method asyncSetSourceState {
+ in {
+ am_Handle_s handle
+ am_sourceID_t sourceID
+ am_SourceState_e ^state
+ }
+ }
+
+ <**
+ @description : this function sets the sinksoundproperty.
+(at)return E_OK on success, E_UNKNOWN on error, E_OUT_OF_RANGE in case the propery value is out of range
+ **>
+ method asyncSetSinkSoundProperties {
+ in {
+ am_Handle_s handle
+ am_sinkID_t sinkID
+ am_SoundProperty_L listSoundProperties
+ }
+ }
+
+ <**
+ @description : this function sets the sinksoundproperty.
+(at)return E_OK on success, E_UNKNOWN on error, E_OUT_OF_RANGE in case the propery value is out of range
+ **>
+ method asyncSetSinkSoundProperty {
+ in {
+ am_Handle_s handle
+ am_sinkID_t sinkID
+ am_SoundProperty_s soundProperty
+ }
+ }
+
+ <**
+ @description : this function sets the sourcesoundproperty.
+(at)return E_OK on success, E_UNKNOWN on error, E_OUT_OF_RANGE in case the propery value is out of range
+ **>
+ method asyncSetSourceSoundProperties {
+ in {
+ am_Handle_s handle
+ am_sourceID_t sourceID
+ am_SoundProperty_L listSoundProperties
+ }
+ }
+
+ <**
+ @description : this function sets the sourcesoundproperty.
+(at)return E_OK on success, E_UNKNOWN on error, E_OUT_OF_RANGE in case the propery value is out of range
+ **>
+ method asyncSetSourceSoundProperty {
+ in {
+ am_Handle_s handle
+ am_sourceID_t sourceID
+ am_SoundProperty_s soundProperty
+ }
+ }
+
+ <**
+ @description : this function triggers crossfading.
+(at)return E_OK on success, E_UNKNOWN on error
+ **>
+ method asyncCrossFade {
+ in {
+ am_Handle_s handle
+ am_crossfaderID_t crossfaderID
+ am_HotSink_e hotSink
+ am_RampType_pe rampType
+ am_time_t time
+ }
+ }
+
+ <**
+ @description : this function is used for early and late audio functions to set the domain state
+(at)return E_OK on success, E_UNKNOWN on error
+ **>
+ method setDomainState {
+ in {
+ am_domainID_t domainID
+ am_DomainState_e domainState
+ }
+ out {
+ am_Error_e ^error
+ }
+ }
+ method asyncSetVolumes {
+ in {
+ am_Handle_s handle
+ am_Volumes_L volumes
+ }
+ }
+ method asyncSetSinkNotificationConfiguration {
+ in {
+ am_Handle_s handle
+ am_sinkID_t sinkID
+ am_NotificationConfiguration_s notificationConfiguration
+ }
+ }
+ method asyncSetSourceNotificationConfiguration {
+ in {
+ am_Handle_s handle
+ am_sourceID_t sourceID
+ am_NotificationConfiguration_s notificationConfiguration
+ }
+ }
+
+}
+
+<**
+ @description : Routing Receive sendInterface description.
+ @author : Christian Mueller
+**>
+
+interface RoutingControlObserver {
+ version {
+ major 0
+ minor 1
+ }
+
+ <**
+ @description : This attribute signals to the clients the current routing state.
+A client should notify himself to this attribute in order to know the current state and act accordingly.
+ **>
+ attribute am_RoutingReady_e RoutingReady
+
+ <**
+ @description : acknowledges a asyncConnect
+ **>
+ method ackConnect {
+ in {
+ am_Handle_s handle
+ am_connectionID_t connectionID
+
+ <**
+ @description : E_OK on success, E_ABORTED if action was aborted, E_UNKNOWN on error
+ **>
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : acknowledges a asyncDisconnect
+ **>
+ method ackDisconnect {
+ in {
+ am_Handle_s handle
+ am_connectionID_t connectionID
+
+ <**
+ @description : E_OK on success, E_ABORTED if action was aborted, E_UNKNOWN on error
+ **>
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : acknowledges a asyncsetSinkVolume
+ **>
+ method ackSetSinkVolumeChange {
+ in {
+ am_Handle_s handle
+
+ <**
+ @description : The current actual value that is set
+ **>
+ am_volume_t volume
+
+ <**
+ @description : E_OK on success, E_ABORTED if action was aborted, E_UNKNOWN on error
+ **>
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : acknowledges a asyncsetSourceVolume
+ **>
+ method ackSetSourceVolumeChange {
+ in {
+
+ <**
+ @description : handle that belongs to the change
+ **>
+ am_Handle_s handle
+
+ <**
+ @description : the current volume
+ **>
+ am_volume_t volume
+
+ <**
+ @description : E_OK on success, E_ABORTED if action was aborted, E_UNKNOWN on error
+ **>
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : acknowlegde for asyncSetSourceState
+ **>
+ method ackSetSourceState {
+ in {
+ am_Handle_s handle
+
+ <**
+ @description : E_OK on success, E_ABORTED if action was aborted, E_UNKNOWN on error
+ **>
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : acknowledges asyncSetSinkSoundProperties
+ **>
+ method ackSetSinkSoundProperties {
+ in {
+ am_Handle_s handle
+
+ <**
+ @description : E_OK on success, E_ABORTED if action was aborted, E_UNKNOWN on error
+ **>
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : acknowledges asyncSetSinkSoundProperty
+ **>
+ method ackSetSinkSoundProperty {
+ in {
+ am_Handle_s handle
+
+ <**
+ @description : E_OK on success, E_ABORTED if action was aborted, E_UNKNOWN on error
+ **>
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : acknowledges asyncSetSourceSoundProperties
+ **>
+ method ackSetSourceSoundProperties {
+ in {
+ am_Handle_s handle
+
+ <**
+ @description : E_OK on success, E_ABORTED if action was aborted, E_UNKNOWN on error
+ **>
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : acknowledges asyncSetSourceSoundProperty
+ **>
+ method ackSetSourceSoundProperty {
+ in {
+ am_Handle_s handle
+
+ <**
+ @description : E_OK on success, E_ABORTED if action was aborted, E_UNKNOWN on error
+ **>
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : acknowledges asyncCrossFade
+ **>
+ method ackCrossFading {
+ in {
+ am_Handle_s handle
+
+ <**
+ @description : this is the current hot sink, HS_INTERMEDIATE is here when a crossfading action did not reach the end
+ **>
+ am_HotSink_e hotSink
+
+ <**
+ @description : E_OK on success, E_ABORTED if action was aborted, E_UNKNOWN on error
+ **>
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : acknowledges a volume tick. This can be used to display volumechanges during ramps
+ **>
+ method ackSourceVolumeTick {
+ in {
+ am_Handle_s handle
+ am_sourceID_t sourceID
+ am_volume_t volume
+ }
+ }
+
+ <**
+ @description : acknowledges a volume tick. This can be used to display volumechanges during ramps
+ **>
+ method ackSinkVolumeTick {
+ in {
+ am_Handle_s handle
+ am_sinkID_t sinkID
+ am_volume_t volume
+ }
+ }
+
+ <**
+ @description : This function returns the ID to the given domainName. If already a domain is registered with this name, it will return the corresponding ID, if not it will reserve an ID but not register the domain. The other parameters of the domain will be overwritten when the domain is registered.
+(at)return E_OK on success, E_UNKNOWN on error
+ **>
+ method peekDomain {
+ in {
+ String name
+ }
+ out {
+ am_domainID_t domainID
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : registers a domain
+(at)return E_OK on succes, E_ALREADY_EXISTENT if already registered E_UNKOWN on error
+ **>
+ method registerDomain {
+ in {
+
+ <**
+ @description : domainID in am_Domain_s must be 0!
+ **>
+ am_Domain_s domainData
+ String returnInterface
+ String returnPath
+ String returnBusname
+ }
+ out {
+ am_domainID_t domainID
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : deregisters a domain. All sources, sinks, gateways and crossfaders from that domain will be removed as well.
+(at)return E_OK on succes, E_NON_EXISTENT if not found E_UNKOWN on error
+ **>
+ method deregisterDomain {
+ in {
+
+ <**
+ @description : < the nonde of the bus
+ **>
+ am_domainID_t domainID
+ }
+ out {
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : registers a gateway. (at)return E_OK on succes, E_ALREADY_EXISTENT if already registered E_UNKOWN on error
+ **>
+ method registerGateway {
+ in {
+
+ <**
+ @description : In a fixed setup, the gatewayID must be below 100. In a dynamic setup, the gatewayID shall be 0. listSourceFormats and listSinkFormats are empty at registration time. Values are taken over when sources and sinks are registered.
+
+
+ **>
+ am_Gateway_s gatewayData
+ }
+ out {
+ am_gatewayID_t gatewayID
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : deregisters a gateway. Also removes all sinks and sources of the controlling domain.
+(at)return E_OK on succes, E_NON_EXISTENT if not found E_UNKOWN on error
+ **>
+ method deregisterGateway {
+ in {
+
+ <**
+ @description : domainID of the control domain
+ **>
+ am_gatewayID_t gatewayID
+ }
+ out {
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : This function returns the ID to the given sinkName. If already a sink is registered with this name, it will return the corresponding ID, if not it will reserve an ID but not register the sink. The other parameters of the sink will be overwritten when the sink is registered.
+(at)return E_OK on success, E_UNKNOWN on error
+ **>
+ method peekSink {
+ in {
+
+ <**
+ @description : ID is not valid since not created yet
+ **>
+ String name
+ }
+ out {
+ am_sinkID_t sinkID
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : Registers a sink. If the sink is part of a gateway, the listconnectionFormats is copied to the gatewayInformation
+(at)return E_OK on succes, E_ALREADY_EXISTENT if already registered E_UNKOWN on error
+ **>
+ method registerSink {
+ in {
+
+ <**
+ @description : In a fixed setup, the sinkID within am_Sink_s must be below 100. In a dynamic setup the sinkID must be 0 in am_Sink_s.
+ **>
+ am_Sink_s sinkData
+ }
+ out {
+ am_sinkID_t sinkID
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : deregisters a sink.
+(at)return E_OK on succes, E_NON_EXISTENT if not found E_UNKOWN on error
+ **>
+ method deregisterSink {
+ in {
+ am_sinkID_t sinkID
+ }
+ out {
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : This function returns the ID to the given sourceName. If already a source is registered with this name, it will return the corresponding ID, if not it will reserve an ID but not register the source. The other parameters of the source will be overwritten when the source is registered.
+(at)return E_OK on success, E_UNKNOWN on error
+ **>
+ method peekSource {
+ in {
+ String name
+ }
+ out {
+ am_sourceID_t sourceID
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : registers a source. If the source is part of a gateway, the listconnectionFormats is copied to the gatewayInformation
+(at)return E_OK on success, E_UNKNOWN on error, E_ALREADY_EXIST if either name or sourceID already exists
+ **>
+ method registerSource {
+ in {
+
+ <**
+ @description : In a fixed setup, the sourceID within am_Source_s must be below 100. In a dynamic setup the sourceID must be 0 in am_Source_s
+ **>
+ am_Source_s sourceData
+ }
+ out {
+ am_sourceID_t sourceID
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : deregisters a source
+(at)return E_OK on succes, E_NON_EXISTENT if not found E_UNKOWN on error
+ **>
+ method deregisterSource {
+ in {
+ am_sourceID_t sourceID
+ }
+ out {
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : this function registers a crossfader.
+(at)return E_OK on succes, E_ALREADY_EXISTENT if already registered E_UNKOWN on error
+ **>
+ method registerCrossfader {
+ in {
+
+ <**
+ @description : in a fixed setup, the crossfaderID must be below 100. In a dynamic setup the crossfasderID shall be 0
+ **>
+ am_Crossfader_s crossfaderData
+ }
+ out {
+ am_crossfaderID_t crossfaderID
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : this function deregisters a crossfader. removes all sources and sinks assiated as well.
+(at)return E_OK on succes, E_NON_EXISTENT if not found E_UNKOWN on error
+ **>
+ method deregisterCrossfader {
+ in {
+ am_crossfaderID_t crossfaderID
+ }
+ out {
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : this function peeks a sourceclassID. It is used by the RoutingPlugins to determine the SinkClassIDs of a sinkClass.
+(at)return E_OK on succes, E_DATABASE_ERROR on error
+ **>
+ method peekSourceClassID {
+ in {
+ String name
+ }
+ out {
+ am_sourceClass_t sourceClassID
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : this function peeks a sourceclassID. It is used by the RoutingPlugins to determine the SinkClassIDs of a sinkClass.
+(at)return E_OK on succes, E_DATABASE_ERROR on error
+ **>
+ method peekSinkClassID {
+ in {
+ String name
+ }
+ out {
+ am_sinkClass_t sinkClassID
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : is called when a low level interrupt changes it status.
+ **>
+ method hookInterruptStatusChange {
+ in {
+ am_sourceID_t sourceID
+ am_InterruptState_e interruptState
+ }
+ }
+
+ <**
+ @description : This hook is called when all elements from a domain are registered.
+Is used by the Controller to know when all expected domains are finally registered
+ **>
+ method hookDomainRegistrationComplete {
+ in {
+ am_domainID_t domainID
+ }
+ }
+
+ <**
+ @description : is called when a sink changes its availability
+ **>
+ method hookSinkAvailablityStatusChange {
+ in {
+ am_sinkID_t sinkID
+ am_Availability_s availability
+ }
+ }
+
+ <**
+ @description : is called when a source changes its availability
+ **>
+ method hookSourceAvailablityStatusChange {
+ in {
+ am_sourceID_t sourceID
+ am_Availability_s availability
+ }
+ }
+
+ <**
+ @description : is called when a domain changes its status. This used for early domains only
+ **>
+ method hookDomainStateChange {
+ in {
+ am_domainID_t domainID
+ am_DomainState_e domainState
+ }
+ }
+
+ <**
+ @description : is called when the timinginformation (delay) changed for a connection.
+ **>
+ method hookTimingInformationChanged {
+ in {
+ am_connectionID_t connectionID
+ am_timeSync_t delay
+ }
+ }
+
+ <**
+ @description : this function is used to send out all data that has been changed in an early state.
+(at)return E_OK on success, E_UNKNOWN on error
+ **>
+ method sendChangedData {
+ in {
+ am_EarlyData_L earlyData
+ }
+ }
+
+ <**
+ @description : updates data of an gateway. (at)return E_OK on success, E_NON_EXISTENT if the gatewayID is not valid.
+ **>
+ method updateGateway {
+ in {
+
+ <**
+ @description : This is the new gateway data that has been updated. Please note that changing source and sink IDs,
+
+ **>
+ am_gatewayID_t gatewayID
+ am_ConnectionFormat_L listSourceFormats
+ am_ConnectionFormat_L listSinkFormats
+ am_Convertion_L convertionMatrix
+ }
+ out {
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : updates data of an gateway. (at)return E_OK on success, E_NON_EXISTENT if the sinkID is not valid.
+ **>
+ method updateSink {
+ in {
+
+ <**
+ @description : The sinkID of the sink
+ **>
+ am_sinkID_t sinkID
+ am_sinkClass_t sinkClassID
+ am_SoundProperty_L listSoundProperties
+ am_ConnectionFormat_L listConnectionFormats
+ am_MainSoundProperty_L listMainSoundProperties
+ }
+ out {
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : updates data of an source. (at)return E_OK on success, E_NON_EXISTENT if the sourceID in the struct is not valid.
+Please note that only the following data out of am_Source_s have effect when they are changed:
+sourceClassID,
+listSoundProperties,
+listConnectionFormats,
+listMainSoundProperties
+ **>
+ method updateSource {
+ in {
+
+ <**
+ @description : the sourceID of the source
+ **>
+ am_sourceID_t sourceID
+ am_sourceClass_t sourceClassID
+ am_SoundProperty_L listSoundProperties
+ am_ConnectionFormat_L listConnectionFormats
+ am_MainSoundProperty_L listMainSoundProperties
+ }
+ out {
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : acknowledges a asyncSetSinkVolumes
+ **>
+ method ackSetVolumes {
+ in {
+ am_Handle_s handle
+
+ <**
+ @description : The list of volumes that have been set. ramp and time values have no meaning when the struct is used here.
+ **>
+ am_Volumes_L listvolumes
+
+ <**
+ @description : E_OK on success, E_ABORTED if action was aborted, E_UNKNOWN on error
+ **>
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : The acknowledge of the SinkNotificationConfiguration
+ **>
+ method ackSinkNotificationConfiguration {
+ in {
+ am_Handle_s handle
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : The acknowledge of the SourceNotificationConfiguration
+ **>
+ method ackSourceNotificationConfiguration {
+ in {
+ am_Handle_s handle
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : is called whenever a notified value needs to be send
+ **>
+ method hookSinkNotificationDataChange {
+ in {
+
+ <**
+ @description : The sinkID of the sink where the data changed
+ **>
+ am_sinkID_t sinkID
+
+ <**
+ @description : The payload
+ **>
+ am_NotificationPayload_s payload
+ }
+ }
+
+ <**
+ @description : is called whenever a notified value needs to be send
+ **>
+ method hookSourceNotificationDataChange {
+ in {
+
+ <**
+ @description : The sinkID of the sink where the data changed
+ **>
+ am_sourceID_t sourceID
+
+ <**
+ @description : The payload
+ **>
+ am_NotificationPayload_s payload
+ }
+ }
+ method confirmRoutingRundown {
+ in {
+ String domainName
+ }
+ }
+
} \ No newline at end of file
diff --git a/PluginRoutingInterfaceCAPI/fidl/RoutingSender.fidl b/PluginRoutingInterfaceCAPI/fidl/RoutingSender.fidl
deleted file mode 100755
index 035d96b..0000000
--- a/PluginRoutingInterfaceCAPI/fidl/RoutingSender.fidl
+++ /dev/null
@@ -1,158 +0,0 @@
-package org.genivi.audiomanager
-
-import org.genivi.audiomanager.am_gen.* from "amTypes.fidl"
-
-interface RoutingSender
-{
- version { major 0 minor 1 }
-
- method asyncSetSourceState
- {
- in
- {
- UInt16 handle
- am_sourceID_t sourceID
- am_SourceState_e sourceState
- }
- }
-
- method setDomainState
- {
- in
- {
- am_domainID_t domainID
- am_DomainState_e domainState
- }
- out
- {
- am_Error_e ^error
- }
- }
- method asyncSetSourceVolume
- {
- in
- {
- am_handle_t handle
- am_sourceID_t sourceID
- am_volume_t volume
- am_RampType_e ramp
- am_time_t time
- }
- }
- method asyncSetSinkVolume
- {
- in
- {
- am_handle_t handle
- am_sinkID_t sinkID
- am_volume_t volume
- am_RampType_e ramp
- am_time_t time
- }
- }
- method asyncConnect
- {
- in
- {
- am_handle_t handle
- am_connectionID_t connectionID
- am_sourceID_t sourceID
- am_sinkID_t sinkID
- am_ConnectionFormat_e connectionFormat
- }
- }
- method asyncDisconnect
- {
- in
- {
- am_handle_t handle
- am_connectionID_t connectionID
- }
- }
- method asyncAbort
- {
- in
- {
- am_handle_t handle
- }
- out
- {
- am_Error_e ^error
- }
- }
- method asyncSetSinkSoundProperties
- {
- in
- {
- am_handle_t handle
- am_sinkID_t sinkID
- am_SoundProperty_L listSoundProperties
- }
- }
- method asyncSetSinkSoundProperty
- {
- in
- {
- am_handle_t handle
- am_sinkID_t sinkID
- am_SoundProperty_s soundProperty
- }
- }
- method asyncSetSourceSoundProperties
- {
- in
- {
- am_handle_t handle
- am_sourceID_t sourceID
- am_SoundProperty_L listSoundProperties
- }
- }
- method asyncSetSourceSoundProperty
- {
- in
- {
- am_handle_t handle
- am_sourceID_t sourceID
- am_SoundProperty_s soundProperty
- }
-
- }
- method asyncCrossFade
- {
- in
- {
- am_handle_t handle
- am_crossfaderID_t crossfaderID
- am_HotSink_e hotSink
- am_RampType_e rampType
- am_time_t time
- }
- }
- method asyncSetVolumes
- {
- in
- {
- am_handle_t handle
- am_Volumes_l volumes
- }
- }
- method asyncSetSinkNotificationConfiguration
- {
- in
- {
- am_handle_t handle
- am_sinkID_t sinkID
- am_NotificationConfiguration_s notificationConfiguration
- }
- }
- method asyncSetSourceNotificationConfiguration
- {
- in
- {
- am_handle_t handle
- am_sourceID_t sourceID
- am_NotificationConfiguration_s notificationConfiguration
- }
- }
-}
-
diff --git a/PluginRoutingInterfaceCAPI/fidl/amTypes.fidl b/PluginRoutingInterfaceCAPI/fidl/amTypes.fidl
deleted file mode 100755
index 60791c7..0000000
--- a/PluginRoutingInterfaceCAPI/fidl/amTypes.fidl
+++ /dev/null
@@ -1,399 +0,0 @@
-package org.genivi.audiomanager
-
-typeCollection am_gen
-{
- typedef am_sourceID_t is UInt16
- typedef am_sinkID_t is UInt16
- typedef am_gatewayID_t is UInt16
- typedef gongHandle is Int16
- typedef am_sourceClass_t is UInt16
- typedef am_sinkClass_t is UInt16
- typedef am_volume_t is Int16
- typedef am_mainVolume_t is Int16
- typedef am_handle_t is UInt16
- typedef am_time_t is UInt16
- typedef am_connectionID_t is UInt16
- typedef am_crossfaderID_t is UInt16
-
-
- enumeration gp_indicatorDirection_e
- {
- INDICATOR_RIGHT ="0x00"
- INDICATOR_LEFT="0x01"
- INDICATOR_WARNING="0x02"
- }
-
- enumeration am_RampType_e
- {
- RAMP_UNKNOWN = "0x00"
- RAMP_GENIVI_DIRECT = "0x01"
- RAMP_GENIVI_NO_PLOP = "0x02"
- RAMP_GENIVI_EXP_INV = "0x03"
- RAMP_GENIVI_LINEAR = "0x04"
- RAMP_GENIVI_EXP = "0x05"
- RAMP_MAX = "0x06"
- }
-
- enumeration am_MuteState_e
- {
- MS_UNKNOWN = "0x00"
- MS_MUTED = "0x01"
- MS_UNMUTED = "0x02"
- MS_MAX = "0x03"
- }
-
- enumeration am_SourceState_e
- {
- SS_UNKNNOWN = "0x00"
- SS_ON = "0x01"
- SS_OFF = "0x02"
- SS_PAUSED = "0x03"
- SS_MAX = "0x04"
- }
- enumeration am_Error_e
- {
- E_OK = "0x00"
- E_UNKNOWN = "0x01"
- E_OUT_OF_RANGE = "0x02"
- E_NOT_USED = "0x03"
- E_DATABASE_ERROR = "0x04"
- E_ALREADY_EXISTS = "0x05"
- E_NO_CHANGE = "0x06"
- E_NOT_POSSIBLE = "0x07"
- E_NON_EXISTENT = "0x08"
- E_ABORTED = "0x09"
- E_WRONG_FORMAT = "0xA"
- E_MAX = "0xB"
- }
-
- enumeration am_DomainState_e
- {
-
- DS_UNKNOWN = "0"
- DS_CONTROLLED = "1"
- DS_INDEPENDENT_STARTUP = "2"
- DS_INDEPENDENT_RUNDOWN = "3"
- DS_MAX = "4"
- }
-
- enumeration gongType_e
- {
- AT_NUN = "0x01"
- AT_POC = "0x02"
- AT_QUE = "0x03"
- AT_IWA = "0x04"
- AT_WA = "0x05"
- AT_ETC_F = "0x06"
- AT_ETC_F2 = "0x07"
- AT_ETC_ST = "0x08"
- AT_ETC_S = "0x09"
- AT_REV = "0x0A"
- AT_ESU = "0x0B"
- AT_ESD = "0x0C"
- AT_DG = "0x0D"
- AT_SG = "0x0E"
- AT_IDG = "0x0F"
- AT_ION = "0x10"
- AT_IOFF = "0x11"
- AT_FBS = "0x12"
- AT_VFS = "0x13"
- AT_GES = "0x14"
- AT_UEE = "0x15"
- }
-
- enumeration am_EarlyDataType_e
- {
- ED_UNKNOWN = "0x00"
- ED_SOURCE_VOLUME = "0x01"
- ED_SINK_VOLUME = "0x02"
- ED_SOURCE_PROPERTY = "0x03"
- ED_SINK_PROPERTY = "0x04"
- ED_MAX = "0x05"
- }
-
- enumeration gp_indicatorStatus_e
- {
- IS_ON = "0x00"
- IS_OFF = "0x01"
- }
-
- enumeration gongStatus_e
- {
- NOT_PLAYING = "0x00"
- PLAYING = "0x01"
- INTERRUPTED = "0x02"
- }
-
- enumeration gongError_e
- {
- SUCCESS = "0x00"
- ERROR = "0x01"
- LOW_PRIORITY = "0x02"
- }
-
- enumeration gongClass_e
- {
- GONGCLASS_1 = "0x01"
- GONGCLASS_2 = "0x02"
- GONGCLASS_PDC = "0x03"
- GONGCLASS_TURN = "0x04"
- GONGCLASS_OBSTACLE = "0x05"
- }
-
- enumeration sampleSet_e
- {
- setBMW = "0x00"
- setMini = "0x01"
- setRR = "0x02"
- }
-
- enumeration am_Availability_e
- {
- A_UNKNOWN = "0x00"
- A_AVAILABLE = "0x01"
- A_UNAVAILABLE = "0x02"
- A_MAX = "0x03"
- }
- enumeration am_AvailabilityReason_e
- {
- AR_UNKNOWN = "0x00"
- AR_GENIVI_NEWMEDIA = "0x01"
- AR_GENIVI_SAMEMEDIA = "0x02"
- AR_GENIVI_NOMEDIA = "0x03"
- AR_GENIVI_TEMPERATURE = "0x04"
- AR_GENIVI_VOLTAGE = "0x05"
- AR_GENIVI_ERRORMEDIA = "0x06"
- AR_MAX = "0x07"
- }
-
- enumeration am_InterruptState_e
- {
- IS_UNKNOWN = "0x00"
- IS_OFF = "0x01"
- IS_INTERRUPTED = "0x02"
- IS_MAX = "0x03"
- }
-
- enumeration am_SoundPropertyType_e
- {
- SP_UNKNOWN = "0x00"
- SP_EXAMPLE_TREBLE = "0x01"
- SP_EXAMPLE_MID = "0x02"
- SP_EXAMPLE_BASS = "0x03"
- SP_ENTER_SINKID = "0x04"
- SP_INTERR_SUPERSEEDINGID = "0x05"
- SP_INTERR_OVERLAYID = "0x06"
- SP_PRIORITY = "0x07"
- SP_MAX = "0x08"
- }
-
- enumeration am_ConnectionFormat_e
- {
- CF_UNKNOWN = "0x00"
- CF_GENIVI_MONO = "0x01"
- CF_GENIVI_STEREO = "0x02"
- CF_GENIVI_ANALOG = "0x03"
- CF_GENIVI_AUTO = "0x04"
- CF_MAX = "0x05"
- }
- array am_ConnectionFormat_L of am_ConnectionFormat_e
-
- enumeration am_MainSoundPropertyType_e
- {
- MSP_UNKNOWN = "0x00"
- MSP_EXAMPLE_TREBLE = "0x01"
- MSP_EXAMPLE_MID = "0x02"
- MSP_EXAMPLE_BASS = "0x03"
- MSP_SOURCE_TYPE = "0x04"
- MSP_MAX = "0x05"
- }
-
- enumeration am_NotificationType_e
- {
- NT_UNKNOWN = "0x00"
- NT_LOUDNESS = "0x01"
- NT_MAX = "0x02"
- }
-
- enumeration am_NotificationStatus_e
- {
- NS_UNKNOWN = "0x00"
- NS_OFF = "0x01"
- NS_PERIODIC = "0x02"
- NS_MINIMUM = "0x03"
- NS_MAXIMUM = "0x04"
- NS_CHANGE = "0x05"
- NS_MAX = "0x06"
- }
-
- enumeration am_HotSink_e
- {
- HS_UNKNOWN = "0x00"
- HS_SINKA = "0x01"
- HS_SINKB = "0x02"
- HS_INTERMEDIATE = "0x03"
- HS_MAX = "0x04"
- }
-
- enumeration am_VolumeType_e
- {
- VT_UNKNOWN = "0x00"
- VT_SINK = "0x01"
- VT_SOURCE = "0x02"
- VT_MAX = "0x03"
- }
-
- struct distanceInformation_s
- {
- Int32 FrontLeft
- Int32 FrontRight
- Int32 RearLeft
- Int32 RearRight
- }
-
- struct sampleNames_s
- {
- sampleSet_e sample
- String sampleName
- } array listSampleNamesL of sampleNames_s
-
- typedef am_domainID_t is UInt16
-
- struct am_Domain_s
- {
- am_domainID_t domainID
- String name
- String busname
- String nodename
- Boolean early
- Boolean complete
- am_DomainState_e ^state
- }
-
- struct am_Volumes_s
- {
- am_VolumeType_e volumeType
- am_DataType_u volumeID
- am_volume_t volume
- am_RampType_e ramp
- am_time_t time
- }
- array am_Volumes_l of am_Volumes_s
-
- struct notificationPayload_s
- {
- Int16 type
- Int16 payload
- }
-
- struct am_Availability_s
- {
- am_Availability_e availability
- am_AvailabilityReason_e availabilityReason
- }
-
- struct am_SoundProperty_s
- {
- am_SoundPropertyType_e type
- Int16 value
- }
- array am_SoundProperty_L of am_SoundProperty_s
-
- struct am_MainSoundProperty_s
- {
- am_MainSoundPropertyType_e type
- Int16 value
- }
- array am_MainSoundProperty_L of am_MainSoundProperty_s
-
- struct am_NotificationConfiguration_s
- {
- am_NotificationType_e type
- am_NotificationStatus_e status
- Int16 parameter
- }
- array am_NotificationConfiguration_L of am_NotificationConfiguration_s
-
-
- array bool_L of Boolean
-
- struct sourceData_s
- {
- am_sourceID_t sourceID
- am_domainID_t domainID
- String name
- am_sourceClass_t sourceClassID
- am_SourceState_e sourceState
- am_volume_t volume
- Boolean visible
- am_Availability_s available
- am_InterruptState_e interruptState
- am_SoundProperty_L listSoundProperties
- am_ConnectionFormat_L listConnectionFormats
- am_MainSoundProperty_L listMainSoundProperties
- am_NotificationConfiguration_L listMainNotificationConfigurations
- am_NotificationConfiguration_L listNotificationConfigurations
- }
-
- struct sinkData_s
- {
- am_sinkID_t sinkID
- String name
- am_domainID_t domainID
- am_sinkClass_t sinkClassID
- am_volume_t volume
- Boolean visible
- am_Availability_s available
- am_MuteState_e muteState
- am_mainVolume_t mainVolume
- am_SoundProperty_L listSoundProperties
- am_ConnectionFormat_L listConnectionFormats
- am_MainSoundProperty_L listMainSoundProperties
- am_NotificationConfiguration_L listMainNotificationConfigurations
- am_NotificationConfiguration_L listNotificationConfigurations
- }
-
- struct crossfaderData_s
- {
- am_crossfaderID_t crossfaderID
- String name
- am_sinkID_t sinkID_A
- am_sinkID_t sinkID_B
- am_sourceID_t sourceID
- am_HotSink_e hotSink
- }
-
- struct am_Gateway_s
- {
- am_gatewayID_t gatewayID
- String name
- am_sinkID_t sinkID
- am_sourceID_t sourceID
- am_domainID_t domainSinkID
- am_domainID_t domainSourceID
- am_domainID_t controlDomainID
- am_ConnectionFormat_L listSourceFormats
- am_ConnectionFormat_L listSinkFormats
- bool_L convertionMatrix
- }
-
- struct am_EarlyData_s
- {
- am_EarlyDataType_e type
- am_DataType_u sinksource
- am_EarlyData_u data
-
- }
- array am_EarlyData_l of am_EarlyData_s
- union am_EarlyData_u
- {
- am_volume_t volume
- am_SoundProperty_s soundProperty
-
- }
- union am_DataType_u
- {
- am_sinkID_t sink
- am_sourceID_t source
- }
-} \ No newline at end of file
diff --git a/PluginRoutingInterfaceCAPI/fidl/deployment.fdepl b/PluginRoutingInterfaceCAPI/fidl/deployment.fdepl
deleted file mode 100644
index 3846ed4..0000000
--- a/PluginRoutingInterfaceCAPI/fidl/deployment.fdepl
+++ /dev/null
@@ -1,9 +0,0 @@
-specification org.genivi.commonapi.core.deployment.deployment {
- for interfaces {
- DefaultEnumBackingType: {UInt8, UInt16, UInt32, UInt64, Int8, Int16, Int32, Int64} (default: UInt32);
- }
-
- for enumerations {
- EnumBackingType: {UseDefault, UInt8, UInt16, UInt32, UInt64, Int8, Int16, Int32, Int64} (default: UseDefault);
- }
-}