Home
last modified time | relevance | path

Searched full:phy (Results 1 – 25 of 46) sorted by relevance

12

/nrf52832-nimble/packages/NimBLE-latest/nimble/controller/include/controller/
H A Dble_phy.h30 #error LE 2M PHY can only be enabled on nRF52xxx
34 #error LE Coded PHY can only be enabled on nRF52840
67 /* PHY states */
72 /* BLE PHY transitions */
77 /* PHY error codes */
91 /* Initialize the PHY */
94 /* Reset the PHY */
97 /* Set the PHY channel */
112 /* Place the PHY into transmit mode */
115 /* Place the PHY into receive mode */
[all …]
H A Dble_ll_conn.h134 * Structure used for PHY data inside a connection.
136 * NOTE: the new phy's are the phys we will change to when a phy update
139 * tx_phy_mode: chip specific phy mode for tx
140 * rx_phy_mode: chip specific phy mode for rx
142 * cur_rx_phy: value denoting current rx phy (not a bitmask!)
144 * new_rx_phy: value denoting new rx phy (not a bitmask!)
145 * req_pref_tx_phy: tx phy sent in a phy request (may be different than host)
146 * req_pref_rx_phy: rx phy sent in a phy request (may be different than host)
149 * phy_options: preferred phy options for coded phy
H A Dble_ll_hci.h57 /* Checks the preferref phy masks from set default phy and set phy commands */
H A Dble_ll.h115 /* Preferred PHY's */
132 /* Packet receive queue (and event). Holds received packets from PHY */
419 * 'payload_len' will take to transmit on a PHY 'phy_mode'. */
423 * 'usecs' on a PHY 'phy_mode'. */
458 /*--- PHY interfaces ---*/
461 /* Called by the PHY when a packet has started */
464 /* Called by the PHY when a packet reception ends */
H A Dble_ll_scan.h79 uint8_t phy; member
138 /* XXX: Shall we count backoff per phy? */
/nrf52832-nimble/packages/NimBLE-latest/nimble/drivers/native/src/
H A Dble_phy.c31 /* BLE PHY data structure */
145 * Copies the data from the phy receive buffer into a mbuf chain.
240 /* Disable the phy */ in ble_phy_isr()
260 /* Disable PHY */ in ble_phy_isr()
280 ble_hdr->rxinfo.phy = BLE_PHY_1M; in ble_phy_isr()
285 /* Count PHY valid packets */ in ble_phy_isr()
292 /* Disable the PHY. */ in ble_phy_isr()
302 * ble phy init
304 * Initialize the PHY. This is expected to be called once.
306 * @return int 0: success; PHY error code otherwise
[all …]
/nrf52832-nimble/packages/NimBLE-latest/apps/bleprph/src/
H A Dphy.c102 uint8_t phy = 0; in phy_conn_changed() local
107 /* XXX: assume symmetric phy for now */ in phy_conn_changed()
108 ble_gap_read_le_phy(handle, &phy, &phy); in phy_conn_changed()
111 phy_update(phy); in phy_conn_changed()
115 phy_update(uint8_t phy) in phy_update() argument
122 hal_gpio_write(led_gpio[0], !(phy == BLE_GAP_LE_PHY_1M)); in phy_update()
123 hal_gpio_write(led_gpio[1], !(phy == BLE_GAP_LE_PHY_2M)); in phy_update()
124 hal_gpio_write(led_gpio[2], !(phy == BLE_GAP_LE_PHY_CODED)); in phy_update()
H A Dbleprph.h44 /* PHY support */
50 void phy_update(uint8_t phy);
/nrf52832-nimble/packages/NimBLE-latest/nimble/drivers/nrf52/src/
H A Dble_phy.c102 /* BLE PHY data structure */
223 * bit in the NVIC just to be sure when we disable the PHY.
267 * For LE Coded PHY this also includes CI and TERM1. */
289 * Workarounds should be applied only when switching to/from LE Coded PHY in ble_phy_apply_nrf52840_errata()
393 * Copies the data from the phy receive buffer into a mbuf chain.
510 * phy, thus we'll offset RTC by 2 full ticks (61 usecs) and then compensate in ble_phy_set_start_time()
632 * @param tx_phy_mode phy mode for last TX (only valid for TX->RX)
639 uint8_t phy; in ble_phy_wfr_enable() local
641 phy = g_ble_phy_data.phy_cur_phy_mode; in ble_phy_wfr_enable()
658 if ((phy == BLE_PHY_MODE_CODED_125KBPS) || in ble_phy_wfr_enable()
[all …]
/nrf52832-nimble/packages/NimBLE-latest/nimble/drivers/nrf51/src/
H A Dble_phy.c74 /* BLE PHY data structure */
174 * bit in the NVIC just to be sure when we disable the PHY.
195 * Copies the data from the phy receive buffer into a mbuf chain.
289 /* If PHY is in idle state for whatever reason, disable it now */ in nrf_wait_disabled()
395 * @param tx_phy_mode phy mode for last TX (not used on nRF51)
600 /* Count PHY crc errors and valid packets */ in ble_phy_rx_end_isr()
682 ble_hdr->rxinfo.phy = BLE_PHY_1M; in ble_phy_rx_start_isr()
754 /* Disable PHY */ in ble_phy_rx_start_isr()
810 * ble phy init
812 * Initialize the PHY.
[all …]
/nrf52832-nimble/packages/NimBLE-latest/apps/bleprph/
H A Dsyscfg.yml22 Enable support for changing PHY preference on active connection.
23 PHY preference change is triggered by configured GPIO pins.
24 Current PHY is indicated using LEDs connected to configured
29 GPIO pins for changing PHY preference on active connection. This
35 GPIO pins for indicating current PHY on active connection. This
/nrf52832-nimble/rt-thread/components/drivers/spi/
H A Denc28j60.h20 // bank number, and Ethernet/MAC/PHY indicator bits.
23 // - MAC/PHY indicator (bit 7)
120 // PHY registers
210 // ENC28J60 PHY PHCON1 Register Bit Definitions
215 // ENC28J60 PHY PHSTAT1 Register Bit Definitions
220 /* ENC28J60 PHY PHSTAT2 Register Bit Definitions */
227 // ENC28J60 PHY PHCON2 Register Bit Definitions
232 /* ENC28J60 PHY PHIE Register Bit Definitions */
235 /* ENC28J60 PHY PHIR Register Bit Definitions */
H A Denc28j60.c145 /* wait until the PHY read completes. */ in enc28j60_phy_read()
158 /* set the PHY register address. */ in enc28j60_phy_write()
161 /* write the PHY data. */ in enc28j60_phy_write()
165 /* wait until the PHY write completes. */ in enc28j60_phy_write()
195 * Access the PHY to determine link status
329 /* enable PHY link changed interrupt. */ in enc28j60_init()
802 NET_DEBUG("ENC28J60 PHY ID not correct!\r\n"); in enc28j60_attach()
891 rt_kprintf("PHY : PHCON1 PHSTAT1\r\n"); in enc28j60()
/nrf52832-nimble/packages/NimBLE-latest/nimble/controller/src/
H A Dble_ll_conn.c223 * Checks to see if we should start a PHY update procedure
225 * If current phy is not one of the preferred we need to start control
228 * XXX: we could also decide to change the PHY if RSSI is really good
233 * @return 0: success; -1: no phy update procedure started
359 * -> Disable the PHY, which will prevent any transmit/receive interrupts.
366 * the PHY and remove the schedule item before we can set the state to
372 /* Disable the PHY */ in ble_ll_conn_current_sm_over()
1018 /* Check if we need to send PHY update complete event */ in ble_ll_conn_chk_csm_flags()
1152 * length we can send over current PHY. Effectively, this determines in ble_ll_conn_tx_data_pdu()
1208 /* XXX: TODO: need to check this with phy update procedure. There are in ble_ll_conn_tx_data_pdu()
[all …]
H A Dble_ll_scan.c521 * Do scan machine clean up on PHY disabled
997 int *phy) in ble_ll_get_chan_to_scan() argument
1005 *phy = scanphy->phy; in ble_ll_get_chan_to_scan()
1010 *phy = aux_data->aux_phy; in ble_ll_get_chan_to_scan()
1013 *phy = scanphy->phy; in ble_ll_get_chan_to_scan()
1034 int phy; in ble_ll_scan_start() local
1036 ble_ll_get_chan_to_scan(scansm, &scan_chan, &phy); in ble_ll_scan_start()
1068 phy_mode = ble_ll_phy_to_phy_mode(phy, BLE_HCI_LE_PHY_CODED_ANY); in ble_ll_scan_start()
1303 /* Disable phy */ in ble_ll_scan_sm_stop()
1382 /* PHY is changing in ble_ll_scan_start() */ in ble_ll_scan_switch_phy()
[all …]
H A Dble_ll_ctrl.c167 * Called to cancel a phy update procedure.
175 /* cancel any pending phy update procedures */ in ble_ll_ctrl_phy_update_cancel()
184 /* Clear any bits for phy updates that might be in progress */ in ble_ll_ctrl_phy_update_cancel()
592 * Convert a phy mask to a numeric phy value.
597 * @param phy_mask Bitmask of phy
599 * @return uint8_t The numeric value associated with the phy mask
608 uint8_t phy; in ble_ll_ctrl_phy_from_phy_mask() local
622 phy = BLE_PHY_1M; in ble_ll_ctrl_phy_from_phy_mask()
625 phy = BLE_PHY_2M; in ble_ll_ctrl_phy_from_phy_mask()
628 phy = BLE_PHY_CODED; in ble_ll_ctrl_phy_from_phy_mask()
[all …]
H A Dble_ll.c246 /* For Coded PHY we have exact TX times provided by specification:
706 * Process received packet from PHY.
902 * Called by the PHY when a receive packet has ended.
910 * < 0: Disable the phy after reception.
911 * == 0: Success. Do not disable the PHY.
912 * > 0: Do not disable PHY as that has already been done.
1104 /* Init ble phy */ in ble_ll_task()
1255 /* Stop the phy */ in ble_ll_reset()
1313 /* Re-initialize the PHY */ in ble_ll_reset()
1379 * and this can happen if we changed connection form uncoded to coded phy. in ble_ll_pdu_max_tx_octets_get()
[all …]
H A Dble_ll_sched.c391 * PHY we received on. in ble_ll_sched_master_new()
394 if (ble_hdr->rxinfo.phy == BLE_PHY_1M) { in ble_ll_sched_master_new()
397 } else if (ble_hdr->rxinfo.phy == BLE_PHY_2M) { in ble_ll_sched_master_new()
400 } else if (ble_hdr->rxinfo.phy == BLE_PHY_CODED) { in ble_ll_sched_master_new()
621 * PHY we received on. in ble_ll_sched_master_new()
624 if (ble_hdr->rxinfo.phy == BLE_PHY_1M) { in ble_ll_sched_master_new()
627 } else if (ble_hdr->rxinfo.phy == BLE_PHY_2M) { in ble_ll_sched_master_new()
630 } else if (ble_hdr->rxinfo.phy == BLE_PHY_CODED) { in ble_ll_sched_master_new()
1167 * Let scanner to decide to disable phy or not. in ble_ll_sched_execute_item()
1180 /* We have to disable the PHY no matter what */ in ble_ll_sched_execute_item()
[all …]
H A Dble_ll_hci.c317 * Checks the preferred phy masks for validity and places the preferred masks
318 * in the input phy masks
320 * @param cmdbuf Pointer to command buffer where phy masks are located
321 * @param txphy Pointer to output tx phy mask
322 * @param rxphy Pointer to output rx phy mask
349 /* If phy not supported, return error */ in ble_ll_hci_chk_phy_masks()
362 /* Set the default PHY preferences */ in ble_ll_hci_chk_phy_masks()
377 * Set PHY preferences for connection
H A Dble_ll_conn_hci.c1516 * Read current phy for connection (OGF=8, OCF==0x0030)
1546 * Set PHY preferences for connection
1569 * If host has requested a PHY update and we are not finished do in ble_ll_conn_hci_le_set_phy()
1592 * The host preferences override the default phy preferences. Currently, in ble_ll_conn_hci_le_set_phy()
1605 * We could be doing a peer-initiated PHY update procedure. If this in ble_ll_conn_hci_le_set_phy()
1606 * is the case the requested phy preferences will not both be 0. If in ble_ll_conn_hci_le_set_phy()
1614 /* Check if we should start phy update procedure */ in ble_ll_conn_hci_le_set_phy()
1619 * Set flag to send a PHY update complete event. We set flag in ble_ll_conn_hci_le_set_phy()
/nrf52832-nimble/packages/NimBLE-latest/
H A DREADME.md9 - 长距离编码(Coded PHY for LE Long Range)
68 │ ├───drivers /* Nordic 系列 Phy 驱动 */
147 **Device Driver support ** : 底层 SOC Phy 支持
/nrf52832-nimble/packages/NimBLE-latest/nimble/host/src/
H A Dble_hs_hci_cmd.c1164 ble_hs_hci_cmd_body_le_enhanced_recv_test(uint8_t chan, uint8_t phy, in ble_hs_hci_cmd_body_le_enhanced_recv_test() argument
1170 if (phy > BLE_HCI_LE_PHY_CODED || chan > 0x27 || mod_idx > 1) { in ble_hs_hci_cmd_body_le_enhanced_recv_test()
1175 dst[1] = phy; in ble_hs_hci_cmd_body_le_enhanced_recv_test()
1185 ble_hs_hci_cmd_build_le_enh_recv_test(uint8_t rx_chan, uint8_t phy, in ble_hs_hci_cmd_build_le_enh_recv_test() argument
1191 return ble_hs_hci_cmd_body_le_enhanced_recv_test(rx_chan, phy, mod_idx, dst); in ble_hs_hci_cmd_build_le_enh_recv_test()
1197 uint8_t phy, in ble_hs_hci_cmd_body_le_enhanced_trans_test() argument
1203 if (phy > BLE_HCI_LE_PHY_CODED_S2 || chan > 0x27 || in ble_hs_hci_cmd_body_le_enhanced_trans_test()
1211 dst[3] = phy; in ble_hs_hci_cmd_body_le_enhanced_trans_test()
1221 uint8_t packet_payload_idx, uint8_t phy, in ble_hs_hci_cmd_build_le_enh_trans_test() argument
1228 phy, dst); in ble_hs_hci_cmd_build_le_enh_trans_test()
[all …]
H A Dble_hs_hci_priv.h240 int ble_hs_hci_cmd_build_le_enh_recv_test(uint8_t rx_chan, uint8_t phy,
247 uint8_t phy,
/nrf52832-nimble/packages/NimBLE-latest/docs/
H A Dindex.rst39 - 2Msym/s PHY for higher throughput
40 - Coded PHY for LE Long Range
/nrf52832-nimble/packages/NimBLE-latest/nimble/include/nimble/
H A Dble.h60 * channel: The logical BLE channel PHY channel # (0 - 39)
71 int8_t phy; member

12