/* Command response callback function for ble_gap_device_name_get_req_enc BLE command. 
Callback for decoding the output parameters and the command response return code. */
static uint32_t gap_device_name_get_rsp_dec(const uint8_t *p_buffer, uint16_t length)
/* Command response callback function for ble_gap_device_name_get_req_enc BLE command. 
Callback for decoding the output parameters and the command response return code. */
static uint32_t gap_device_name_get_rsp_dec(const uint8_t *p_buffer, uint16_t length)
{
    uint32_t result_code;
    const uint32_t err_code =
        ble_gap_device_name_get_rsp_dec(p_buffer,
                                        length,
                                        m_output_params.gap_device_name_get_out_params.p_dev_name,
                                        m_output_params.gap_device_name_get_out_params.p_len,
                                        &result_code);
    APP_ERROR_CHECK(err_code);
    return result_code;
}