bt 2.0.0.0
BT Device Settings

Settings for BT Click driver. More...

Macros

#define BT_MSG_TYPE_COMMAND   0x20
 BT message type setting.
 
#define BT_MSG_TYPE_RESPONSE   0x20
 
#define BT_MSG_TYPE_EVENT   0xA0
 
#define BT_MSG_CLASS_DFU   0x00
 BT message class setting.
 
#define BT_MSG_CLASS_SYSTEM   0x01
 
#define BT_MSG_CLASS_GAP   0x02
 
#define BT_MSG_CLASS_LE_GAP   0x03
 
#define BT_MSG_CLASS_RFCOMM   0x04
 
#define BT_MSG_CLASS_IDENTITY   0x05
 
#define BT_MSG_CLASS_SDP   0x06
 
#define BT_MSG_CLASS_CONNECTION   0x07
 
#define BT_MSG_CLASS_LE_CONNECTION   0x08
 
#define BT_MSG_CLASS_GATT   0x09
 
#define BT_MSG_CLASS_GATT_SERVER   0x0A
 
#define BT_MSG_CLASS_ENDPOINT   0x0B
 
#define BT_MSG_CLASS_HARDWARE   0x0C
 
#define BT_MSG_CLASS_FLASH_PS   0x0D
 
#define BT_MSG_CLASS_TEST   0x0E
 
#define BT_MSG_CLASS_SM   0x0F
 
#define BT_MSG_CLASS_UTIL   0x11
 
#define BT_MSG_CLASS_HID   0x13
 
#define BT_MSG_CLASS_LE_SERIAL   0x14
 
#define BT_MSG_ID_SYSTEM_RESET   0x01
 BT message ID setting.
 
#define BT_MSG_ID_SYSTEM_GET_BT_ADDRESS   0x03
 
#define BT_MSG_ID_SYSTEM_GET_CLASS_OF_DEV   0x05
 
#define BT_MSG_ID_SYSTEM_SET_CLASS_OF_DEV   0x06
 
#define BT_MSG_ID_SYSTEM_FACTORY_RESET   0x07
 
#define BT_MSG_ID_SYSTEM_SET_LOCAL_NAME   0x08
 
#define BT_MSG_ID_SYSTEM_GET_LOCAL_NAME   0x09
 
#define BT_MSG_ID_SM_SET_BONDABLE_MODE   0x00
 
#define BT_MSG_ID_SM_DELETE_BONDINGS   0x07
 
#define BT_MSG_ID_GAP_SET_MODE   0x03
 
#define BT_MSG_ID_HARDWARE_CONFIG_GPIO   0x01
 
#define BT_MSG_ID_HARDWARE_WRITE_GPIO   0x02
 
#define BT_MSG_ID_HARDWARE_READ_GPIO   0x03
 
#define BT_MSG_ID_ENDPOINT_SEND_DATA   0x00
 
#define BT_MSG_ID_RFCOMM_START_SERVER   0x01
 
#define BT_MSG_ID_RFCOMM_STOP_SERVER   0x03
 
#define BT_MSG_ID_EVT_ENDPOINT_DATA   0x01
 
#define BT_MSG_ID_EVT_CONNECTION_OPENED   0x00
 
#define BT_MSG_ID_EVT_CONNECTION_CLOSED   0x01
 
#define BT_MSG_ID_EVT_SM_BONDED   0x03
 
#define BT_MSG_ID_EVT_RFCOMM_OPENED   0x00
 
#define BT_MSG_ID_EVT_RFCOMM_MODEM_STATUS   0x01
 
#define BT_SYSTEM_RESET_NORMAL   0x00
 BT reset mode setting.
 
#define BT_SYSTEM_RESET_BOOT_TO_DFU   0x01
 
#define BT_SM_SET_BONDABLE_NOT_ACCEPTED   0x00
 BT bondable mode setting.
 
#define BT_SM_SET_BONDABLE_ALLOWED   0x01
 
