ble12 2.0.0.0
BLE 12 Device Settings

Settings for registers of BLE 12 Click driver. More...

Macros

#define BLE12_CMD_AT   "AT"
 BLE 12 control commands.
 
#define BLE12_CMD_SW_RESET   "AT+RESET"
 
#define BLE12_CMD_GET_VERSION   "AT+VERSION?"
 
#define BLE12_CMD_GET_RSSI   "AT+RSSI?"
 
#define BLE12_CMD_SET_ADINTERVAL   "AT+ADINTERVAL="
 
#define BLE12_CMD_GET_ADINTERVAL   "AT+ADINTERVAL=?"
 
#define BLE12_CMD_SET_ADSTART   "AT+ADSTART="
 
#define BLE12_CMD_GET_ADSTART   "AT+ADSTART?"
 
#define BLE12_CMD_SET_ADVMANU   "AT+ADVMANU="
 
#define BLE12_CMD_GET_ADVMANU   "AT+ADVMANU?"
 
#define BLE12_CMD_SET_ADVRESP   "AT+ADVRESP="
 
#define BLE12_CMD_GET_ADVRESP   "AT+ADVRESP?"
 
#define BLE12_CMD_SET_SCANNER   "AT+SCANNER="
 
#define BLE12_CMD_GET_SCANNER   "AT+SCANNER?"
 
#define BLE12_CMD_SET_AUTOCON   "AT+AUTOCON="
 
#define BLE12_CMD_GET_AUTOCON   "AT+AUTOCON?"
 
#define BLE12_CMD_SET_DISCON   "AT+DISCON=1"
 
#define BLE12_CMD_SET_FILTERA   "AT+FILTERA="
 
#define BLE12_CMD_GET_FILTERA   "AT+FILTERA?"
 
#define BLE12_CMD_SET_FILTERR   "AT+FILTERR="
 
#define BLE12_CMD_GET_FILTERR   "AT+FILTERR?"
 
#define BLE12_CMD_SET_MANUAID   "AT+MANUAID="
 
#define BLE12_CMD_GET_MANUAID   "AT+MANUAID?"
 
#define BLE12_CMD_SET_MANURID   "AT+MANURID="
 
#define BLE12_CMD_GET_MANURID   "AT+MANURID?"
 
#define BLE12_CMD_SET_DCDC   "AT+DCDC="
 
#define BLE12_CMD_GET_DCDC   "AT+DCDC?"
 
#define BLE12_CMD_SET_SAVE   "AT+SAVE=1"
 
#define BLE12_CMD_SET_STOP   "AT+STOP="
 
#define BLE12_CMD_SET_NAME   "AT+NAME="
 
#define BLE12_CMD_GET_UART   "AT+UART?"
 
#define BLE12_CMD_SET_UART   "AT+UART="
 
#define BLE12_CMD_GET_ADDR   "AT+ADDR?"
 
#define BLE12_CMD_GET_RX   "AT+RX?"
 
#define BLE12_CMD_SET_DEFAULT   "AT+DEFAULT"
 
#define BLE12_CMD_GET_RFPW   "AT+RFPW?"
 
#define BLE12_CMD_SET_RFPW   "AT+RFPW="
 
#define BLE12_CMD_SET_GPIO   "AT+PIO="
 
#define BLE12_CMD_GET_GPIO   "AT+PIO?"
 
#define BLE12_CMD_SET_GPIO_IO   "AT+PIS="
 
#define BLE12_CMD_INIT_LED1   "AT+PIS=017,1"
 
#define BLE12_CMD_INIT_LED2   "AT+PIS=019,1"
 
#define BLE12_EVT_CONNECTED   "CONNECTED"
 BLE 12 respond event.
 
#define BLE12_EVT_DISCONNECTED   "DISCONNECTED"
 
#define BLE12_EVT_SCAN_TIMEOUT   "SCAN TIMEOUT"
 
#define BLE12_LED_YELLOW   0x00
 BLE 12 control led.
 
