95 lines
2.4 KiB
C
95 lines
2.4 KiB
C
/**
|
|
****************************************************************************************
|
|
*
|
|
* @file atc_msg.h
|
|
*
|
|
* @brief Audio Topology Control - Definition of Kernel Messages
|
|
*
|
|
* Copyright (C) RivieraWaves 2019-2020
|
|
*
|
|
****************************************************************************************
|
|
*/
|
|
|
|
#ifndef ATC_MSG_H_
|
|
#define ATC_MSG_H_
|
|
|
|
/**
|
|
****************************************************************************************
|
|
* @addtogroup ATC Audio Topology Control - Definition of Kernel Messages
|
|
* @{
|
|
****************************************************************************************
|
|
*/
|
|
|
|
/*
|
|
* INCLUDE FILES
|
|
****************************************************************************************
|
|
*/
|
|
|
|
#include "gaf.h" // GAF Defines
|
|
#include "atc.h" // ATC Definitions
|
|
|
|
#if (GAF_ATC)
|
|
|
|
#include "gaf_msg.h" // Generic Audio Framework API Message Definitions
|
|
|
|
/*
|
|
* ENUMERATIONS
|
|
****************************************************************************************
|
|
*/
|
|
|
|
/// List of GAF_REQ request codes
|
|
enum atc_msg_req_codes
|
|
{
|
|
ATC_GET_FEATURES = GAF_CODE(ATC, COMMON, 0),
|
|
};
|
|
|
|
/// Features bit field meaning
|
|
enum atc_feat_bf
|
|
{
|
|
/// Routing Active Audio Service Server supported
|
|
ATC_FEAT_RAAS_SUPP_POS = 0,
|
|
ATC_FEAT_RAAS_SUPP_BIT = CO_BIT(ATC_FEAT_RAAS_SUPP_POS),
|
|
|
|
/// Routing Active Audio Service Server supported
|
|
ATC_FEAT_RAAC_SUPP_POS = 1,
|
|
ATC_FEAT_RAAC_SUPP_BIT = CO_BIT(ATC_FEAT_RAAC_SUPP_POS),
|
|
|
|
/// Coordinated Set Identification Set Member supported
|
|
ATC_FEAT_CSISM_SUPP_POS = 2,
|
|
ATC_FEAT_CSISM_SUPP_BIT = CO_BIT(ATC_FEAT_CSISM_SUPP_POS),
|
|
|
|
/// Coordinated Set Identification Set Coordinator supported
|
|
ATC_FEAT_CSISC_SUPP_POS = 3,
|
|
ATC_FEAT_CSISC_SUPP_BIT = CO_BIT(ATC_FEAT_CSISC_SUPP_POS),
|
|
};
|
|
|
|
/*
|
|
* API MESSAGES
|
|
****************************************************************************************
|
|
*/
|
|
|
|
/// Structure for ATC_GET_FEATURES request message
|
|
typedef struct atc_get_features_req
|
|
{
|
|
/// Request code (@see enum atc_msg_req_codes)
|
|
uint16_t req_code;
|
|
} atc_get_features_req_t;
|
|
|
|
/// Structure for ATC_GET_FEATURES response message
|
|
typedef struct atc_get_features_rsp
|
|
{
|
|
/// Request code (@see enum atc_msg_req_codes)
|
|
uint16_t req_code;
|
|
/// Status
|
|
uint16_t status;
|
|
/// Features bit field
|
|
uint32_t feat_bf;
|
|
} atc_get_features_rsp_t;
|
|
|
|
|
|
#endif //(GAF_ATC)
|
|
|
|
/// @}
|
|
|
|
#endif // ATC_MSG_H_
|