#define BT_GAP_MODE_NOT_CONNECTABLE   0x00
 BT gap mode setting.
 
#define BT_GAP_MODE_CONNECTABLE   0x01
 
#define BT_GAP_MODE_NOT_DISCOVERABLE   0x00
 
#define BT_GAP_MODE_DISCOVERABLE   0x01
 
#define BT_GAP_MODE_NOT_LIMITED   0x00
 
#define BT_GAP_MODE_LIMITED   0x01
 
#define BT_RFCOMM_SERVER_DEF_SDP_ID   0x02
 BT rfcomm server setting.
 
#define BT_RFCOMM_SERVER_DEF_STREAM_DEST   0x00
 
#define BT_HARDWARE_CONFIG_PORT_A   0x00
 BT hardware config gpio setting.
 
#define BT_HARDWARE_CONFIG_PORT_B   0x01
 
#define BT_HARDWARE_CONFIG_GPIO_FLOAT   0x00
 
#define BT_HARDWARE_CONFIG_GPIO_PULLUP   0x01
 
#define BT_HARDWARE_CONFIG_GPIO_PULLDOWN   0x02
 
#define BT_HARDWARE_CONFIG_GPIO_INPUT   0x00
 
#define BT_HARDWARE_CONFIG_GPIO_OUTPUT   0x01
 
#define BT_HARDWARE_CONFIG_GPIO_FUNCTION   0x02
 
#define BT_HARDWARE_CONFIG_GPIO_ANALOG   0x03
 
#define BT_HARDWARE_BUTTON1_PIN_INDEX   0x08
 
#define BT_HARDWARE_BUTTON2_PIN_INDEX   0x09
 
#define BT_HARDWARE_BUTTON3_PIN_INDEX   0x0A
 
#define BT_HARDWARE_BUTTON4_PIN_INDEX   0x0C
 
#define BT_HARDWARE_BUTTON5_PIN_INDEX   0x0D
 
#define BT_HARDWARE_LED1_PIN_INDEX   0x0E
 
#define BT_HARDWARE_LED2_PIN_INDEX   0x0F
 
#define BT_HARDWARE_BUTTON1_PIN_MASK   0x0100
 
#define BT_HARDWARE_BUTTON2_PIN_MASK   0x0200
 
#define BT_HARDWARE_BUTTON3_PIN_MASK   0x0400
 
#define BT_HARDWARE_BUTTON4_PIN_MASK   0x1000
 
#define BT_HARDWARE_BUTTON5_PIN_MASK   0x2000
 
#define BT_HARDWARE_ALL_BUTTONS_PIN_MASK   0x3700
 
#define BT_HARDWARE_LED1_PIN_MASK   0x4000
 
#define BT_HARDWARE_LED2_PIN_MASK   0x8000
 
#define BT_HARDWARE_ALL_LEDS_PIN_MASK   0xC000
 
#define BT_MAX_PAYLOAD_LEN   0x40
 BT payload setting.
 
#define DRV_BUFFER_SIZE   200
 BT driver buffer size.
 

Detailed Description

Settings for BT Click driver.

Macro Definition Documentation

◆ BT_GAP_MODE_CONNECTABLE

#define BT_GAP_MODE_CONNECTABLE   0x01

◆ BT_GAP_MODE_DISCOVERABLE

#define BT_GAP_MODE_DISCOVERABLE   0x01

◆ BT_GAP_MODE_LIMITED

#define BT_GAP_MODE_LIMITED   0x01

◆ BT_GAP_MODE_NOT_CONNECTABLE

#define BT_GAP_MODE_NOT_CONNECTABLE   0x00

BT gap mode setting.

Specified settings for gap mode of BT Click driver.

◆ BT_GAP_MODE_NOT_DISCOVERABLE

#define BT_GAP_MODE_NOT_DISCOVERABLE   0x00

◆ BT_GAP_MODE_NOT_LIMITED

