gap.h (c3d19a303edcfd5560dffe8ffd5730527778d815) | gap.h (7eb5b27e6239f1b89355ae777fb2cefd64f9af71) |
---|---|
1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 576 unchanged lines hidden (view full) --- 585 586/** 587 * @brief Set duplicate filter for LE Scan 588 * @param enabled if enabled, only one advertisements per BD_ADDR is reported, default: false 589 */ 590void gap_set_scan_duplicate_filter(bool enabled); 591 592/** | 1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 576 unchanged lines hidden (view full) --- 585 586/** 587 * @brief Set duplicate filter for LE Scan 588 * @param enabled if enabled, only one advertisements per BD_ADDR is reported, default: false 589 */ 590void gap_set_scan_duplicate_filter(bool enabled); 591 592/** |
593 * @brief Set PHYs for LE Scan 594 * @param phy bitmask: 1 = LE 1M PHY, 4 = LE Coded PHY 595 */ 596void gap_set_scan_phys(uint8_t phys); 597 598/** |
|
593 * @brief Start LE Scan 594 */ 595void gap_start_scan(void); 596 597/** 598 * @brief Stop LE Scan 599 */ 600void gap_stop_scan(void); --- 295 unchanged lines hidden (view full) --- 896 * @param min_ce_length (unit: 0.625ms), default: 10 ms 897 * @param max_ce_length (unit: 0.625ms), default: 30 ms 898 */ 899void gap_set_connection_parameters(uint16_t conn_scan_interval, uint16_t conn_scan_window, 900 uint16_t conn_interval_min, uint16_t conn_interval_max, uint16_t conn_latency, 901 uint16_t supervision_timeout, uint16_t min_ce_length, uint16_t max_ce_length); 902 903/** | 599 * @brief Start LE Scan 600 */ 601void gap_start_scan(void); 602 603/** 604 * @brief Stop LE Scan 605 */ 606void gap_stop_scan(void); --- 295 unchanged lines hidden (view full) --- 902 * @param min_ce_length (unit: 0.625ms), default: 10 ms 903 * @param max_ce_length (unit: 0.625ms), default: 30 ms 904 */ 905void gap_set_connection_parameters(uint16_t conn_scan_interval, uint16_t conn_scan_window, 906 uint16_t conn_interval_min, uint16_t conn_interval_max, uint16_t conn_latency, 907 uint16_t supervision_timeout, uint16_t min_ce_length, uint16_t max_ce_length); 908 909/** |
910 * @brief Set initiating PHYs for outgoing connections 911 * @param phy bitmask: 1 = LE 1M PHY, 2 = LE 2M PHY, 4 = LE Coded PHY 912 */ 913void gap_set_connection_phys(uint8_t phys); 914 915/** |
|
904 * @brief Request an update of the connection parameter for a given LE connection 905 * @param handle 906 * @param conn_interval_min (unit: 1.25ms) 907 * @param conn_interval_max (unit: 1.25ms) 908 * @param conn_latency 909 * @param supervision_timeout (unit: 10ms) 910 * @return 0 if ok 911 */ --- 502 unchanged lines hidden --- | 916 * @brief Request an update of the connection parameter for a given LE connection 917 * @param handle 918 * @param conn_interval_min (unit: 1.25ms) 919 * @param conn_interval_max (unit: 1.25ms) 920 * @param conn_latency 921 * @param supervision_timeout (unit: 10ms) 922 * @return 0 if ok 923 */ --- 502 unchanged lines hidden --- |