MT2523 API Reference  LinkIt SDK v4
Define

Overview

Macros

#define BT_CODEC_MEDIA_EVENT_START   (120)
 Defines the codec media event. More...
 

Enumerations

enum  bt_codec_state_t {
  BT_CODEC_STATE_IDLE,
  BT_CODEC_STATE_READY,
  BT_CODEC_STATE_PLAY,
  BT_CODEC_STATE_ERROR,
  BT_CODEC_STATE_STOP
}
 Bluetooth codec state. More...
 
enum  bt_codec_media_event_t {
  BT_CODEC_MEDIA_ERROR = (120),
  BT_CODEC_MEDIA_OK,
  BT_CODEC_MEDIA_UNDERFLOW,
  BT_CODEC_MEDIA_REQUEST,
  BT_CODEC_MEDIA_DATA_NOTIFICATION,
  BT_CODEC_MEDIA_TERMINATED,
  BT_CODEC_MEDIA_AWS_CHECK_UNDERFLOW,
  BT_CODEC_MEDIA_AWS_CHECK_CLOCK_SKEW
}
 This structure defines the Bluetooth codec media events. More...
 
enum  bt_codec_media_status_t {
  BT_CODEC_MEDIA_STATUS_BASE = -0x1B00,
  BT_CODEC_MEDIA_STATUS_OK = 0,
  BT_CODEC_MEDIA_STATUS_ERROR = -0x1B01,
  BT_CODEC_MEDIA_STATUS_INVALID_PARAM = -0x1B02,
  BT_CODEC_MEDIA_STATUS_END
}
 This structure defines the Bluetooth codec API return status. More...
 
enum  bt_codec_aws_clock_skew_status_t {
  BT_CODEC_AWS_CLOCK_SKEW_STATUS_IDLE,
  BT_CODEC_AWS_CLOCK_SKEW_STATUS_BUSY
}
 Bluetooth codec AWS clock skew status. More...
 
enum  bt_codec_media_hfp_mix_stream_out_method_t {
  BT_CODEC_MEDIA_HFP_MIX_STREAM_OUT_METHOD_NO_MIX = 0,
  BT_CODEC_MEDIA_HFP_MIX_STREAM_OUT_METHOD_REPLACE,
  BT_CODEC_MEDIA_HFP_MIX_STREAM_OUT_METHOD_WEIGHTED_MEAN
}
 

Macro Definition Documentation

#define BT_CODEC_MEDIA_EVENT_START   (120)

Defines the codec media event.

The start of the Media events.

Enumeration Type Documentation

Bluetooth codec AWS clock skew status.

Enumerator
BT_CODEC_AWS_CLOCK_SKEW_STATUS_IDLE 

The Bluetooth codec AWS clock skew is inactive.

BT_CODEC_AWS_CLOCK_SKEW_STATUS_BUSY 

The Bluetooth codec AWS clock skew is compensating.

This structure defines the Bluetooth codec media events.

Enumerator
BT_CODEC_MEDIA_ERROR 

The start of the Media events.

Failed, due to a bitstream error.

BT_CODEC_MEDIA_OK 

Successful.

BT_CODEC_MEDIA_UNDERFLOW 

The bitstreaming is underflow and the codec output is on silent.

BT_CODEC_MEDIA_REQUEST 

Bitstreaming request from the user.

BT_CODEC_MEDIA_DATA_NOTIFICATION 

Bitstreaming notification to the user.

BT_CODEC_MEDIA_TERMINATED 

The Bluetooth codec is terminated.

BT_CODEC_MEDIA_AWS_CHECK_UNDERFLOW 

Advanced wireless stereo underflow-checking mechanism is triggered.

BT_CODEC_MEDIA_AWS_CHECK_CLOCK_SKEW 

Advanced wireless stereo clock-skew-checking mechanism is triggered.

Enumerator
BT_CODEC_MEDIA_HFP_MIX_STREAM_OUT_METHOD_NO_MIX 

Maintain origin stream out.

BT_CODEC_MEDIA_HFP_MIX_STREAM_OUT_METHOD_REPLACE 

Replace origin stream out.

BT_CODEC_MEDIA_HFP_MIX_STREAM_OUT_METHOD_WEIGHTED_MEAN 

Weighted mean.

This structure defines the Bluetooth codec API return status.

Enumerator
BT_CODEC_MEDIA_STATUS_BASE 

The base of the status.

BT_CODEC_MEDIA_STATUS_OK 

Successful.

BT_CODEC_MEDIA_STATUS_ERROR 

Error.

BT_CODEC_MEDIA_STATUS_INVALID_PARAM 

Invalid parameters.

BT_CODEC_MEDIA_STATUS_END 

The end of the status.

Bluetooth codec state.

Enumerator
BT_CODEC_STATE_IDLE 

The Bluetooth codec is inactive.

BT_CODEC_STATE_READY 

The Bluetooth codec is ready to play the media.

BT_CODEC_STATE_PLAY 

The Bluetooth codec is in a playing state.

BT_CODEC_STATE_ERROR 

The Bluetooth codec reported an error.

BT_CODEC_STATE_STOP 

The Bluetooth codec has stopped.