LLS Exported Functions
- group LLS_Exported_Functions
-
Functions
-
bool lls_set_parameter(T_LLS_PARAM_TYPE param_type, uint8_t length, void *p_value)
-
Set a link loss service parameter.
This function can be called with a LLS parameter type T_LLS_PARAM_TYPE and it will set the LLS parameter. The 'p_value' field must point to an appropriate data type that meets the requirements for the corresponding parameter type. (For example, if required data length for parameter type is 1 octets, p_value should be cast to a pointer of uint8_t.)
- Parameters:
param_type -- [in] Link loss service parameter type: T_LLS_PARAM_TYPE.
length -- [in] Length of data to write.
p_value -- [in] Pointer to data to write.
- Return values:
true -- Operation success.
false -- Operation failure.
- Returns:
-
Operation result.
-
T_SERVER_ID lls_add_service(void *p_func)
-
Add link loss service to the Bluetooth Host.
Example usage
void profile_init() { server_init(service_num); lls_id = lls_add_service(app_handle_profile_message); }
- Parameters:
-
p_func -- [in] Callback when service attribute was read, write or CCCD update.
- Return values:
0xFF -- Operation failure.
others -- Service ID assigned by Bluetooth Host.
- Returns:
-
Service ID generated by the Bluetooth Host: T_SERVER_ID.
-
bool lls_set_parameter(T_LLS_PARAM_TYPE param_type, uint8_t length, void *p_value)