#define BT_GAP_MODE_NOT_LIMITED   0x00

◆ BT_HARDWARE_ALL_BUTTONS_PIN_MASK

#define BT_HARDWARE_ALL_BUTTONS_PIN_MASK   0x3700

◆ BT_HARDWARE_ALL_LEDS_PIN_MASK

#define BT_HARDWARE_ALL_LEDS_PIN_MASK   0xC000

◆ BT_HARDWARE_BUTTON1_PIN_INDEX

#define BT_HARDWARE_BUTTON1_PIN_INDEX   0x08

◆ BT_HARDWARE_BUTTON1_PIN_MASK

#define BT_HARDWARE_BUTTON1_PIN_MASK   0x0100

◆ BT_HARDWARE_BUTTON2_PIN_INDEX

#define BT_HARDWARE_BUTTON2_PIN_INDEX   0x09

◆ BT_HARDWARE_BUTTON2_PIN_MASK

#define BT_HARDWARE_BUTTON2_PIN_MASK   0x0200

◆ BT_HARDWARE_BUTTON3_PIN_INDEX

#define BT_HARDWARE_BUTTON3_PIN_INDEX   0x0A

◆ BT_HARDWARE_BUTTON3_PIN_MASK

#define BT_HARDWARE_BUTTON3_PIN_MASK   0x0400

◆ BT_HARDWARE_BUTTON4_PIN_INDEX

#define BT_HARDWARE_BUTTON4_PIN_INDEX   0x0C

◆ BT_HARDWARE_BUTTON4_PIN_MASK

#define BT_HARDWARE_BUTTON4_PIN_MASK   0x1000

◆ BT_HARDWARE_BUTTON5_PIN_INDEX

#define BT_HARDWARE_BUTTON5_PIN_INDEX   0x0D

◆ BT_HARDWARE_BUTTON5_PIN_MASK

#define BT_HARDWARE_BUTTON5_PIN_MASK   0x2000

◆ BT_HARDWARE_CONFIG_GPIO_ANALOG

#define BT_HARDWARE_CONFIG_GPIO_ANALOG   0x03

◆ BT_HARDWARE_CONFIG_GPIO_FLOAT

#define BT_HARDWARE_CONFIG_GPIO_FLOAT   0x00

◆ BT_HARDWARE_CONFIG_GPIO_FUNCTION

#define BT_HARDWARE_CONFIG_GPIO_FUNCTION   0x02

◆ BT_HARDWARE_CONFIG_GPIO_INPUT

#define BT_HARDWARE_CONFIG_GPIO_INPUT   0x00

◆ BT_HARDWARE_CONFIG_GPIO_OUTPUT

#define BT_HARDWARE_CONFIG_GPIO_OUTPUT   0x01

◆ BT_HARDWARE_CONFIG_GPIO_PULLDOWN

#define BT_HARDWARE_CONFIG_GPIO_PULLDOWN   0x02

◆ BT_HARDWARE_CONFIG_GPIO_PULLUP

#define BT_HARDWARE_CONFIG_GPIO_PULLUP   0x01

◆ BT_HARDWARE_CONFIG_PORT_A

#define BT_HARDWARE_CONFIG_PORT_A   0x00

BT hardware config gpio setting.

Specified settings for hardware config gpio of BT Click driver.

◆ BT_HARDWARE_CONFIG_PORT_B

#define BT_HARDWARE_CONFIG_PORT_B   0x01

◆ BT_HARDWARE_LED1_PIN_INDEX

#define BT_HARDWARE_LED1_PIN_INDEX   0x0E

◆ BT_HARDWARE_LED1_PIN_MASK

#define BT_HARDWARE_LED1_PIN_MASK   0x4000

◆ BT_HARDWARE_LED2_PIN_INDEX

#define BT_HARDWARE_LED2_PIN_INDEX   0x0F

◆ BT_HARDWARE_LED2_PIN_MASK

