76 lines
2.0 KiB
C
76 lines
2.0 KiB
C
/**
|
|
****************************************************************************************
|
|
*
|
|
* @file caps.h
|
|
*
|
|
* @brief Common Audio Profile - Server - Definitions
|
|
*
|
|
* Copyright (C) RivieraWaves 2019-2020
|
|
*
|
|
****************************************************************************************
|
|
*/
|
|
|
|
#ifndef CAPS_H_
|
|
#define CAPS_H_
|
|
|
|
/**
|
|
****************************************************************************************
|
|
* @addtogroup CAPS Common Audio Profile - Server
|
|
* @{
|
|
****************************************************************************************
|
|
*/
|
|
|
|
/*
|
|
* INCLUDE FILES
|
|
****************************************************************************************
|
|
*/
|
|
|
|
#include "cap.h" // Common Audio Profile Definitions
|
|
|
|
#if (GAF_CAPS)
|
|
|
|
#include "gaf.h" // Generic Audio Framework Definitions
|
|
|
|
/*
|
|
* ENUMERATIONS
|
|
****************************************************************************************
|
|
*/
|
|
|
|
/// List of GAF_REQ request codes for Common Audio Profile - Server
|
|
enum caps_msg_req_codes
|
|
{
|
|
CAPS_CONFIGURE = GAF_CODE(CAP, CAPS, 0),
|
|
CAPS_ENABLE = GAF_CODE(CAP, CAPS, 1),
|
|
};
|
|
|
|
/*
|
|
* API FUNCTIONS DECLARATION
|
|
****************************************************************************************
|
|
*/
|
|
|
|
/**
|
|
****************************************************************************************
|
|
* @brief Configure use of Common Audio Profile as Server
|
|
*
|
|
* @return An error status
|
|
****************************************************************************************
|
|
*/
|
|
uint16_t caps_configure(void);
|
|
|
|
/**
|
|
****************************************************************************************
|
|
* @brief Enable use of Common Audio Profile as Server
|
|
*
|
|
* @param[in] set_lid Coordinated Set local index
|
|
*
|
|
* @return An error status
|
|
****************************************************************************************
|
|
*/
|
|
uint16_t caps_enable(uint8_t set_lid);
|
|
|
|
#endif //(GAF_CAPS)
|
|
|
|
/// @}
|
|
|
|
#endif // CAPS_H_
|