openD unified API  1.0.0
opend_audio_types.h
Go to the documentation of this file.
1 #ifdef __cplusplus
2 extern "C"
3 {
4 #endif
5 
30 #ifndef __OPEND_AUDIO_TYPES_H__
31 #define __OPEND_AUDIO_TYPES_H__
32 
33 #include <stdbool.h>
34 #include "opend_dataTypes.h"
35 
39 typedef enum openD_audioApi_service {
57 
61 typedef struct audioApiReq_mute {
69  bool enable;
71 
75 typedef struct audioApiReq_volume {
83  uint8_t level;
85 
89 typedef struct openD_audioApiReq {
93  openD_audioApi_service_t service;
94 
98  union {
102  audioApiReq_mute_t setMute;
106  audioApiReq_volume_t setVolume;
107  } param;
109 
113 typedef struct openD_audioApiCfm {
117  openD_audioApi_service_t service;
125  union {
129  audioApiReq_mute_t getMute;
133  audioApiReq_volume_t getVolume;
134  } param;
136 
140 typedef struct openD_audioApiInd {
144  openD_audioApi_service_t service;
146 
149 #endif /* __OPEND_AUDIO_TYPES_H__ */
150 #ifdef __cplusplus
151 }
152 #endif
Definition: opend_audio_types.h:47
openD_status_t
Definition: opend_dataTypes.h:62
struct openD_audioApiCfm openD_audioApiCfm_t
Definition: opend_audio_types.h:113
pmid_t pmid
Definition: opend_audio_types.h:79
struct openD_audioApiReq openD_audioApiReq_t
struct audioApiReq_mute audioApiReq_mute_t
Definition: opend_audio_types.h:61
pmid_t pmid
Definition: opend_audio_types.h:65
enum openD_audioApi_service openD_audioApi_service_t
uint8_t pmid_t[3]
Definition: opend_dataTypes.h:50
struct openD_audioApiInd openD_audioApiInd_t
openD_audioApi_service_t service
Definition: opend_audio_types.h:117
Definition: opend_audio_types.h:55
Definition: opend_audio_types.h:51
bool enable
Definition: opend_audio_types.h:69
uint8_t level
Definition: opend_audio_types.h:83
openD_audioApi_service_t service
Definition: opend_audio_types.h:93
struct audioApiReq_volume audioApiReq_volume_t
Definition: opend_audio_types.h:43
Definition: opend_audio_types.h:89
Definition: opend_audio_types.h:75
openD data types.
openD_status_t status
Definition: opend_audio_types.h:121
openD_audioApi_service
Definition: opend_audio_types.h:39
Definition: opend_audio_types.h:140
openD_audioApi_service_t service
Definition: opend_audio_types.h:144