#define BT_HARDWARE_LED2_PIN_MASK   0x8000

◆ BT_MAX_PAYLOAD_LEN

#define BT_MAX_PAYLOAD_LEN   0x40

BT payload setting.

Specified settings for payload of BT Click driver.

◆ BT_MSG_CLASS_CONNECTION

#define BT_MSG_CLASS_CONNECTION   0x07

◆ BT_MSG_CLASS_DFU

#define BT_MSG_CLASS_DFU   0x00

BT message class setting.

Specified settings for message class of BT Click driver.

◆ BT_MSG_CLASS_ENDPOINT

#define BT_MSG_CLASS_ENDPOINT   0x0B

◆ BT_MSG_CLASS_FLASH_PS

#define BT_MSG_CLASS_FLASH_PS   0x0D

◆ BT_MSG_CLASS_GAP

#define BT_MSG_CLASS_GAP   0x02

◆ BT_MSG_CLASS_GATT

#define BT_MSG_CLASS_GATT   0x09

◆ BT_MSG_CLASS_GATT_SERVER

#define BT_MSG_CLASS_GATT_SERVER   0x0A

◆ BT_MSG_CLASS_HARDWARE

#define BT_MSG_CLASS_HARDWARE   0x0C

◆ BT_MSG_CLASS_HID

#define BT_MSG_CLASS_HID   0x13

◆ BT_MSG_CLASS_IDENTITY

#define BT_MSG_CLASS_IDENTITY   0x05

◆ BT_MSG_CLASS_LE_CONNECTION

#define BT_MSG_CLASS_LE_CONNECTION   0x08

◆ BT_MSG_CLASS_LE_GAP

#define BT_MSG_CLASS_LE_GAP   0x03

◆ BT_MSG_CLASS_LE_SERIAL

#define BT_MSG_CLASS_LE_SERIAL   0x14

◆ BT_MSG_CLASS_RFCOMM

#define BT_MSG_CLASS_RFCOMM   0x04

◆ BT_MSG_CLASS_SDP

#define BT_MSG_CLASS_SDP   0x06

◆ BT_MSG_CLASS_SM

#define BT_MSG_CLASS_SM   0x0F

◆ BT_MSG_CLASS_SYSTEM

#define BT_MSG_CLASS_SYSTEM   0x01

◆ BT_MSG_CLASS_TEST

#define BT_MSG_CLASS_TEST   0x0E

◆ BT_MSG_CLASS_UTIL

#define BT_MSG_CLASS_UTIL   0x11

◆ BT_MSG_ID_ENDPOINT_SEND_DATA

#define BT_MSG_ID_ENDPOINT_SEND_DATA   0x00

◆ BT_MSG_ID_EVT_CONNECTION_CLOSED

#define BT_MSG_ID_EVT_CONNECTION_CLOSED   0x01

◆ BT_MSG_ID_EVT_CONNECTION_OPENED

#define BT_MSG_ID_EVT_CONNECTION_OPENED   0x00

◆ BT_MSG_ID_EVT_ENDPOINT_DATA

#define BT_MSG_ID_EVT_ENDPOINT_DATA   0x01

◆ BT_MSG_ID_EVT_RFCOMM_MODEM_STATUS

#define BT_MSG_ID_EVT_RFCOMM_MODEM_STATUS   0x01

◆ BT_MSG_ID_EVT_RFCOMM_OPENED

#define BT_MSG_ID_EVT_RFCOMM_OPENED   0x00

◆ BT_MSG_ID_EVT_SM_BONDED

#define BT_MSG_ID_EVT_SM_BONDED   0x03

◆ BT_MSG_ID_GAP_SET_MODE

#define BT_MSG_ID_GAP_SET_MODE   0x03

◆ BT_MSG_ID_HARDWARE_CONFIG_GPIO

#define BT_MSG_ID_HARDWARE_CONFIG_GPIO   0x01

