Kai Ren / client

Files at this revision

API Documentation at this revision

Comitter:
krenbluetoothsig
Date:
Mon May 28 13:15:31 2018 +0000
Parent:
15:ebdbdd25ac60
Commit message:
1. update for code publish testing.

Changed in this revision

src/main.c Show annotated file Show diff for this revision Revisions of this file
--- a/src/main.c	Mon May 28 13:02:43 2018 +0000
+++ b/src/main.c	Mon May 28 13:15:31 2018 +0000
@@ -3,6 +3,27 @@
  *
  * SPDX-License-Identifier: Apache-2.0
  */
+/*
+ * how to set txpower
+ * in ./subsys/bluetooth/controller/ll_sw/ctrl.c, a function naming
+ * adv_scan_conn_configure(), it includes radio_tx_power_set(), the value
+ * should map
+nRF 51:
+    Pos4dBm 0x04 +4 dBm
+    0dBm 0x00 0 dBm
+    Neg4dBm 0xFC -4 dBm
+    Neg8dBm 0xF8 -8 dBm
+    Neg12dBm 0xF4 -12 dBm
+    Neg16dBm 0xF0 -16 dBm
+    Neg20dBm 0xEC -20 dBm
+    Neg30dBm 0xD8 -30 dBm
+
+nRF 52840:
+    http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52840.ps%2Fradio.html&cp=2_0_0_5_19_13_10&anchor=register.TXPOWER
+
+nRF 52832:
+    http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Fradio.html&cp=2_1_0_22_13_9&anchor=register.TXPOWER
+ */
 
 #include <misc/printk.h>