a2dp_error_codes.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. /******************************************************************************
  2. *
  3. * Copyright 2000-2012 Broadcom Corporation
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License");
  6. * you may not use this file except in compliance with the License.
  7. * You may obtain a copy of the License at:
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. *
  17. ******************************************************************************/
  18. //
  19. // A2DP Error Codes
  20. //
  21. #ifndef A2DP_ERROR_CODES_H
  22. #define A2DP_ERROR_CODES_H
  23. #include <inttypes.h>
  24. /* Success */
  25. #define A2DP_SUCCESS 0
  26. /* Failed */
  27. #define A2DP_FAIL 0x0A
  28. /* A2DP_FindService is already in progress */
  29. #define A2DP_BUSY 0x0B
  30. /* Bad parameters */
  31. #define A2DP_INVALID_PARAMS 0x0C
  32. /* Wrong codec info */
  33. #define A2DP_WRONG_CODEC 0x0D
  34. /* Media Codec Type is not valid */
  35. #define A2DP_BAD_CODEC_TYPE 0xC1
  36. /* Media Codec Type is not supported */
  37. #define A2DP_NS_CODEC_TYPE 0xC2
  38. /* Sampling Frequency is not valid or multiple values have been selected */
  39. #define A2DP_BAD_SAMP_FREQ 0xC3
  40. /* Sampling Frequency is not supported */
  41. #define A2DP_NS_SAMP_FREQ 0xC4
  42. /* Channel Mode is not valid or multiple values * have been selected */
  43. #define A2DP_BAD_CH_MODE 0xC5
  44. /* Channel Mode is not supported */
  45. #define A2DP_NS_CH_MODE 0xC6
  46. /* None or multiple values have been selected for Number of Subbands */
  47. #define A2DP_BAD_SUBBANDS 0xC7
  48. /* Number of Subbands is not supported */
  49. #define A2DP_NS_SUBBANDS 0xC8
  50. /* None or multiple values have been selected for Allocation Method */
  51. #define A2DP_BAD_ALLOC_METHOD 0xC9
  52. /* Allocation Method is not supported */
  53. #define A2DP_NS_ALLOC_METHOD 0xCA
  54. /* Minimum Bitpool Value is not valid */
  55. #define A2DP_BAD_MIN_BITPOOL 0xCB
  56. /* Minimum Bitpool Value is not supported */
  57. #define A2DP_NS_MIN_BITPOOL 0xCC
  58. /* Maximum Bitpool Value is not valid */
  59. #define A2DP_BAD_MAX_BITPOOL 0xCD
  60. /* Maximum Bitpool Value is not supported */
  61. #define A2DP_NS_MAX_BITPOOL 0xCE
  62. /* None or multiple values have been selected for Layer */
  63. #define A2DP_BAD_LAYER 0xCF
  64. /* Layer is not supported */
  65. #define A2DP_NS_LAYER 0xD0
  66. /* CRC is not supported */
  67. #define A2DP_NS_CRC 0xD1
  68. /* MPF-2 is not supported */
  69. #define A2DP_NS_MPF 0xD2
  70. /* VBR is not supported */
  71. #define A2DP_NS_VBR 0xD3
  72. /* None or multiple values have been selected for Bit Rate */
  73. #define A2DP_BAD_BIT_RATE 0xD4
  74. /* Bit Rate is not supported */
  75. #define A2DP_NS_BIT_RATE 0xD5
  76. /* Either 1) Object type is not valid (b3-b0) or 2) None or multiple values
  77. * have been * selected for Object Type
  78. */
  79. #define A2DP_BAD_OBJ_TYPE 0xD6
  80. /* Object type is not supported */
  81. #define A2DP_NS_OBJ_TYPE 0xD7
  82. /* None or multiple values have been selected for Channels */
  83. #define A2DP_BAD_CHANNEL 0xD8
  84. /* Channels is not supported */
  85. #define A2DP_NS_CHANNEL 0xD9
  86. /* None or multiple values have been selected for Block Length */
  87. #define A2DP_BAD_BLOCK_LEN 0xDD
  88. /* The requested CP Type is not supported. */
  89. #define A2DP_BAD_CP_TYPE 0xE0
  90. /* The format of Content Protection Service Capability/Content Protection
  91. * Scheme Dependent Data is not correct.
  92. */
  93. #define A2DP_BAD_CP_FORMAT 0xE1
  94. typedef uint8_t tA2DP_STATUS;
  95. #endif // A2DP_ERROR_CODES_H