mirror of https://github.com/ARMmbed/mbed-os.git
BLE: correct misspelling: prefered -> preferred
parent
7c49aeb01f
commit
76b92b82e2
|
@ -44,11 +44,11 @@ struct GenericAccessService {
|
|||
virtual ~GenericAccessService() { }
|
||||
|
||||
/**
|
||||
* Acquire the peripheral prefered connection parameters stored in the GAP
|
||||
* Acquire the peripheral preferred connection parameters stored in the GAP
|
||||
* GATT service.
|
||||
*
|
||||
* @param parameters: If the call succeed will contain the value of
|
||||
* the peripheral prefered connection parameters characteristic.
|
||||
* the peripheral preferred connection parameters characteristic.
|
||||
*
|
||||
* @return BLE_ERROR_NONE in case of success or the appropriate error code
|
||||
* otherwise.
|
||||
|
@ -56,15 +56,15 @@ struct GenericAccessService {
|
|||
* @see Bluetooth 4.2 Vol 3 PartC: 12.3 - Peripheral Preferred Connection
|
||||
* Parameters Characteristic
|
||||
*/
|
||||
virtual ble_error_t get_peripheral_prefered_connection_parameters(
|
||||
virtual ble_error_t get_peripheral_preferred_connection_parameters(
|
||||
::Gap::ConnectionParams_t& parameters
|
||||
) = 0;
|
||||
|
||||
/**
|
||||
* set the value of the peripheral prefered connection parameters stored in
|
||||
* set the value of the peripheral preferred connection parameters stored in
|
||||
* the GAP GATT service.
|
||||
*
|
||||
* @param parameters: If the peripheral prefered connection parameters
|
||||
* @param parameters: If the peripheral preferred connection parameters
|
||||
* to set.
|
||||
*
|
||||
* @return BLE_ERROR_NONE in case of success or the appropriate error code
|
||||
|
@ -73,7 +73,7 @@ struct GenericAccessService {
|
|||
* @see Bluetooth 4.2 Vol 3 PartC: 12.3 - Peripheral Preferred Connection
|
||||
* Parameters Characteristic
|
||||
*/
|
||||
virtual ble_error_t set_peripheral_prefered_connection_parameters(
|
||||
virtual ble_error_t set_peripheral_preferred_connection_parameters(
|
||||
const ::Gap::ConnectionParams_t& parameters
|
||||
) = 0;
|
||||
|
||||
|
|
|
@ -68,7 +68,7 @@ static bool is_in_range(T value, T lower_bound, T higher_bound)
|
|||
* Return true of the connection parameters are acceptable as preferred connection
|
||||
* parameters.
|
||||
*
|
||||
* Prefered connection parameters unlike actual connection parameters allow the
|
||||
* Preferred connection parameters unlike actual connection parameters allow the
|
||||
* max connection interval, min connection interval and connection supervision
|
||||
* timeout to be equal to 0xFFFF. When it is the case that value can be
|
||||
* interpreted as "non specific".
|
||||
|
|
|
@ -86,7 +86,7 @@ public:
|
|||
|
||||
#endif // Disabled until reworked and reintroduced to GattServer API
|
||||
|
||||
virtual ble_error_t get_peripheral_prefered_connection_parameters(
|
||||
virtual ble_error_t get_peripheral_preferred_connection_parameters(
|
||||
::Gap::ConnectionParams_t& parameters
|
||||
) {
|
||||
#if BLE_FEATURE_GATT_SERVER
|
||||
|
@ -97,7 +97,7 @@ public:
|
|||
#endif // BLE_FEATURE_GATT_SERVER
|
||||
}
|
||||
|
||||
virtual ble_error_t set_peripheral_prefered_connection_parameters(
|
||||
virtual ble_error_t set_peripheral_preferred_connection_parameters(
|
||||
const ::Gap::ConnectionParams_t& parameters
|
||||
) {
|
||||
#if BLE_FEATURE_GATT_SERVER
|
||||
|
|
|
@ -1135,7 +1135,7 @@ void GattServer::add_generic_access_service()
|
|||
current_attribute->permissions = ATTS_PERMIT_READ;
|
||||
|
||||
|
||||
// peripheral prefered connection parameters declaration
|
||||
// peripheral preferred connection parameters declaration
|
||||
currentHandle += 2; // note: incremented by two to get a pointer to the value handle
|
||||
++current_attribute;
|
||||
|
||||
|
@ -1153,7 +1153,7 @@ void GattServer::add_generic_access_service()
|
|||
current_attribute->settings = 0;
|
||||
current_attribute->permissions = ATTS_PERMIT_READ;
|
||||
|
||||
// peripheral prefered connection parameters value
|
||||
// peripheral preferred connection parameters value
|
||||
++current_attribute;
|
||||
const uint8_t default_ppcp_value[] = {
|
||||
0xFF, 0xFF, // no specific min connection interval
|
||||
|
|
Loading…
Reference in New Issue