dotstack API Reference  1.10.37
Macros

This module describes parameters used to configure AVCTP layer. More...

Macros

#define AVCTP_MAX_CHANNELS
 Maximum number of AVCTP channels. More...
 
#define AVCTP_MAX_TRANSPORT_CHANNELS
 Maximum number of AVCTP transports. More...
 
#define AVCTP_ALLOCATE_BUFFERS_VARS()
 Maximum size of received message. More...
 

Detailed Description

This module describes parameters used to configure AVCTP layer.

dotstack is customized using a configuration file. The configuration file tailors the dotstack to the application being built. It has to have the structure shown below.

#include "cdbt/bt/bt_std.h"
// HCI, L2CAP and SDP must always be present
// HCI configuration parameters
#define HCI_MAX_CMD_BUFFERS ...
#define HCI_MAX_DATA_BUFFERS ...
#define HCI_MAX_ACL_CONNECTIONS ...
#define HCI_RX_BUFFER_LEN ...
#define HCI_TX_BUFFER_LEN ...
#define HCI_L2CAP_BUFFER_LEN ...
#define HCI_MAX_CMD_PARAM_LEN ...
// L2CAP configuration parameters
#define L2CAP_MAX_CMD_BUFFERS ...
#define L2CAP_MAX_FRAME_BUFFERS ...
#define L2CAP_MAX_PSMS ...
#define L2CAP_MAX_CHANNELS ...
// SDP configuration parameters
#define SDP_MAX_SEARCH_RESULT_LEN ...
#define SDP_MAX_ATTRIBUTE_RESULT_LEN ...
// Depending on protocols and profiles used below goes configuration parameters
// for each used module. E.g., to use and configure AVRCP,
// the following values must be defined:
#define BT_INCLUDE_AVCTP // tells dotstack to compile in AVCTP support
#define AVCTP_MAX_CHANNELS ...
#define AVCTP_MAX_TRANSPORT_CHANNELS ...
#define AVCTP_MAX_RX_MESSAGE_LEN ...
#define AVCTP_MAX_MESSAGE_BUFFERS ...
#include "cdbt/bt/bt_oem_config.h"

Macro Definition Documentation

#define AVCTP_ALLOCATE_BUFFERS_VARS ( )
Value:
bt_avctp_channel_t _avctp_channels[AVCTP_MAX_CHANNELS]; \
const bt_byte _avctp_max_channels = AVCTP_MAX_CHANNELS; \
bt_avctp_transport_t _avctp_transports[AVCTP_MAX_TRANSPORT_CHANNELS]; \
const bt_byte _avctp_max_transports = AVCTP_MAX_TRANSPORT_CHANNELS; \
const bt_uint _avctp_max_rx_message_len = AVCTP_MAX_RX_MESSAGE_LEN; \
bt_byte _avctp_rx_buffers[(AVCTP_MAX_RX_MESSAGE_LEN) * (AVCTP_MAX_TRANSPORT_CHANNELS)]; \
bt_buffer_header_t _avctp_message_buffer_headers[(AVCTP_MAX_MESSAGE_BUFFERS) * (AVCTP_MAX_TRANSPORT_CHANNELS)]; \
bt_avctp_message_t _avctp_message_buffers[(AVCTP_MAX_MESSAGE_BUFFERS) * (AVCTP_MAX_TRANSPORT_CHANNELS)]; \
const bt_byte _avctp_max_message_buffers = AVCTP_MAX_MESSAGE_BUFFERS; \
\
AVCTP_ALLOCATE_BUFFERS_RAM_SIZE_VAR \
#define AVCTP_MAX_TRANSPORT_CHANNELS
Maximum number of AVCTP transports.
Definition: avctp_config.h:102
#define AVCTP_MAX_CHANNELS
Maximum number of AVCTP channels.
Definition: avctp_config.h:89

Maximum size of received message.

This parameter defines the maximum size of a fragmented message (command or response) a local device can accept from a remote device. If fragmented message are not expected this parameter can be set to 1. Maximum number of message buffers

This parameter defines the maximum number of buffer available for sending message.

#define AVCTP_MAX_CHANNELS

Maximum number of AVCTP channels.

This parameter defines the maximum number of channels a local device can have with remote devices.

#define AVCTP_MAX_TRANSPORT_CHANNELS

Maximum number of AVCTP transports.

This parameter defines the maximum number of transports a local device can have with remote devices. This value should not exceed AVCTP_MAX_CHANNELS.