summaryrefslogtreecommitdiff
path: root/include/bluetooth_le.h
diff options
context:
space:
mode:
authorLevi Oliver <levio@google.com>2016-08-09 14:55:41 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-08-11 14:46:32 -0700
commitbf302b55e9973a5c6e3e59722a9d3062e7936832 (patch)
treed3de6d5c8f90bbaffded93a3747d078fbde83b25 /include/bluetooth_le.h
parentef6e93dc1bbf92821c9d3ff149f691fbdad1c015 (diff)
downloadchrome-ec-bf302b55e9973a5c6e3e59722a9d3062e7936832.tar.gz
btle: Add framework for parsing data packets
Re-wrote ble_radio_init to work with both data and advertising packets. Updated all calls to refactored function. RADIO_PCNF0_ADV renamed because it applies to advertisement and data packet formats. Updated all references to this value. TEST=make BOARD=hadoken BUG=None BRANCH=None Change-Id: I0fdbe0eb146ce5cbc40e3ac67bf4d0e5465dcc2f Signed-off-by: Levi Oliver <levio@google.com> Reviewed-on: https://chromium-review.googlesource.com/367732 Commit-Ready: Myles Watson <mylesgw@chromium.org> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Myles Watson <mylesgw@chromium.org>
Diffstat (limited to 'include/bluetooth_le.h')
-rw-r--r--include/bluetooth_le.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/bluetooth_le.h b/include/bluetooth_le.h
index 814e3673fc..46c17ac0bc 100644
--- a/include/bluetooth_le.h
+++ b/include/bluetooth_le.h
@@ -133,6 +133,7 @@ struct ble_adv_header {
#define BLE_RANDOM_ADDR_MSBS_STATIC 0xC0
#define BLE_ADV_ACCESS_ADDRESS 0x8E89BED6
+#define BLE_ADV_CRCINIT 0x555555
#define BLE_MAX_ADV_PAYLOAD_OCTETS 37
@@ -366,7 +367,7 @@ void ble_tx(struct ble_pdu *pdu);
int ble_rx(struct ble_pdu *pdu, int timeout, int adv);
-int ble_radio_init(void);
+int ble_radio_init(uint32_t access_address, uint32_t crc_init_val);
/* BLE 4.1 Vol 6 4.5.8 */
int select_data_channel(struct remapping_table *rt);