◆ BT_MSG_ID_HARDWARE_READ_GPIO

#define BT_MSG_ID_HARDWARE_READ_GPIO   0x03

◆ BT_MSG_ID_HARDWARE_WRITE_GPIO

#define BT_MSG_ID_HARDWARE_WRITE_GPIO   0x02

◆ BT_MSG_ID_RFCOMM_START_SERVER

#define BT_MSG_ID_RFCOMM_START_SERVER   0x01

◆ BT_MSG_ID_RFCOMM_STOP_SERVER

#define BT_MSG_ID_RFCOMM_STOP_SERVER   0x03

◆ BT_MSG_ID_SM_DELETE_BONDINGS

#define BT_MSG_ID_SM_DELETE_BONDINGS   0x07

◆ BT_MSG_ID_SM_SET_BONDABLE_MODE

#define BT_MSG_ID_SM_SET_BONDABLE_MODE   0x00

◆ BT_MSG_ID_SYSTEM_FACTORY_RESET

#define BT_MSG_ID_SYSTEM_FACTORY_RESET   0x07

◆ BT_MSG_ID_SYSTEM_GET_BT_ADDRESS

#define BT_MSG_ID_SYSTEM_GET_BT_ADDRESS   0x03

◆ BT_MSG_ID_SYSTEM_GET_CLASS_OF_DEV

#define BT_MSG_ID_SYSTEM_GET_CLASS_OF_DEV   0x05

◆ BT_MSG_ID_SYSTEM_GET_LOCAL_NAME

#define BT_MSG_ID_SYSTEM_GET_LOCAL_NAME   0x09

◆ BT_MSG_ID_SYSTEM_RESET

#define BT_MSG_ID_SYSTEM_RESET   0x01

BT message ID setting.

Specified settings for message ID of BT Click driver.

Note
Refer to the BT121 API reference manual for more message IDs.

◆ BT_MSG_ID_SYSTEM_SET_CLASS_OF_DEV

#define BT_MSG_ID_SYSTEM_SET_CLASS_OF_DEV   0x06

◆ BT_MSG_ID_SYSTEM_SET_LOCAL_NAME

#define BT_MSG_ID_SYSTEM_SET_LOCAL_NAME   0x08

◆ BT_MSG_TYPE_COMMAND

#define BT_MSG_TYPE_COMMAND   0x20

BT message type setting.

Specified settings for message type of BT Click driver.

◆ BT_MSG_TYPE_EVENT

#define BT_MSG_TYPE_EVENT   0xA0

◆ BT_MSG_TYPE_RESPONSE

#define BT_MSG_TYPE_RESPONSE   0x20

◆ BT_RFCOMM_SERVER_DEF_SDP_ID

#define BT_RFCOMM_SERVER_DEF_SDP_ID   0x02

BT rfcomm server setting.

Specified settings for rfcomm server of BT Click driver.

◆ BT_RFCOMM_SERVER_DEF_STREAM_DEST

#define BT_RFCOMM_SERVER_DEF_STREAM_DEST   0x00

◆ BT_SM_SET_BONDABLE_ALLOWED

#define BT_SM_SET_BONDABLE_ALLOWED   0x01

◆ BT_SM_SET_BONDABLE_NOT_ACCEPTED

#define BT_SM_SET_BONDABLE_NOT_ACCEPTED   0x00

BT bondable mode setting.

Specified settings for bondable mode of BT Click driver.

◆ BT_SYSTEM_RESET_BOOT_TO_DFU

#define BT_SYSTEM_RESET_BOOT_TO_DFU   0x01

◆ BT_SYSTEM_RESET_NORMAL

#define BT_SYSTEM_RESET_NORMAL   0x00

BT reset mode setting.

Specified settings for reset mode of BT Click driver.

◆ DRV_BUFFER_SIZE

#define DRV_BUFFER_SIZE   200

BT driver buffer size.

Specified size of driver ring buffer.

Note
Increase buffer size if needed.