BLE: correct misspelling: prefered -> preferred

pull/12730/head
Lingkai Dong 2020-04-07 15:15:48 +01:00
parent 7c49aeb01f
commit 76b92b82e2
4 changed files with 11 additions and 11 deletions

View File

@ -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;

View File

@ -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".

View File

@ -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

View File

@ -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