#define BLE12_LED_RED   0x01
 
#define BLE12_LED_ON   0x00
 
#define BLE12_LED_OFF   0x01
 
#define BLE12_OP_MODE_CMD   0x00
 
#define BLE12_OP_MODE_DATA   0x01
 
#define BLE12_SELECT_LED_YELLOW   "017,"
 
#define BLE12_SELECT_LED_RED   "019,"
 
#define BLE12_SET_LED_STATE_ON   "0"
 
#define BLE12_SET_LED_STATE_OFF   "1"
 
#define DRV_BUFFER_SIZE   200
 BLE 12 driver buffer size.
 

Detailed Description

Settings for registers of BLE 12 Click driver.

Macro Definition Documentation

◆ BLE12_CMD_AT

#define BLE12_CMD_AT   "AT"

BLE 12 control commands.

Specified setting for control commands of BLE 12 Click driver.

◆ BLE12_CMD_GET_ADDR

#define BLE12_CMD_GET_ADDR   "AT+ADDR?"

◆ BLE12_CMD_GET_ADINTERVAL

#define BLE12_CMD_GET_ADINTERVAL   "AT+ADINTERVAL=?"

◆ BLE12_CMD_GET_ADSTART

#define BLE12_CMD_GET_ADSTART   "AT+ADSTART?"

◆ BLE12_CMD_GET_ADVMANU

#define BLE12_CMD_GET_ADVMANU   "AT+ADVMANU?"

◆ BLE12_CMD_GET_ADVRESP

#define BLE12_CMD_GET_ADVRESP   "AT+ADVRESP?"

◆ BLE12_CMD_GET_AUTOCON

#define BLE12_CMD_GET_AUTOCON   "AT+AUTOCON?"

◆ BLE12_CMD_GET_DCDC

#define BLE12_CMD_GET_DCDC   "AT+DCDC?"

◆ BLE12_CMD_GET_FILTERA

#define BLE12_CMD_GET_FILTERA   "AT+FILTERA?"

◆ BLE12_CMD_GET_FILTERR

#define BLE12_CMD_GET_FILTERR   "AT+FILTERR?"

◆ BLE12_CMD_GET_GPIO

#define BLE12_CMD_GET_GPIO   "AT+PIO?"

◆ BLE12_CMD_GET_MANUAID

#define BLE12_CMD_GET_MANUAID   "AT+MANUAID?"

◆ BLE12_CMD_GET_MANURID

#define BLE12_CMD_GET_MANURID   "AT+MANURID?"

◆ BLE12_CMD_GET_RFPW

#define BLE12_CMD_GET_RFPW   "AT+RFPW?"

◆ BLE12_CMD_GET_RSSI

#define BLE12_CMD_GET_RSSI   "AT+RSSI?"

◆ BLE12_CMD_GET_RX

#define BLE12_CMD_GET_RX   "AT+RX?"

◆ BLE12_CMD_GET_SCANNER

#define BLE12_CMD_GET_SCANNER   "AT+SCANNER?"

◆ BLE12_CMD_GET_UART

#define BLE12_CMD_GET_UART   "AT+UART?"

◆ BLE12_CMD_GET_VERSION

#define BLE12_CMD_GET_VERSION   "AT+VERSION?"

◆ BLE12_CMD_INIT_LED1

#define BLE12_CMD_INIT_LED1   "AT+PIS=017,1"

◆ BLE12_CMD_INIT_LED2

#define BLE12_CMD_INIT_LED2   "AT+PIS=019,1"

◆ BLE12_CMD_SET_ADINTERVAL

#define BLE12_CMD_SET_ADINTERVAL   "AT+ADINTERVAL="

◆ BLE12_CMD_SET_ADSTART

#define BLE12_CMD_SET_ADSTART   "AT+ADSTART="

◆ BLE12_CMD_SET_ADVMANU

#define BLE12_CMD_SET_ADVMANU   "AT+ADVMANU="

◆ BLE12_CMD_SET_ADVRESP

