SER_BT_CONN_NRF51, /**!< BLE, Nordic nRF51, notifications */
SER_BT_CONN_CC254x, /**!< BLE, TI CC254x, notifications */
SER_BT_CONN_AC6328, /**!< BLE, JL AC6328B, notifications */
+ SER_BT_CONN_DIALOG, /**!< BLE, dialog DA14580, notifications */
SER_BT_CONN_NOTIFY, /**!< BLE, generic notifications */
SER_BT_CONN_MAX, /**!< sentinel */
} bt_conn_type;
[SER_BT_CONN_NRF51] = "nrf51",
[SER_BT_CONN_CC254x] = "cc254x",
[SER_BT_CONN_AC6328] = "ac6328",
+ [SER_BT_CONN_DIALOG] = "dialog",
[SER_BT_CONN_NOTIFY] = "notify",
};
if (cccd_val)
*cccd_val = 0x0001;
break;
+ case SER_BT_CONN_DIALOG:
+ if (read_hdl)
+ *read_hdl = 23;
+ if (write_hdl)
+ *write_hdl = 18;
+ if (cccd_hdl)
+ *cccd_hdl = 0;
+ if (cccd_val)
+ *cccd_val = 0x0001;
+ if (ble_mtu)
+ *ble_mtu = 400;
+ break;
case SER_BT_CONN_NOTIFY:
/* All other values must be provided externally. */
if (cccd_val)
case SER_BT_CONN_NRF51:
case SER_BT_CONN_CC254x:
case SER_BT_CONN_AC6328:
+ case SER_BT_CONN_DIALOG:
case SER_BT_CONN_NOTIFY:
rc = sr_bt_config_notify(desc,
read_hdl, write_hdl, cccd_hdl, cccd_val,
case SER_BT_CONN_NRF51:
case SER_BT_CONN_CC254x:
case SER_BT_CONN_AC6328:
+ case SER_BT_CONN_DIALOG:
case SER_BT_CONN_NOTIFY:
rc = sr_bt_connect_ble(desc);
if (rc < 0)
case SER_BT_CONN_NRF51:
case SER_BT_CONN_CC254x:
case SER_BT_CONN_AC6328:
+ case SER_BT_CONN_DIALOG:
case SER_BT_CONN_NOTIFY:
/*
* Assume that when applications call the serial layer's
case SER_BT_CONN_NRF51:
case SER_BT_CONN_CC254x:
case SER_BT_CONN_AC6328:
+ case SER_BT_CONN_DIALOG:
case SER_BT_CONN_NOTIFY:
dlen = sr_ser_has_queued_data(serial);
rc = sr_bt_check_notify(serial->bt_desc);
case SER_BT_CONN_NRF51:
case SER_BT_CONN_CC254x:
case SER_BT_CONN_AC6328:
+ case SER_BT_CONN_DIALOG:
case SER_BT_CONN_NOTIFY:
dlen = sr_ser_has_queued_data(serial);
rc = sr_bt_check_notify(serial->bt_desc);