gap.h (22d445d87e539bf8e35142794a2ff9d005275890) gap.h (30199e24c811081e34846cfb3b6c82e682b38b47)
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

--- 897 unchanged lines hidden (view full) ---

906 * @brief Start GAP Classic Inquiry
907 * @param duration in 1.28s units
908 * @return 0 if ok
909 * @events: GAP_EVENT_INQUIRY_RESULT, GAP_EVENT_INQUIRY_COMPLETE
910 */
911int gap_inquiry_start(uint8_t duration_in_1280ms_units);
912
913/**
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

--- 897 unchanged lines hidden (view full) ---

906 * @brief Start GAP Classic Inquiry
907 * @param duration in 1.28s units
908 * @return 0 if ok
909 * @events: GAP_EVENT_INQUIRY_RESULT, GAP_EVENT_INQUIRY_COMPLETE
910 */
911int gap_inquiry_start(uint8_t duration_in_1280ms_units);
912
913/**
914 * @brief Stop GAP Classic Inquiry
915 * @brief Stop GAP Classic Inquiry
914 * @brief Start GAP Classic Periodic Inquiry
915 * @param duration in 1.28s units
916 * @param max_period_length between consecutive inquiries in 1.28s units
917 * @param min_period_length between consecutive inquiries in 1.28s units
916 * @return 0 if ok
918 * @return 0 if ok
919 * @events: GAP_EVENT_INQUIRY_RESULT, GAP_EVENT_INQUIRY_COMPLETE
920 */
921uint8_t gap_inquiry_periodic_start(uint8_t duration, uint16_t max_period_length, uint16_t min_period_length);
922
923/**
924 * @brief Stop GAP Classic Inquiry (regular or periodic)
925 * @return 0 if ok
917 * @events: GAP_EVENT_INQUIRY_COMPLETE
918 */
919int gap_inquiry_stop(void);
920
921/**
922 * @brief Set LAP for GAP Classic Inquiry
923 * @param lap GAP_IAC_GENERAL_INQUIRY (default), GAP_IAC_LIMITED_INQUIRY
924 */

--- 220 unchanged lines hidden ---
926 * @events: GAP_EVENT_INQUIRY_COMPLETE
927 */
928int gap_inquiry_stop(void);
929
930/**
931 * @brief Set LAP for GAP Classic Inquiry
932 * @param lap GAP_IAC_GENERAL_INQUIRY (default), GAP_IAC_LIMITED_INQUIRY
933 */

--- 220 unchanged lines hidden ---