#define BLE12_CMD_SET_ADVRESP   "AT+ADVRESP="

◆ BLE12_CMD_SET_AUTOCON

#define BLE12_CMD_SET_AUTOCON   "AT+AUTOCON="

◆ BLE12_CMD_SET_DCDC

#define BLE12_CMD_SET_DCDC   "AT+DCDC="

◆ BLE12_CMD_SET_DEFAULT

#define BLE12_CMD_SET_DEFAULT   "AT+DEFAULT"

◆ BLE12_CMD_SET_DISCON

#define BLE12_CMD_SET_DISCON   "AT+DISCON=1"

◆ BLE12_CMD_SET_FILTERA

#define BLE12_CMD_SET_FILTERA   "AT+FILTERA="

◆ BLE12_CMD_SET_FILTERR

#define BLE12_CMD_SET_FILTERR   "AT+FILTERR="

◆ BLE12_CMD_SET_GPIO

#define BLE12_CMD_SET_GPIO   "AT+PIO="

◆ BLE12_CMD_SET_GPIO_IO

#define BLE12_CMD_SET_GPIO_IO   "AT+PIS="

◆ BLE12_CMD_SET_MANUAID

#define BLE12_CMD_SET_MANUAID   "AT+MANUAID="

◆ BLE12_CMD_SET_MANURID

#define BLE12_CMD_SET_MANURID   "AT+MANURID="

◆ BLE12_CMD_SET_NAME

#define BLE12_CMD_SET_NAME   "AT+NAME="

◆ BLE12_CMD_SET_RFPW

#define BLE12_CMD_SET_RFPW   "AT+RFPW="

◆ BLE12_CMD_SET_SAVE

#define BLE12_CMD_SET_SAVE   "AT+SAVE=1"

◆ BLE12_CMD_SET_SCANNER

#define BLE12_CMD_SET_SCANNER   "AT+SCANNER="

◆ BLE12_CMD_SET_STOP

#define BLE12_CMD_SET_STOP   "AT+STOP="

◆ BLE12_CMD_SET_UART

#define BLE12_CMD_SET_UART   "AT+UART="

◆ BLE12_CMD_SW_RESET

#define BLE12_CMD_SW_RESET   "AT+RESET"

◆ BLE12_EVT_CONNECTED

#define BLE12_EVT_CONNECTED   "CONNECTED"

BLE 12 respond event.

Specified setting for respond event of BLE 12 Click driver.

◆ BLE12_EVT_DISCONNECTED

#define BLE12_EVT_DISCONNECTED   "DISCONNECTED"

◆ BLE12_EVT_SCAN_TIMEOUT

#define BLE12_EVT_SCAN_TIMEOUT   "SCAN TIMEOUT"

◆ BLE12_LED_OFF

#define BLE12_LED_OFF   0x01

◆ BLE12_LED_ON

#define BLE12_LED_ON   0x00

◆ BLE12_LED_RED

#define BLE12_LED_RED   0x01

◆ BLE12_LED_YELLOW

#define BLE12_LED_YELLOW   0x00

BLE 12 control led.

Specified setting for control led of BLE 12 Click driver.

◆ BLE12_OP_MODE_CMD

#define BLE12_OP_MODE_CMD   0x00

◆ BLE12_OP_MODE_DATA

#define BLE12_OP_MODE_DATA   0x01

◆ BLE12_SELECT_LED_RED

#define BLE12_SELECT_LED_RED   "019,"

◆ BLE12_SELECT_LED_YELLOW

#define BLE12_SELECT_LED_YELLOW   "017,"

◆ BLE12_SET_LED_STATE_OFF

#define BLE12_SET_LED_STATE_OFF   "1"

◆ BLE12_SET_LED_STATE_ON

#define BLE12_SET_LED_STATE_ON   "0"

◆ DRV_BUFFER_SIZE

#define DRV_BUFFER_SIZE   200

BLE 12 driver buffer size.

Specified size of driver ring buffer.

Note
Increase buffer size if needed.